CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Fatal error: Class 'clsDBConnection1' not found

Print topic Send  topic

Author Message
djgjohn

Posts: 31
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.
View profile  Send private message
eratech


Posts: 510
Posted: 08/13/2014, 12:59 AM

Good catch and solution.

E
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
KabTak47

Posts: 1
Posted: 02/18/2015, 4:15 AM

This is why pages work OK on one site but not on another.
_________________
ali
View profile  Send private message
eratech


Posts: 510
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.