Username
Forgot password?
Welcome to our site!
Or Join with FTTF

On every page of LampCMS Fatel error is displaying Why?

3

1174 views
Hi Dimtri,

I'm using Lighttpd on my ubuntu10.04 machine as per suggestion.Following Fatal error is displaying on every page of Lampcms,

Fatal error: Exception thrown without a stack frame in Unknown on line 0

I tried to fix it but not possible,Please suggest me what I have to do,to fix this bug.

Thanks
 
asked November 25, 2011 at 11:09 PM

 IN
This type of errors are usually logged in server's error log on in php log. Do you have any type of error log for your web server? Also you should configure error_log in php.ini and point to some writable file like error_log = "/somewhere/php_error.log"
flag
Nov 26 '11 at 19:21
@Dmitri Snytkine
This is my webserver(lighttpd) error log file content: 2011-11-28 10:46:08: (mod_fastcgi.c.2711) FastCGI-stderr: PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0 PHP Stack trace: PHP 1. {main}() /var/www/lamp/www/index.php:0 PHP 2. Lampcms\WebPage->__construct() /var/www/lamp/www/index.php:87 PHP 3. Lampcms\Controllers\Login->main() /var/www/lamp/lib/Lampcms/WebPage.php:273 PHP 4. Lampcms\Responder::redirectToPage() /var/www/lamp/lib/Lampcms/Controllers/Login.php:124
flag
Nov 28 '11 at 0:23

3 Answers

0
 
It's very difficult to debug these errors. What I mean is it's difficult for me to debug errors on other person's computer.
In general this error means that some error happends inside error handler or inside object destructor or inside a shutdown function - any one of these special cases mean that php is almost done exising, the backtrace is not available and when any type of error is happening at this point php is not able to supply any meaningful details, not even the file name and line number.

Right from the top of my head I suspect couple of possibilities: the php log file is not writable or is not located in writable directory. When any type of error is generated, Lampcms writes a message to the php log.
In debug mode it writes alot of information to the same php log, but even in non-debug production mode it will write all error messages.

You must be absolutely sure that your php error log path is set correctly in !config.ini

Look in !config.ini and make sure that value of LOG_FILE_PATH setting points to a file that either already exists and is writable to web server process or if it does not exist it must reside in the directory that is writable to web server.

2) On some critical errors Lampcms also attempts to send email to admin. Make sure your mail() function is working - just make sure you can send email from php script.
There is a setting with email addresses in !config.ini:
EMAIL_DEVELOPER

You may want to try to leave it blank, in which case program will not attempt to send out email on errors.

You may also try to disable logging completely, but since this is not supported, you have to just comment out the couple of lines:
in !inc.php file find:

function d($message){
if(defined('LAMPCMS_DEBUG') && true === LAMPCMS_DEBUG){
\Lampcms\Log::d($message, 2);
}
}

function e($message){
\Lampcms\Log::e($message, 2);
}

Then comment out the 2 lines that call the Log function:


function d($message){
if(defined('LAMPCMS_DEBUG') && true === LAMPCMS_DEBUG){
// \Lampcms\Log::d($message, 2);
}
}

function e($message){
// \Lampcms\Log::e($message, 2);
}

This is just a suggestion and may or may not solve the problem.

Also instead of commenting out the call to Log you may want to try to output error to the screen:
Keep the Log calls commented and under these lines add:
echo $message;

This way you will at least see the error messages instead of logging them to a file.



flag
answered April 22, 2012 at 4:35 PM
0
 
This bug also affects me. Its a very annoying problem. Apache error logs shed no new light on the situation.
flag
answered April 20, 2012 at 2:01 PM
0
 
Im facing the same Fatal Error (Fatal error: Exception thrown without a stack frame in Unknown on line 0 ) on every site, but using Apache as server.

In none of my logs there is anything more specific, just the same Message.
Apache error_log for example:
[Fri Apr 20 16:12:42 2012] [error] [client x.x.x.x] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

I have tried the solutions suggested in other questions about that problem:
mongodb is reachable and the db got created. The correction at "function d()" is already implemented in my version of lampcms

Any idea were this error happens or at least what it means? I have no idea were to start to fix that.

By the way ... i also get a other Errors, for example while trying to post a new comment:
"Error parsing response objectSyntaxError: JSON.parse: unexpected non-whitespace character after JSON data
o.responseText: {"exception":"Form token not found in session\nerror code: 0\nfile: ...\/lampcms\/lib\/Lampcms\/Forms\/Form.php\nline: 756\n\n
Trace<\/strong>: \n
#0 \/lampcms\/lib\/Lampcms\/WebPage.php(359): validateToken(Lampcms\\Registry)\n
#1 \/lampcms\/lib\/Lampcms\/WebPage.php(257): initParams()\n
#2 \/lampcms\/www\/index.php(89): __construct(Lampcms\\Registry)
\n

\n
","errHeader":"Error","type":"Lampcms\\TokenException"} Fatal error: Exception thrown without a stack frame in Unknown on line 0


This one for example pop up as JS-Window.

Regards
BigD
flag
answered April 20, 2012 at 9:31 AM

Your answer

Join with account you already have

FTTF

Preview

Alert