SimplePortal
Development => Bugs => Fixed or Bogus Bugs => Topic started by: bisbebri on July 25, 2009, 01:07:24 PM
-
I have no idea if this is a SP problem or an SMF problem, but I have users on my site complaining that on the recent topics on my website (uwsclan.us), the new icon is not showing up all of the time or would be on some new posts and not others. I am running SMF RC1-1 and SP 2.2.2.
Thanks
-
We'll need some more information to try and fix this issue.
Could you please:
Post a link to your website?
Check your forum error log for related errors?
-
http://uwsclan.us and I will check the logs and post back. This isnt affecting all users just a few
-
This is the only SP error i can find.
http://uwsclan.us/index.php?
8: Undefined variable: scripturl
File: /home/beavis18/public_html/Themes/default/SPortal2.template.php (portal_above sub template - eval?)
Line: 4
-
Could you turn off eval() and report back the errors?
-
how do I do that?
-
I apologize. I should have been more descriptive.
At times of debugging, errors come from files do not contain the said error in your Forum Error Log. This is caused by eval().
eval() is a PHP command that evaluates a string as PHP code. Since file_get_contents() (a function that is similar to file(), except that it returns the file in a string) returns the contents of a file as a string, SMF is granted accesability to pin down the specific syntax that is causing a parse error, and consequently outputs an error message showing you the code that is producing the problem.
eval() by default is turned on. The downside to that is PHP does not know where an undefined error occurred as the entire file was allocated as a string. By switching eval() off, SMF uses require() (or, more often, require_once()) to get the template file. This in turn lets PHP report the exact location of the error.
To disable eval(), open phpMyAdmin (refer to: What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0)) and click the SQL tab and use the following query:
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
By disabling eval(), the errors that have already occurred need to be propagated once again. The new errors that have appeared in the error log contain the correct file that PHP had a problem with.
To reactivate eval(), use the following query:
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
-
Are they able to see it in forum or is just portal page? Are they using a different language than English?
-
In addition to [SiNaN]'s question-- are they using any utf8 languages? Like english-utf8, etc as opposed to plain "english"?
-
english is the only language... plain english no UTF8 and its just on the portal page
-
Are they able to see it in forum or is just portal page?
-
I'd assume it's just on the portal page, [SiNaN].
its just on the portal page
-
Are they able to see it in forum or is just portal page?
When they go to the homepage, theres a list of recent topics. When some one replies, a new Icon shows up next to it, for some users, it doesnt show up all of the time and not on all the new topics. This is the only place on the website that i have recent topics showing up.
I hope that answered your question.
-
New icons are also displayed in Message Index, I was asking if they can see them there.
I'm registered to your forum and I can see them just fine. And we use the same mod here without having such an issue. So I suppose this has something to do with your configuration father than a SimplePortal bug.
What do they see instead of new image? Nothing? I can't help much without seeing the issue though.
-
Any updates bisbebri?