Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: DWG on February 17, 2011, 01:45:50 PM

Title: 8: Undefined index:
Post by: DWG on February 17, 2011, 01:45:50 PM
Getting the following 3 errors every time I attempt to do anything:
8: Undefined index: mgallery_gallery
File: /home/artisans/public_html/Themes/AOG Core Theme 2010/index.template.php
Line: 720

8: Undefined index: notes_nojs_click
File: /home/artisans/public_html/Themes/AOG Core Theme 2010/index.template.php
Line: 697

8: Undefined index: notepad
File: /home/artisans/public_html/Themes/AOG Core Theme 2010/index.template.php
Line: 696

We do have a lot of mods:
Mod Name    Version    
1.    SMF 1.0.20 / 1.1.12 Update    1.0    [ List Files ] [ Delete ]
2.    SMF 1.0.16 / 1.1.8 Update    1.0    [ List Files ] [ Delete ]
3.    Profile Fields & Icons Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    FlashChat Integration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Karma Description Mod    2.6.8    [ List Files ] [ Delete ]
6.    SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1    [ List Files ] [ Delete ]
7.    SMF 1.0.20 / 1.1.12 Update    1.0    [ List Files ] [ Delete ]
8.    CustomBox    v1.0    [ List Files ] [ Delete ]
9.    PM Popup - Uses Active Window    1.3    [ Uninstall ] [ List Files ] [ Delete ]
10.    SMF 1.0.19 / 1.1.11 Update    1.0    [ List Files ] [ Delete ]
11.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0    [ List Files ] [ Delete ]
12.    Admin member list registration date    1.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    DisableTemplateEval    1.2    [ Uninstall ] [ List Files ] [ Delete ]
14.    SMF Gallery Lite    3.0.3    [ Uninstall ] [ List Files ] [ Delete ]
15.    Display Name On Registration    1.9    [ Apply Mod ] [ List Files ] [ Delete ]
16.    Hide Signatures from Guests    2.0    [ Uninstall ] [ List Files ] [ Delete ]
17.    User Control Panel Icons    1.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    FantasticSmileys    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
19.    Welcome Topic Mod    2.1    [ Apply Mod ] [ List Files ] [ Delete ]
20.    Reply Button in All Posts    1.0    [ Uninstall ] [ List Files ] [ Delete ]
21.    SMF 1.0.16 / 1.1.8 Update    1.0    [ List Files ] [ Delete ]
22.    User Email System    1.3    [ Uninstall ] [ List Files ] [ Delete ]
23.    Thumbnail Topic Mod    1.2    [ Uninstall ] [ List Files ] [ Delete ]
24.    New In Topic View    1.1    [ Uninstall ] [ List Files ] [ Delete ]
25.    Custom Tab    1.2    [ Uninstall ] [ List Files ] [ Delete ]
26.    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
27.    Member NotePad    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
28.    SMF 1.0.20 / 1.1.12 Update    1.0    [ List Files ] [ Delete ]
29.    SMF 1.0.21 / 1.1.13 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
30.    Custom Field On Posting    1.2    [ Uninstall ] [ List Files ] [ Delete ]
31.    Tidy Child Boards    1.3    [ Uninstall ] [ List Files ] [ Delete ]
32.    Indicator On Board    1.1    [ Uninstall ] [ List Files ] [ Delete ]
33.    Happy Birthday    0.2.2    [ Uninstall ] [ List Files ] [ Delete ]
34.    Reason For Editing Mod    2.3.2    [ Uninstall ] [ List Files ] [ Delete ]
35.    Fix Session Verification for Polls    1.0    [ List Files ] [ Delete ]
36.    SMF 1.0.20 / 1.1.12 Update    1.0    [ List Files ] [ Delete ]
37.    Change Theme Permission    1.0    [ Uninstall ] [ List Files ] [ Delete ]
38.    Skype Integration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
39.    Auto Refresh Who Index    1.0    [ Uninstall ] [ List Files ] [ Delete ]

Title: Re: 8: Undefined index:
Post by: Matthew K. on February 17, 2011, 01:59:28 PM
It appears as if those are text strings that are not being defined. Do you see labels for the menu items "Gallery" and "Notepad"?
Title: Re: 8: Undefined index:
Post by: DWG on February 17, 2011, 03:13:10 PM
Gallery is there, but not Notepad
Title: Re: 8: Undefined index:
Post by: Matthew K. on February 17, 2011, 03:19:40 PM
I would suggest going to the mods pages, parsing the mods, and redoing the language string edits.

Unless you're using UTF-8, in that case, you'll want to duplicate the english.php edits in all english-utf8 files, if that makes sense.
Title: Re: 8: Undefined index:
Post by: DWG on February 17, 2011, 03:29:29 PM
Quote from: Labradoodle-360 on February 17, 2011, 03:19:40 PM
parsing the mods, and redoing the language string edits.
Which mods? All of them??

Quote from: Labradoodle-360 on February 17, 2011, 03:19:40 PM
Unless you're using UTF-8, in that case, you'll want to duplicate the english.php edits in all english-utf8 files, if that makes sense.
Makes sense.
Title: Re: 8: Undefined index:
Post by: Matthew K. on February 17, 2011, 03:35:47 PM
Just for the gallery, and the notepad.

And are you using UTF-8? If so, that's probably why.
Title: Re: 8: Undefined index:
Post by: DWG on February 17, 2011, 07:57:06 PM
Not using UTF-8. Biggest problem is that another Admin went and deleted all of the uninstalled mods, so now I have no idea which actual mods were at one time being used. It appears that this is not going to be an easy task finding the root cause of the errors.
Title: Re: 8: Undefined index:
Post by: Kays on February 17, 2011, 08:37:24 PM
Hi, can you attach index.template.php to a post and I'll look into this.
Title: Re: 8: Undefined index:
Post by: DWG on February 17, 2011, 08:44:13 PM
One besides the one in the opening post of this topic?
Title: Re: 8: Undefined index:
Post by: Kays on February 17, 2011, 09:04:50 PM
Oops, sorry I missed that. ::)

The code there looks good; Check modifications.{language}.php to see if the language strings for the notepad mod are there. Also check for those for the gallery mod.

Title: Re: 8: Undefined index:
Post by: Matthew K. on February 17, 2011, 09:21:16 PM
Seems to be what I said. The code does look fine, and if it's not being defined, it has to be a language file issue, really.
Quote from: Kays on February 17, 2011, 09:04:50 PM
Oops, sorry I missed that. ::)

The code there looks good; Check modifications.{language}.php to see if the language strings for the notepad mod are there. Also check for those for the gallery mod.


Title: Re: 8: Undefined index:
Post by: Kays on February 17, 2011, 09:38:15 PM
Yah, my bad. I shouldn't be posting when I'm distracted by other things. ::)
Title: Re: 8: Undefined index:
Post by: DWG on February 18, 2011, 11:42:14 AM
Whoops - my bad - I was not looking at the error message - it plainly says AOG Core Theme 2010/index.template.php
I previously uploaded the index.template.php from the Default theme

Attached is the one from AOG Core Theme 2010/index.template.php
Title: Re: 8: Undefined index:
Post by: Matthew K. on February 18, 2011, 12:27:06 PM
Just reviewed the file, and all looks in-tact. Did you check the language files as Kays and I suggested above?
Title: Re: 8: Undefined index:
Post by: DWG on February 18, 2011, 03:43:04 PM
Yes - checked language files - mgallery_gallery, notes_nojs_click and notepad are not in there.

No longer using SMF Media Gallery (mgallery_galery) or Notepad and not sure just what notes_nois_click are.

None of these are in the Default Theme, however they are showing up in our AOG Core Theme 2010 index.template.php - so now I have identified that the problem children are in that theme - question is what do I need to do to cleanly get rid of them?
Title: Re: 8: Undefined index:
Post by: Matthew K. on February 18, 2011, 03:57:34 PM
Wait, you're no longer using the mods? That would be why then, you need to remove it's edits in index.template.php
Title: Re: 8: Undefined index:
Post by: DWG on February 18, 2011, 05:24:08 PM
Quote from: Labradoodle-360 on February 18, 2011, 03:57:34 PM
you need to remove it's edits in index.template.php

What EXACTLY do I need to remove? I certainly do no want to screw up anything else.
Title: Re: 8: Undefined index:
Post by: DWG on February 19, 2011, 11:58:37 AM
Finally got it sorted.
Title: Re: 8: Undefined index:
Post by: Matthew K. on February 19, 2011, 09:31:33 PM
Meh, sorry I couldn't have helped you. I've not had much time at the computer recently. I apologize.

Glad to see you got it figured out though,
Labradoodle-360