SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: bisbebri on July 25, 2009, 01:07:24 PM

Title: Recent topics not showing new icon
Post 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
Title: Re: Recent topics not showing new icon
Post by: Nathaniel on July 25, 2009, 10:28:40 PM
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?
Title: Re: Recent topics not showing new icon
Post by: bisbebri on July 25, 2009, 10:38:50 PM
http://uwsclan.us and I will check the logs and post back. This isnt affecting all users just a few
Title: Re: Recent topics not showing new icon
Post by: bisbebri on July 26, 2009, 11:22:52 AM
This is the only SP error i can find.
Code: [Select]
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 
Title: Re: Recent topics not showing new icon
Post by: ccbtimewiz on July 26, 2009, 12:50:27 PM
Could you turn off eval() and report back the errors?
Title: Re: Recent topics not showing new icon
Post by: bisbebri on July 26, 2009, 12:52:12 PM
how do I do that?
Title: Re: Recent topics not showing new icon
Post by: ccbtimewiz on July 26, 2009, 12:59:31 PM
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:

Code: [Select]
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:

Code: [Select]
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Title: Re: Recent topics not showing new icon
Post by: [SiNaN] on July 26, 2009, 01:05:01 PM
Are they able to see it in forum or is just portal page? Are they using a different language than English?
Title: Re: Recent topics not showing new icon
Post by: ccbtimewiz on July 26, 2009, 01:08:56 PM
In addition to [SiNaN]'s question-- are they using any utf8 languages? Like english-utf8, etc as opposed to plain "english"?
Title: Re: Recent topics not showing new icon
Post by: bisbebri on July 26, 2009, 01:12:54 PM
english is the only language... plain english no UTF8 and its just on the portal page
Title: Re: Recent topics not showing new icon
Post by: [SiNaN] on July 26, 2009, 01:19:23 PM
Are they able to see it in forum or is just portal page?
Title: Re: Recent topics not showing new icon
Post by: ccbtimewiz on July 26, 2009, 01:20:31 PM
I'd assume it's just on the portal page, [SiNaN].

its just on the portal page
Title: Re: Recent topics not showing new icon
Post by: bisbebri on July 26, 2009, 01:21:53 PM
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.
Title: Re: Recent topics not showing new icon
Post by: [SiNaN] on July 26, 2009, 01:49:54 PM
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.
Title: Re: Recent topics not showing new icon
Post by: [SiNaN] on July 29, 2009, 10:20:33 AM
Any updates bisbebri?
SimplePortal 2.3.8 © 2008-2024, SimplePortal