473,378 Members | 1,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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

R
Hi All,

I'm using PHP 5, my code fully separates code from content, my code
throws exceptions (LIZException) when error occurs.

but every time I throw exception I get this fatal error:

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

It must be my fault by the message isn't helping me - any idea what to
do?

My code looks like this:
<?
try {
// code goes here
}
catch (LIZException $e) {
$e->printDebug();
echo '@@';
} catch (Exception $e) {
LIZException::printException($e);
}
echo '!!!';

?> // end of file!

If exception thrown:
$e->printDebug() will execute, then echo '@@', then echo '!!!'

and finally fatal error message

any hints most welcome
best regards
R

May 2 '06 #1
1 13920
R
Hi all,

I found the reason - one of my class has __destruct function and was
calling
a method on object that was already destroyed by PHP5.

the solution to my problem was to call Finalize method that closes
all streams, connections, sessions etc - it was called always when
exception wasn't thrown.

so I simply added:

catch (LIZException $e)
{
$e->printDebug();
}
catch (Exception $e)
{
LIZException::printException($e);
}
// PHP5 doesn't have finally block... sux
//finally
//{
if (false == $module->isFinalized())
{
$module->Finalize();
}
//}

I'm missing the finally block very much ;)

best redards
R

May 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Barry Mossman | last post by:
Hi, I am throwing an exception derived from ApplicationException as follows catch (Exception ex) { throw new MyException("message", ex); } My exception's constructor is: public...
2
by: Chuck Ritzke | last post by:
Hi all, I am getting an intermittant error after uploading a project from my development machine. I click on a link which opens an aspx page that, upon page load, reads a very small amount of...
1
by: D A H | last post by:
I have gotten the same exception in multiple projects. I have solved the underlying problem. My question is if anyone knew of a setting that would cause this exception to be thrown. A...
3
by: tshad | last post by:
If you get an exception or SqlException, how do you get the actual message? Not the detailed breakdown, but the actual message. For example, in the following message, I would like to find just...
2
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
0
by: tshad | last post by:
I have set up an error handler in the Global.asax, but it doesn't give me the information I can get from the Normal Windows Error page. This is really preventing me from being able to fix errors...
9
by: Adem | last post by:
Is it possible to get some info about an unknown exception, ie. the "catch (...)" case below: catch (const blah1 &ex) { cout << "blah1 exception." << endl; } catch (const blah2 &ex) {
1
by: scn87 | last post by:
I am getting a fatal error like this.Can anyone tell what does this mean? Fatal error: Uncaught exception 'DOMException' with message 'Not Found Error' in C:\wamp\www\sss\PHARMACY\LATEST...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.