Error: 8: Undefined Index: code (Line: 879)

Started by PS, May 27, 2008, 05:53:37 AM

Previous topic - Next topic

PS

I am BRAND new to all of this, just over one week.  Please be gentle.  I did an extensive search and didn't find an answer to this question. 

My forum is running just fine (*coughs* or so I thought  ::)), but there are 15 pages of this error message:
8: Undefined Index: code
/Themes/default/languages/Post.english.php (eval?)
Line: 879


I am running 1.1.5
Themes: Outline (set to default), Dark Leaf, Orangeline
Mods: URL Popup

I think I've given the information that is most commonly asked for.  I must warn though that I ask REALLY stupid questions and I don't often know how to find the information that is asked of me.  I thought I was a community organizer until last week...

PS

Am I to assume that this question has been answered elsewhere and that I just haven't found it?  I did do a search for 879 and didn't find it.  Or perhaps it's ok that I get this error message because the forum seems fine?

greyknight17

Does that error show up if you switch back to the default theme?

See if it only happens when you use that URL Popup in the other themes. That will help us narrow down the culprit.

Let's see if we can also find more about where it's causing the error. Go into phpMyAdmin and click on your database. Then click on the SQL tab and copy paste the following code and run it:

INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);

Use the forum a little and try to regenerate new errors. If any are found, post the new ones here. Then run this query to undo the change we made earlier:

DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';

PS

I switched to the Default SMF, still generated error.  Stayed in Default and deleted the PopUp mod.  (Of course I should have done this before posting, SO sorry!)

No error.

Switched themes back to Outline.

No error.

:'(

Does this mean I can't use the URL popup?  I do love that thing as a lot of my members are brand new to forums and things. 

Should I reinstall it and then run the code you list below?  Happy to do it! 

greyknight17

Not at all. You just need to define that code variable that it's complaining about. Use the SMF Package Parser and upload that URL Popup mod to it. It will tell you what you need to edit. Install the mod first so you have the changes in place. Now run it through the Package Parser. Don't change anything. Just look at the instructions and make sure the changes were applied correctly. I'm sure you will find a file there that didn't have the edits made properly (that code variable). Add that in manually...

PS

It worked!  It worked!  The initial mod had the second bit of code in the wrong place!

YAY for the Package Parser.  I appreciate your help for this techno-phobe!

Advertisement: