thefollower Posted May 20, 2009 Share Posted May 20, 2009 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 More sharing options...
radi8 Posted May 20, 2009 Share Posted May 20, 2009 Use this at the top of you code page: <?php ini_set ("display_errors", "1"); error_reporting(E_ALL); ?> It will tell you what is wrong and where in the code the problem is. Link to comment https://forums.phpfreaks.com/topic/158945-solved-php-error/#findComment-838297 Share on other sites More sharing options...
thefollower Posted May 20, 2009 Author Share Posted May 20, 2009 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 More sharing options...
radi8 Posted May 20, 2009 Share Posted May 20, 2009 Very odd indeed. I am sure that these files and folders actally DO exist, so check see that the reference string CASE matches the actual CASE of the file/folder, i.e. staff/Images != staff/images. Link to comment https://forums.phpfreaks.com/topic/158945-solved-php-error/#findComment-838311 Share on other sites More sharing options...
thefollower Posted May 20, 2009 Author Share Posted May 20, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.