Jump to content

Fatal error: Class 'Tools


antoniocavally

Recommended Posts

based on the screenshot, that config.inc.php file is attempting to make an object of class "Tools" and it can't find the class anywhere. You probably forgot to include the file that defines it or else pointing to wrong path of the file that defines it.

The actual PHP code from where the error is coming from. The error is from the file named config.inc.php on line 84.

 

So

  1. Post lines 1 - 90 here from config.inc.php, we don't have your code in front of us so we cant tell you what to do other than ask for more details.
  2. Before posting code make sure you sensor out any sensitive data, like username, passwords.
  3. Do you know where Tools class is located?

The code tries to make an object based on a class, but it can't find the class definition.

 

So, somewhere in one of your files there should be something that looks like this, or similar:

 

class Tools {

  // stuff

}
It is obviously not in config.inc.php, so either config.inc.php expects a file that defines it to be included, or else config.inc.php is included in some other file and that other file is expected to include it, so that config.inc.php can access it. I'm guessing this is some 3rd party script you picked up and can't get working. So, my guess is the include(s) are there, but you aren't pointing to the proper path/to/file/to/include.

 

So we can't really help you with what your file paths should be, short of having full access to your files on your server.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.