Undefined index error spamming

Started by [WmE]Maro, April 28, 2016, 10:15:22 AM

Previous topic - Next topic

[WmE]Maro

Hey,

I've a weird problem in my forum, it keeps spamming my error log.

8: Undefined index: forum_searchApply Filter: Only show the errors from this file File: /home/a6289526/public_html/Themes/Inferno/index.template.php
Line: 230


Line 230:                      <input class="inputbox" type="text" name="search" value="', $txt['forum_search'], '" onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['forum_search'], '\';" />

Note: attached my index.template.php


Kindred

Why do you think this is "spamming"?

It is telling you that you have a problem.
I suspect that $txt['forum_search'] is not defined for you...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

[WmE]Maro

Quote from: Kindred on April 28, 2016, 10:39:58 AM
Why do you think this is "spamming"?

It is telling you that you have a problem.
I suspect that $txt['forum_search'] is not defined for you...

I really know nothing about that kind of coding, can you tell me how to define?

Arantor

What language and version of SMF? I can see you're using DzinerStudio's Inferno theme.

[WmE]Maro

Quote from: Arantor on April 28, 2016, 11:25:43 AM
What language and version of SMF? I can see you're using DzinerStudio's Inferno theme.
English, SMF Version: 2.0.0

Kindred

well, you need to upgrade to 2.0.11 ASAP!! you are 11 revisions behind, including a number of security updates
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

English, English British, with or without UTF-8?

[WmE]Maro

How do I know what language and with our without UTF?

And, sorry, I meant to type that my version is 2.0.11

Arantor

Go to Admin > Confuguration > Languages, what do you see?

[WmE]Maro

Quote from: Arantor on April 28, 2016, 02:51:57 PM
Go to Admin > Confuguration > Languages, what do you see?
English   ISO-8859-1   7   en_US

Arantor



Arantor

Huh.

Add this line to your Themes/default/languages/index.english.php :

$txt['forum_search'] = 'Search';

Advertisement: