Jump to content

[Solved] Error While Running Script Online


lazy123

Recommended Posts

Okay, it's like my title.

I've an error while running my (tbh not mine XD) PHP script online.

On error_log, it showed :

PHP Fatal error: Class 'DBController' not found in /home/kiansie/public_html/order/index.php on line 10

So I don't know what to do, because it's not my server. But when I run it in my localhost, it's appearing it content correctly.

 

Here is the script on line 10.

$db_handle = new DBController();

I hope for your help.

Thank you!

Link to comment
Share on other sites

PHP doesn't know what a DBController is, so its failing. The class is probably declared in an include that it can't find.

 

Odds are there's a path in a config file that's set wrong somewhere. Check to see if there's paths in your software's configuration file. If so, they need to be edited to point to the correct locations on our servers as opposed to on your computer.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...