Page 1 of 1
500 error after installation
#1
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?
#4
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.
[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.
#8
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
http://files.jamieru...ideo/recess.mov
Jamie Rumbelow Designer / Developer / Writer / Speaker
http://jamierumbelow.net
http://jamierumbelow.net
#9
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
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
#11
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!
@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
http://jamierumbelow.net
Page 1 of 1

Sign In
Register
Help


MultiQuote