Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: xpubstargamingx - maaliskuu 29, 2011, 09:27:36 IP

Otsikko: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: xpubstargamingx - maaliskuu 29, 2011, 09:27:36 IP
I am running 1.1.13 and I noticed this in the error report about 1 trillon times.

8: Use of undefined constant Forum - assumed 'Forum'
File: /home/content/p/u/b/pubstargaming/html/forum/Themes/default/PortalArticles.template.php (eval?)
Line: 671

8: Undefined index: can_pos_rep
File: /home/content/p/u/b/pubstargaming/html/forum/Themes/Default-copy/Display.template.php (eval?)
Line: 36

8: Undefined index: can_neg_rep
File: /home/content/p/u/b/pubstargaming/html/forum/Themes/Default-copy/Display.template.php (eval?)
Line: 37

8: Undefined index: can_pos_rep
File: /home/content/p/u/b/pubstargaming/html/forum/Themes/default/languages/Aeva.english.php (eval?)
Line: 456


What needs to be done to correct this error for Line 36, 37, 456 and 671?
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: Ashley S - maaliskuu 31, 2011, 10:57:59 AP
Have you made any edits to the theme files recently?.
It maybe just the theme it's self. An old theme.
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: Illori - maaliskuu 31, 2011, 11:01:23 AP
please install http://custom.simplemachines.org/mods/index.php?mod=2054 and enable it, then post the new errors without eval in them.
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: xpubstargamingx - maaliskuu 31, 2011, 11:29:13 AP
Lainaus käyttäjältä: Illori - maaliskuu 31, 2011, 11:01:23 AP
please install http://custom.simplemachines.org/mods/index.php?mod=2054 and enable it, then post the new errors without eval in them.

I enabled the Mod and this is what the error log shows now...

Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: xpubstargamingx - huhtikuu 09, 2011, 10:36:13 AP
Does anyone know what I need to do to correct this issue?

Any help would be greatly appreciated.
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: Illori - huhtikuu 09, 2011, 10:39:00 AP
looks like one or more of your mods did not install correctly. can you post your list of installed mods?
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: xpubstargamingx - huhtikuu 09, 2011, 11:11:04 AP
Lainaus käyttäjältä: Illori - huhtikuu 09, 2011, 10:39:00 AP
looks like one or more of your mods did not install correctly. can you post your list of installed mods?

   Mod Name    Version    
1.    Redirect on Login and/or Logout mod    0.4    [ Uninstall ]
2.    Aeva Media    1.1    [ Uninstall ]
3.    Share This Topic    1.5    [ Uninstall ]
4.    Ad Managment    2.3.6.1    [ Uninstall ]
5.    Limit A Guests Daily PageViews Mod    1.0    [ Uninstall ]
6.    Anti Bot: Are You Human/Bot?    2.3    [ Uninstall ]
7.    MessagePreviewOnHover    1.7    [ Uninstall ]
8.    Enhanced PM Warning Message    1.0    [ Uninstall ]
9.    Moderator and Administrator Comment Tags    1.8    [ Uninstall ]
10.    Spoiler Tag    0.7.2    [ Uninstall ]
11.    SMF 1.0.20 / 1.1.12 Update    1.0    [ Uninstall ]
12.    SMF 1.0.21 / 1.1.13 Update    1.0    [ Uninstall ]
13.    Pretty URLs    1.0RC2a    [ Uninstall ]
14.    SimplePortal    2.3.2    [ Uninstall ]
15.    DisableTemplateEval    1.2    [ Uninstall ]
16.    Referrals System    3.0.2    [ Uninstall ]
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: xpubstargamingx - huhtikuu 09, 2011, 11:12:59 AP
I did try to install a Rep system about a year ago, but it was uninstalled and deleted. Could that be what is causing the issue?

Hence the pos_rep and neg_rep.

What would I need to do to correct this issue since it has been uninstalled and deleted over a year ago?
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: Illori - huhtikuu 09, 2011, 11:27:37 AP
first thing would be to parse the mod and manually try to remove the code that is left. basically doing the reverse of this Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: xpubstargamingx - toukokuu 20, 2011, 12:19:04 IP
Now all that is left is...

8: Use of undefined constant Forum - assumed 'Forum'
File: /home/content/p/u/b/pubstargaming/html/forum/Themes/Default-copy/index.template.php
Line: 671

Not sure what to search for for find this line of code.

Any idea?
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: xpubstargamingx - toukokuu 20, 2011, 01:14:49 IP
Here is a new error I have been receiving in the last 24 hours...

Database Error: MySQL server has gone away
File: /home/content/02/5138502/html/forum/Sources/Subs.php
Line: 3235Database Error: MySQL server has gone away
File: /home/content/02/5138502/html/forum/Sources/Load.php
Line: 2067
Otsikko: Re: Undefined Index Errors on 4 Lines {36, 37, 456, 671}
Kirjoitti: Aleksi "Lex" Kilpinen - kesäkuu 13, 2011, 08:34:58 AP
Lainaus käyttäjältä: xpubstargamingx - toukokuu 20, 2011, 12:19:04 IP
Now all that is left is...

8: Use of undefined constant Forum - assumed 'Forum'
File: /home/content/p/u/b/pubstargaming/html/forum/Themes/Default-copy/index.template.php
Line: 671

Not sure what to search for for find this line of code.

Any idea?
If this error is still happening, can you check what exactly is on that line?

Lainaus käyttäjältä: xpubstargamingx - toukokuu 20, 2011, 01:14:49 IP
Here is a new error I have been receiving in the last 24 hours...

Database Error: MySQL server has gone away
File: /home/content/02/5138502/html/forum/Sources/Subs.php
Line: 3235Database Error: MySQL server has gone away
File: /home/content/02/5138502/html/forum/Sources/Load.php
Line: 2067
This is most commonly a host issue - and if it happens a lot, you are best to contact your host.