Sesh Posted June 17, 2009 Share Posted June 17, 2009 Ok so I get this error after on my site after being dormant from the site for about 20-30 minutes or so. Warning: require(templates/my_blog_v2/suckerfish.php) [function.require]: failed to open stream: No such file or directory in /hsphere/local/home/seshamaru/vanadielprofiles.com/templates/my_blog_v2/settings.php on line 165 Fatal error: require() [function.require]: Failed opening required 'templates/my_blog_v2/suckerfish.php' (include_path='/hsphere/local/home/seshamaru/vanadielprofiles.com/libraries/openid') in /hsphere/local/home/seshamaru/vanadielprofiles.com/templates/my_blog_v2/settings.php on line 165 Firstly, let me say I'm a beginner at best when it comes to php, I really don't know much so this is out of my knowledge. The error only occurs once you've been logged into the site, and come back after a good period of time, or restart your computer etc. If you hit refresh the site works perfectly and completely as it should. The problem seems to be coming from the login module conflicting with the menu system. If I remove the module no problems at all, but of course I can't do that and the module goes hand in hand with the social engine I have running on the site. I've looked around on google for this problem and it seems to be a common one, but my problem seems to end up being a bit different each time since my site runs on Joomla. I've fooled around with this problem for hours, and I'm completely stuck... any advice or help would be seriously appreciated. If anyone needs to look at some code or whatnot I'm happy to P.M or post just let me know. Thank you in advance. Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/ Share on other sites More sharing options...
JonnoTheDev Posted June 17, 2009 Share Posted June 17, 2009 The error basically states that one of your php files settings.php is trying to include other files within the script however the path to the file it is trying to include is incorrect! You must change the path within the require() function on line 165. Use the full server path rather than a relative path i.e. require('/hsphere/local/home/seshamaru/vanadielprofiles.com/templates/my_blog_v2/suckerfish.php'); Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-858085 Share on other sites More sharing options...
Sesh Posted June 17, 2009 Author Share Posted June 17, 2009 Just tried your suggestion and it didn't work. It said basically the same thing, that it failed to open the path. Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-858171 Share on other sites More sharing options...
wildteen88 Posted June 17, 2009 Share Posted June 17, 2009 Are you sure that suckerfish.php actually exists in the following directory path /hsphere/local/home/seshamaru/vanadielprofiles.com/templates/my_blog_v2/ Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-858181 Share on other sites More sharing options...
xcoderx Posted June 17, 2009 Share Posted June 17, 2009 I have noticed 1 thing that is its nt always acurate what eror we get in wot lines. But d erors hapens in sone other lines Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-858186 Share on other sites More sharing options...
Sesh Posted June 17, 2009 Author Share Posted June 17, 2009 Ya the suckerfish.php is there I know 100% There's another menu system integrated with the template called dropline, if I change the menu system to the that for the frontpage the error still comes up but for dropline. Thnx for the posts for far guys, this problem really is so frustrating. Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-858226 Share on other sites More sharing options...
Sesh Posted June 17, 2009 Author Share Posted June 17, 2009 Any thoughts? Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-858425 Share on other sites More sharing options...
pkedpker Posted June 17, 2009 Share Posted June 17, 2009 require('templates/my_blog_v2/suckerfish.php'); naw? Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-858430 Share on other sites More sharing options...
Sesh Posted June 17, 2009 Author Share Posted June 17, 2009 Nah doesn't fix it either ( If anyone would like to add my msn to maybe troubleshoot with me that would be really awesome. vpadmin@vanadielprofiles.com ) Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-858467 Share on other sites More sharing options...
JonnoTheDev Posted June 18, 2009 Share Posted June 18, 2009 Post the code from line 165 Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-858733 Share on other sites More sharing options...
pkedpker Posted June 18, 2009 Share Posted June 18, 2009 naw? require(dirname(__FILE__) . "'templates/my_blog_v2/suckerfish.php"); Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-859146 Share on other sites More sharing options...
JonnoTheDev Posted June 19, 2009 Share Posted June 19, 2009 replace with require(dirname(__FILE__)."templates/my_blog_v2/suckerfish.php"); Quote Link to comment https://forums.phpfreaks.com/topic/162584-php-fatal-error-help-please/#findComment-859465 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.