djgjohn
Posts: 52
|
Posted: 08/12/2014, 5:33 PM |
|
Got this error today. Have a search form in an included page. Also in that page is a before show event that uses a DBConnection1 to get some data.
Go to parent page, click on search form button, get "Fatal error: Class 'clsDBConnection1' not found" error.
I use the following to display errors (top of Common.php)
ini_set("display_errors","1");
ini_set('error_reporting',E_ALL);
Here's the cause:
The search form return page was set as the include page not the parent page. When set to parent, problem went away.
|
|
|
eratech
Posts: 513
|
Posted: 08/13/2014, 12:59 AM |
|
Good catch and solution.
E
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
KabTak47
Posts: 1
|
Posted: 02/18/2015, 4:15 AM |
|
This is why pages work OK on one site but not on another.
_________________
ali |
|
|
eratech
Posts: 513
|
Posted: 02/19/2015, 5:15 PM |
|
This reminded me about error display (not the parent/include part)
I recently used a simple PHP debugging library called Kint which has some useful features and very simple to use:
http://raveren.github.io/kint/
In case you need more details about objects and errors, and don't have an Xdebug or similar.
Cheers
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
|