TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 488
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 90
  • Total: 90

Uninitialized string offset

Started by majo, February 20, 2007, 01:33:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

majo

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

IchBin

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.

majo

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

IchBin

QuoteUndefined index: smfrssposter_admin
This is not a TP error.

majo

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!!!!!

majo

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

IchBin

index.php? Sorry, but where is it that you're at in your forum when this happens?

majo

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']))

IchBin

What do you have set to display on your frontpage? Articles? Forum posts/news?

G6Cad

majo, please post a link to the site instead, it's much easier for us to see then to guess everything.

This website is proudly hosted on Crocweb Cloud Website Hosting.