SMF Support > SMF 2.0.x Support
Blank page?
Stanyy:
Hi, my website just recently started showing a blank page when i visit it, but if i refresh the page it comes back on. Please help.
MrPhil:
PLEASE DON'T SHOUT. If you're starting to get page load problems, the first thing to try is to go into Admin and disable hostname lookup. Sometimes that helps reduce processor load enough. If it doesn't, report back and maybe someone else will have an idea. Have you made any changes or installed any mods lately? Has your host changed anything (PHP version, for example)?
Stanyy:
Thanks, I have disabled host name lookup but that didn't do it. I recently tried to uninstall a mod 'smf blog', it failed in one 'modification.template.php' but i had to remove the code manually from that file. My forum worked fine after that though. By the way, i see an error in my php error log appearing like a million times
--- Quote ---[28-Jul-2012 08:01:27] PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/user/public_html/mysite.com/Sources/Load.php(2239) : eval()'d code on line 178
--- End quote ---
MrPhil:
Go into Admin and disable "eval". Clear the error log. Get new errors that don't have the "eval" -- it will probably be a different file and line number. Then look at the file -- if you can't figure it out, post here the offending line and 10 or so lines before and after. Reenable "eval" once you have the problem located.
Don't forget to reenable host name lookup, if that didn't help.
Stanyy:
This is the new error
--- Quote ---[31-Jul-2012 17:06:47] PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/user/public_html/mysite.com/Themes/default/index.template.php on line 178
--- End quote ---
I have looked in the code but dont seem to understand where the error might be. I have quoted line 170-181
--- Quote ---echo '
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=xxxxxxxxxxxxx";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>';
echo '
<html xmlns:fb="http://ogp.me/ns/fb#">';
--- End quote ---
Navigation
[0] Message Index
[#] Next page
Go to full version