News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Undefined Offset Help needed

Started by fritzy, February 02, 2009, 02:46:56 PM

Previous topic - Next topic

fritzy

Just checked my error log and found that i keep getting a Undefined Offset: 1035 error on pages i look at.  Wasnt sure what this was or if there was a fix for it.  I am currently using the "Pearl Blue" Theme and the only mod I have installed is the Anti-Spam Verification Questions v1.02.   Looking at my error logs I was getting this error before I installed the mod.  It looks like the error is the same for each page as follows:

8: Undefined offset: 1035
File: /home/forum/Themes/default/Packages.template.php (eval?)
Line: 392

8: Undefined offset: 1035
File: /home/forum/Themes/default/Admin.template.php (eval?)
Line: 392

8: Undefined offset: 1035
File: /home/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 392

8: Undefined offset: 1035
File: /home/forum/Themes/default/Manual.english.php (eval?)
Line: 392

8: Undefined offset: 1035
File: /home/forum/Themes/default/Search.template.php (eval?)
Line: 392

etc..etc..etc..

Anyone happen to have an idea of a way to fx this to prevent my error logs from getting stuffed full whenever people look through the website?  I did a search for offset: 1035 but could not seem to find anyone else that had this problem.  Thanks for any help people may have or any directions people can lead me in.

fritzy

Just giving this a bump to get some new eyes to see it in case someone knows the answer.  I also forgot to add that i am using SMF 1.1.7 in case that information is needed as well.

JimM

We will need to turn off the template eval in order to see what file is actually causing the error.

Run this query in phpMyAdmin (What is phpMyAdmin?).

INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);

Clear your error log, browse around your forum a bit and then copy and paste the errors here.

To turn the template eval back on run this query:

DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Jim "JimM" Moore
Former Support Specialist

DarkAngel612

I have noticed these same errors cropping up and did as your instructions in MYPhpAdmin.

with these errors after browsing the forum again.


8: Undefined offset: 707
File: /home/acade27/public_html/forum/Themes/TP_RainScape1.1/index.template.php
Line: 745
   
8: Undefined offset: 465
File: /home/acade27/public_html/forum/Themes/TP_RainScape1.1/index.template.php
Line: 745


Line 745 of the file is in red of this section:

}
      elseif (!isset($buttons[$key]) || $force_reset)
         $buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';


I would like to know what I may have done to cause this and what I can do to fix it..in the mean time I will upload a new one to overwrite the file.

Thanks

Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Tyrsson

@DarkAngel612

Since this is a theme that is specific to Tiny Portal you would get the best response by asking on their forum :)

http://www.tinyportal.net
PM at your own risk, some I answer, if they are interesting, some I ignore.

DarkAngel612

ok, I thought to try here first because it started out with the culprit being the display.template.php for the theme ---- which when i removed it  to let the default smf theme take over (to see if it would go away) --- it still did it with the default theme.

Then when I did a search I found this thread that he either fixed it or never came back...but was the same problem...and tried the suggestion to get the results to post here.

It may be happening with the theme listed but it is also happening with the default smf theme too.

But I will go there and see if they know what to do.

thanks
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

greyknight17

fritzy, is this issue resolved now? If not, please follow the instructions posted by JimM.

Advertisement: