Jump to content

[SOLVED] PHP error


thefollower

Recommended Posts

I am getting errors in my error log related to the scirpt looking for something that cannot be found but nothing in my script is physically looking for a direction which is why i don't get why im getting the error! Unless i am misunderstanding.

 

This is the error:

 

[Wed May 20 18:48:18 2009] [error] File does not exist: 404.shtml

[Wed May 20 18:48:18 2009] [error] File does not exist: /staff/images

 

Can some one explain what it means and what i am doing wrong/what i have to do to solve it?

Link to comment
https://forums.phpfreaks.com/topic/158945-solved-php-error/
Share on other sites

I have put that on every page line 1 but nothing displays but yet it does to the error log every time =/

 

If its any help, i noticed this only occurs when viewing a page which is not in the root directory... as the file is in the subfolder /staff/scrip.php  this the only time the error occurs... regardless of what subfolder... in the main root how ever this error never occurs.. not sure if that helps?

 

very odd.

Link to comment
https://forums.phpfreaks.com/topic/158945-solved-php-error/#findComment-838305
Share on other sites

Argh i found the issue... i had a JS file included on all pages which calls an image direction of /images/

 

How ever when you go into a subfolder it then things it has to look in /subfolder/images/

 

So i put ../images/ and that seems to so far solve the issue :)

 

Looks like you were right about it being related to directories! Thanks! :)

Link to comment
https://forums.phpfreaks.com/topic/158945-solved-php-error/#findComment-838316
Share on other sites

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.