TinyPortal

Development => Support => Topic started by: majo on February 20, 2007, 01:33:31 PM

Title: Uninitialized string offset
Post by: majo on February 20, 2007, 01:33:31 PM
I get this error in "forum errors"

Also what i notice is that i can't optimize my DB, i think that might be due to my hosting provider.

Anyways could we fix this ?

8: Uninitialized string offset: 0
File: /./../../../.../Themes/default/TPortal.template.php (eval?)
Line: 202


Thanks guys/girlz
Title: Re: Uninitialized string offset
Post by: IchBin on February 20, 2007, 03:36:59 PM
If you could tell us when this happens that would help out immensely. Clear your log and then browse your site. Each time you visit a different page or something check the log to see when it happens. This will help us find the problem, since I can't reproduce it myself.
Title: Re: Uninitialized string offset
Post by: majo on February 20, 2007, 06:24:11 PM
Quote from: IchBinâ„¢ on February 20, 2007, 03:36:59 PM
If you could tell us when this happens that would help out immensely. Clear your log and then browse your site. Each time you visit a different page or something check the log to see when it happens. This will help us find the problem, since I can't reproduce it myself.

Do you want me to give you admin status on my site with same username ? so u can see it for your self ?

As it looks like it's doing it on all sites for some odd reason,

Here is the first one after i delete the logs

http://mysite/index.php?action=viewErrorLog;desc
Apply Filter: Only show the errors with the same message
8: Undefined index: smfrssposter_admin
File: ../../Sources/Subs.php
Line: 2746
Title: Re: Uninitialized string offset
Post by: IchBin on February 20, 2007, 11:17:24 PM
QuoteUndefined index: smfrssposter_admin
This is not a TP error.
Title: Re: Uninitialized string offset
Post by: majo on February 21, 2007, 01:12:04 AM
fixed ,

good that you saw that thing,

i got problems with my installed mods, they all say "apply mods" but they have been applied, so i manualy uninstalled rss feed mod, but forgot to take it out of Subs.php ( admin configuration )

removed that and it works just fine.

thank you IchBin at least for checking out this tread!!! appreciate it!!!!!
Title: Re: Uninitialized string offset
Post by: majo on February 21, 2007, 02:29:51 AM
hey i got fixed that 1 thing now this came up again , i think it has something to do with index.php file because each time "I visit that site" i get that errors, so it is not everyone , i think it's just admins

8: Uninitialized string offset: 0
File:...../Themes/default/TPortal.template.php (eval?)
Line: 309

8: Uninitialized string offset: 0
File: /Themes/default/TPortal.template.php (eval?)
Line: 250

8: Uninitialized string offset: 0
File: /Themes/default/TPortal.template.php (eval?)
Line: 202
Title: Re: Uninitialized string offset
Post by: IchBin on February 21, 2007, 02:31:30 AM
index.php? Sorry, but where is it that you're at in your forum when this happens?
Title: Re: Uninitialized string offset
Post by: majo on February 21, 2007, 01:40:05 PM
right on index.php, so for example I clear the logs, logs state 0, i go to let say forums, contact, tags, any other links then [home] , once i hit the home i get 5 pages of errors right away, each time. I think it has something to do with articles or cathegories.

Here are the strings from the lines above

Line 202
            <div style="_height: 1%; overflow: auto; ' , (isset($story['options']['author']) || isset($story['options']['rating']) || isset($story['options']['date']) || $story['is_boardnews']) ? ' margin-top: 1ex;' : '' , '">';



Line 250

            if(isset($story['options']['category']) && !empty($context['TPortal']['morearticles']) && isset($story['options']['catlist']) && !empty($context['TPortal']['categories']))

Line 309

               elseif(isset($story['options']['category']) && !empty($context['TPortal']['morearticles']) && !isset($story['options']['catlist']))
Title: Re: Uninitialized string offset
Post by: IchBin on February 21, 2007, 02:07:44 PM
What do you have set to display on your frontpage? Articles? Forum posts/news?
Title: Re: Uninitialized string offset
Post by: G6Cad on February 21, 2007, 02:14:15 PM
majo, please post a link to the site instead, it's much easier for us to see then to guess everything.
Title: Re: Uninitialized string offset
Post by: majo on February 21, 2007, 04:57:11 PM
Both forum and articles - sorted on date
Title: Re: Uninitialized string offset
Post by: majo on February 21, 2007, 04:57:35 PM
oh website is www.ilovetoargue.com