TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: Saskia on November 13, 2010, 11:07:45 AM

Title: Undefined index: yesterday
Post by: Saskia on November 13, 2010, 11:07:45 AM
Link to my site: http://www.thezonegroups.com
SMF version: SMF 1.1.12
TP version: TinyPortal 1.0 RC1
Default Forum Language: english
Theme name and version: default - Core
Browser Name and Version: Firefox
Mods installed:
1.    Ultimate Profile    0.9    
2.    Custom Board Sort    1.0.1    
3.    AjaxChat Integration    3.2.1    
4.    Inline Attachments    1.0.4.2    
5.    Downloads System Pro    1.0.17.1    
6.    Karma Buttons    1.1    
7.    Downloads System Pro    1.0.16    
8.    Member Color Link    3.0.8    
9.    TinyPortal    1.099    
10. Member Awards    1.1.2    
11. Country Flags    1.1.1    
12. Karma Applaud Only    1.0.1    
13. Show Multiple Badges (Aka Stars)    1.0    
14. Anti-Bot Registration Puzzles    1.2.0.1    
15. Downloads System Pro    1.0.18    
16. TinyPortal    1.100    
17. SMF 1.0.20 / 1.1.12 Update    1.0    
18. SMF 1.0.20 / 1.1.12 Update    1.0    
19. Downloads System Pro    2.0    
20. TinyPortal    1.101
Related Error messages: i updated today to the new smf version and then to the new tiny portal, this is the message I have in the log now (3 pages long always the same from different members):

8: Undefined index: yesterday
File: /home/thezoneg/public_html/Themes/default/TPortal.template.php (main sub template - eval?)
Line: 2178
Title: Re: Undefined index: yesterday
Post by: Saskia on November 13, 2010, 11:29:01 AM
I got rid of that error message in Features and Options / Layout and Options / Enable "Today" feature , I set it back to show only today and not today and yesterday , but if you know how to fix this problem I would like to set it back.  :)
Title: Re: Undefined index: yesterday
Post by: ZarPrime on November 14, 2010, 01:45:53 AM
Saskia,

Welcome to the TP Support Site.

I can't think of anything in TinyPortal that would cause this error.  Do you have any blocks, either html or php, that use a constant called "yesterday"?

Also, looking at your other Mods, there is no way for me to tell whether they are installed or not.  However, most of your Mods have not been updated for the version of SMF that you are using.

The error indicates that this is eval'ed code.  The ability to disable eval is built into SMF 2.0 RC3 but I don't know if it was added into the version you are using or not because I haven't installed SMF 1.1.12 on a test site yet.  If you disable template eval, it might tell you what the real error is.   If you want to do that, try installing this Mod and, if installed correctly, you will be able to disable template evaluation and perhaps the error will change.  Here's the link -->  http://custom.simplemachines.org/mods/index.php?mod=2054

The only other thing I can tell you is that SMF 1.1.12 may have an issue with setting "Today & Yesterday" for the shorthand date.  I can't answer that because I don't have an SMF 1.1.12 test site running.  Besides, if this is an issue with SMF, you would be better off asking about it at SMF.

ZarPrime
Title: Re: Undefined index: yesterday
Post by: Lucutious on November 15, 2010, 03:40:34 PM
I am getting the same error, but have not yet had time to track it down.  I'll report if I find anything.
Title: Re: Undefined index: yesterday
Post by: Saskia on November 15, 2010, 03:43:44 PM
Thank you ZarPrime, will check this out

I have posts from the forum shown on the portal , so if something was posted YESTERDAY and somebody go to the portal, then I get that error message.