I Get Error Hundreds of Times: 8: Undefined index: icon

Started by davef, June 07, 2005, 09:23:19 PM

Previous topic - Next topic

davef

I get 7 or 8 pages a day of this error in my error logs.  (8: Undefined index: icon)

  Does anyone know what this is and how I can fix it?

Thanks.

[Unknown]

What line does it say it's on?

Are all your templates and files up to date?

Are you using any custom theme?

-[Unknown]

davef

file:  Source/post.php
line:  sometimes 490, sometimes 1180
theme:  Themis


[Unknown]

Have you modified your templates in any way, perhaps to remove message icons?

-[Unknown]

davef

Yes, we did.  So if we don't want message icons, we have to deal with 100's of error messages in the logs? 

bloc

What did you remove..and where? In the template files or in the Sources files?

Generally you should be able to get around these new errors, but you need to show what you removed. I am guessing you removed something that the theme expects..so the theme needs to to adjusted too.

Gary

I get it several times in my logs too:

8: Undefined index: warning
File: /****/****/****/forum/Sources/Load.php
Line: 675
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Grudge

davef,

Of course not, but if you don't want something you have to remove it cleanly :)

I expect you removed it from Post.template.php, but just removed the SELECT box code. As the script expects some form of message icon you can do so by turning the SELECT box into a hidden element. So where you removed the drop down you should put:


<input type="hidden" name="icon" value="xx" />


Generally, if you ever want to remove an element of a form you should make it a hidden element and not just yank it out :) (Or if you do yank it out do the same thing with the Source code that handles the element)
I'm only a half geek really...


Advertisement: