News:

Join the Facebook Fan Page.

Main Menu

Undefined offset:

Started by ThePriest, May 05, 2009, 08:02:27 AM

Previous topic - Next topic

ThePriest

Hi.  I have already read around but have yet to find a definitive answer to this.  I have already checked the Language is set to English. This is a new install of SMF2RC1.

Forum URL:
http://www.landrover6pot.org/sixpotforum/index.php

MySQL 5.0.18

Installed packages:
1. Users Online Today 1.5.4 [ Uninstall ]
2. RSS Feed Icon 1.1 [ Uninstall ]
3. ResizeImagesToFitScreen 0.1.5 [ Uninstall ]
4. Custom Copyright 1.1 [ Uninstall ]
5. Aeva ~ Auto-Embed Video & Audio 6.2.76 [ Uninstall ]
6. Active Members In Topic 1.8 [ Uninstall ]
7. YouTube BBCode 2.5.1 [ Uninstall ]
8. English British Spelling Of Centre & Colour BBCode 1.1 [ Uninstall ]
9. AllCaps Blocker 2.0 [ Uninstall ]
10. Anti Bot: Are You Human/Bot? 2.0 [ Uninstall ]
11. SimplePortal 2.2

The errors reported before installation of these.

Error log report:
The Priest   Today at 12:53:35 PM 
IP ADDRESS REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=packages;sa=installed;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Undefined offset: 108
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Packages.template.php (body_above sub template - eval?)
Line: 348 

   The Priest   Today at 12:53:35 PM 
IP ADDRESS REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=packages;sa=installed;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Undefined offset: 2
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Packages.template.php (body_above sub template - eval?)
Line: 345 

   The Priest   Today at 12:53:35 PM 
IP ADDRESS REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=packages;sa=installed;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Undefined offset: 331
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Packages.template.php (body_above sub template - eval?)
Line: 343 

   The Priest   Today at 12:53:35 PM 
IP ADDRESS REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=packages;sa=installed;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Undefined index: calendar24
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Packages.template.php (body_above sub template - eval?)
Line: 341 

   The Priest   Today at 12:53:35 PM 
IP ADDRESS REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=packages;sa=installed;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Undefined offset: 182
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Packages.template.php (body_above sub template - eval?)
Line: 339 

   The Priest   Today at 12:53:35 PM 
IP ADDRESS REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=packages;sa=installed;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Undefined offset: 119
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Packages.template.php (body_above sub template - eval?)
Line: 338 

   The Priest   Today at 12:53:35 PM 
IP ADDRESS REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=packages;sa=installed;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Undefined offset: 103
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Packages.template.php (body_above sub template - eval?)
Line: 337 

   The Priest   Today at 12:53:35 PM 
IP ADDRESS REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=packages;sa=installed;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Use of undefined constant search - assumed 'search'
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Packages.template.php (body_above sub template - eval?)
Line: 213 

   The Priest   Today at 12:53:35 PM 
IP ADDRESS REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=packages;sa=installed;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Use of undefined constant profile - assumed 'profile'
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Packages.template.php (body_above sub template - eval?)
Line: 180 

Any ideas?

Edit: Forgot to say there are a couple of thousand of these this is just the most recent additions.

Kermit


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';
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

ThePriest

Result below.

The Priest   Today at 01:46:44 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Undefined offset: 108
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 348 

   The Priest   Today at 01:46:44 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Undefined offset: 2
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 345 

   The Priest   Today at 01:46:44 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Undefined offset: 331
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 343 

   The Priest   Today at 01:46:44 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Undefined index: calendar24
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 341 

   The Priest   Today at 01:46:44 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Undefined offset: 182
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 339 

   The Priest   Today at 01:46:44 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Undefined offset: 119
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 338 

   The Priest   Today at 01:46:44 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Undefined offset: 103
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 337 

   The Priest   Today at 01:46:44 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Use of undefined constant search - assumed 'search'
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 213 

   The Priest   Today at 01:46:44 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Use of undefined constant profile - assumed 'profile'
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 180 

   The Priest   Today at 01:46:43 PM 
URL REMOVED     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin;area=maintain;sa=database;c021b7d0=9c4abec1d1d83aac38e284a99a01b7b0 
8: Undefined offset: 108
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/WBlog20rc1/index.template.php
Line: 348 

It seems to point to index.template but never the same line ???

Kermit

Then please attach your index.template.php
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

ThePriest


Kermit

My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

ThePriest

OK tried it and ran around the forum a bit. Result is the same problem I'm afraid.

The Priest   Today at 03:10:14 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Undefined offset: 108
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/GenericMenu.template.php (body_above sub template - eval?)
Line: 348 

   The Priest   Today at 03:10:14 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?action=admin 
8: Undefined offset: 2
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/GenericMenu.template.php (body_above sub template - eval?)
Line: 345 

ThePriest

I am not sure if it is related but the Capture security picture does not appear either. I also tried the Capsture clock but the image for that would also not appear.


ThePriest

OK did something I should have done first off and that is to put the forum into default theme. Sorry  :(

looked at the error log agan and:

First

The Priest   Today at 05:13:43 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?/topic,951.0.html 
8: Undefined variable: showMultipleTimes
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Display.template.php (main sub template - eval?)
Line: 719 

   The Priest   Today at 05:13:43 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?/topic,951.0.html 
8: Undefined variable: numberOfOccurences
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Display.template.php (main sub template - eval?)
Line: 719 

   The Priest   Today at 05:13:43 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?/topic,951.0.html 
8: Undefined variable: showMultipleTimes
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Display.template.php (main sub template - eval?)
Line: 712 

   The Priest   Today at 05:13:43 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?/topic,951.0.html 
8: Undefined variable: numberOfOccurences
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Display.template.php (main sub template - eval?)
Line: 712 

   The Priest   Today at 05:12:36 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?/topic,73.0.html 
8: Undefined variable: showMultipleTimes
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Display.template.php (main sub template - eval?)
Line: 719 


And then after running the script you gave me above.


The Priest   Today at 05:17:10 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?/topic,953.0.html 
8: Undefined variable: showMultipleTimes
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Display.template.php
Line: 719 

   The Priest   Today at 05:17:10 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?/topic,953.0.html 
8: Undefined variable: numberOfOccurences
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Display.template.php
Line: 719 

   The Priest   Today at 05:17:10 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?/topic,953.0.html 
8: Undefined variable: showMultipleTimes
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Display.template.php
Line: 712 

   The Priest   Today at 05:17:10 PM 
IP Removed     9c4abec1d1d83aac38e284a99a01b7b0 
   Type of error: Undefined 
http://www.landrover6pot.org/sixpotforum/index.php?/topic,953.0.html 
8: Undefined variable: numberOfOccurences
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum/Themes/default/Display.template.php
Line: 712 


So I am now going to have a look at the display.template.php to see if I can spot anything there.




ThePriest

OK Removed one mod, the Allcaps Blocker and this has removed some errors and none now show up in the default theme. But when I switch back to the modded Wblog one I get the errors again and this time index.template.php is the named culprit.  So it looks like I will have to put up with it and just keep deleting the error list.


Rumbaar

For one your theme isn't compatible with SMF 2.0 from initial errors.  A lot of $txt[] strings were changed from 1.x to 2.x and this is the issue.  You need to alter all old $txt[] strings to 2.x or find a compatible theme.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: