Recess Developer Forums: 500 error after installation - Recess Developer Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

500 error after installation Rate Topic: -----

#1 User is offline   mike Icon

  • Group: Members
  • Posts: 11
  • Joined: 28-August 09

Posted 04 September 2009 - 04:45 AM

After moving the recess directory to my htdocs directory and putting in my mysql info, I get a 500 error when trying to go to Recess Tools. My MySQL is using port 8889 instead of 3336. Could this be what's giving me the error? If so, how do I specify the port number?
0

#2 User is offline   Mengu Icon

  • Group: Members
  • Posts: 10
  • Joined: 28-August 09

Posted 04 September 2009 - 05:16 AM

are you sure that you have also moved the .htaccess files?
0

#3 User is offline   KevBurnsJr Icon

  • Icon
  • Group: Administrators
  • Posts: 86
  • Joined: 25-August 09
  • LocationSilicon Valley, CA

Posted 04 September 2009 - 05:49 AM

Something like this should work for you ...

RecessConf::$defaultDatabase = array( 'mysql:host=localhost;dbname=DBNAME;port=PORT', 'USER', 'PASS' );

... and make sure you have PDO installed.
Less Talk, More Code.
0

#4 User is offline   mike Icon

  • Group: Members
  • Posts: 11
  • Joined: 28-August 09

Posted 04 September 2009 - 03:45 PM

Hmm none of that worked...I'm using MAMP btw. Looking at my PHP error log, I get this:

[03-Sep-2009 22:33:37] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
[04-Sep-2009 02:42:45] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'localhost:8889' (4)' in /Applications/MAMP/htdocs/recess2/recess/recess/database/pdo/PdoDataSource.class.php:48
Stack trace:
#0 /Applications/MAMP/htdocs/recess2/recess/recess/database/pdo/PdoDataSource.class.php(48): PDO->__construct('mysql:host=loca...', 'user', 'pass', Array)
#1 /Applications/MAMP/htdocs/recess2/bootstrap.php(137): PdoDataSource->__construct(Array)
#2 /Applications/MAMP/htdocs/recess2/bootstrap.php(13): RecessConf::init()
#3 {main}
thrown in /Applications/MAMP/htdocs/recess2/recess/recess/database/pdo/PdoDataSource.class.php on line 48
[04-Sep-2009 02:43:13] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
[04-Sep-2009 12:33:12] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
[04-Sep-2009 12:33:14] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
[04-Sep-2009 12:35:42] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
[04-Sep-2009 12:35:42] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
[04-Sep-2009 12:35:43] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
[04-Sep-2009 12:35:43] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

So it seems to be a PDO error. PDO is installed.
0

#5 User is offline   KevBurnsJr Icon

  • Icon
  • Group: Administrators
  • Posts: 86
  • Joined: 25-August 09
  • LocationSilicon Valley, CA

Posted 04 September 2009 - 05:11 PM

Sometimes PDO can be installed without the PDO_mysql adapter.

Paste us a copy of your phpinfo() ?
Less Talk, More Code.
0

#6 User is offline   mike Icon

  • Group: Members
  • Posts: 11
  • Joined: 28-August 09

Posted 04 September 2009 - 06:49 PM

PDO
PDO support enabled
PDO drivers sqlite2, sqlite, pgsql, mysql

pdo_mysql
PDO Driver for MySQL, client library version 5.0.41
0

#7 User is offline   mike Icon

  • Group: Members
  • Posts: 11
  • Joined: 28-August 09

Posted 07 September 2009 - 08:13 PM

I just installed a newer version of MAMP. Now I'm getting this error on a fresh install of Recess:


Conflicting routes found: GET recess/home

Location: Line 0 of
0

#8 User is offline   Jamie Rumbelow Icon

  • Group: Members
  • Posts: 10
  • Joined: 26-August 09
  • LocationCambridge, UK

Posted 09 September 2009 - 01:52 PM

I've had similar problems in MAMP. I've recorded a quick screencast to try to explain what's going on.

http://files.jamieru...ideo/recess.mov
Jamie Rumbelow Designer / Developer / Writer / Speaker
http://jamierumbelow.net
0

#9 User is offline   KrisJordan Icon

  • Administrator
  • Icon
  • Group: Administrators
  • Posts: 78
  • Joined: 25-August 09
  • LocationNorth Carolina, USA

Posted 09 September 2009 - 04:35 PM

I will try to test on a colleague's OSX machine soon. This sounds vaguely familiar to the eAccelerator problem. Looking on MAMP's features page eAccelerator is listed as an included package. Can you try disabling eAccelerator in your PHP configuration?

One of eAccelerator's optimizations is removing doccomments from the compiled source. This doesn't matter with Recess in production mode (so long as you use the sqlite persistent cache behind apc/memcache!) because in production mode the annotations are cached after the first run. In developer mode they are read anew each time. So with eAccelerator you get a one hit wonder.

http://eaccelerator.net/ticket/229

PS - Jamie, that screen cast was helpful but almost made me sea sick haha

PPS - From the old forums http://recessframewo...preview/items/1
0

#10 User is offline   mike Icon

  • Group: Members
  • Posts: 11
  • Joined: 28-August 09

Posted 10 September 2009 - 12:52 AM

Thanks for the awesome replies, guys. Jamie, that was the exact problem I was having. I did what you told me, Kris, and disabled eAccelerator and now everything is working fine. :)
0

#11 User is offline   Jamie Rumbelow Icon

  • Group: Members
  • Posts: 10
  • Joined: 26-August 09
  • LocationCambridge, UK

Posted 10 September 2009 - 01:33 AM

Ahh, interesting, I'd never thought that eAccelerator would ever be the problem. I've disabled it and and it too now works perfectly. Now I can get to closing some tickets!

@Kris I had to put it on follow mouse as I've got a big resolution so you could actually see the text! :)
Jamie Rumbelow Designer / Developer / Writer / Speaker
http://jamierumbelow.net
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users