Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: redneck racer on February 22, 2010, 04:48:23 PM

Title: anyone know how to make this error go away?
Post by: redneck racer on February 22, 2010, 04:48:23 PM
Hi, Im a dumb racecar driver and know almost nothing about this computer stuff. I recently added a smf forum to my website, and then through mysql php manager moved my old forum files to my new forum. I added a shoutbox and now have this error code in the shoutbox area. shoutbox works fine just has this displayed. I just uploaded the forum yesterday so its  the newest version.1.11.11? thanks

Notice: Undefined index: smfVersion in D:\Hosting\5698432\html\Forum\Sources\Load.php(1733) : eval()'d code on line 629
Title: Re: anyone know how to make this error go away?
Post by: kat on February 22, 2010, 04:59:14 PM
http://www.simplemachines.org/community/index.php?topic=290186.0 (http://www.simplemachines.org/community/index.php?topic=290186.0)


There's a mod that does this, too. Gimme a minute and I'll find it...


EDIT: There ya go!


http://custom.simplemachines.org/mods/index.php?mod=2054
Title: Re: anyone know how to make this error go away?
Post by: Arantor on February 22, 2010, 05:06:24 PM
o.O Hang on a minute.

Do you have access to phpMyAdmin on your host?
Title: Re: anyone know how to make this error go away?
Post by: redneck racer on February 22, 2010, 05:21:56 PM
I do have php admin...yes
Title: Re: anyone know how to make this error go away?
Post by: Arantor on February 22, 2010, 05:26:05 PM
Go into the database for your forum and take a look at the settings table. It might be called smf_settings within the database.

Tell me how many rows it has.
Title: Re: anyone know how to make this error go away?
Post by: redneck racer on February 22, 2010, 05:28:46 PM
188 rows?
Title: Re: anyone know how to make this error go away?
Post by: redneck racer on February 22, 2010, 05:38:19 PM
my old db has 197 and my new one has 188....is that my issue
Title: Re: anyone know how to make this error go away?
Post by: Arantor on February 22, 2010, 05:39:10 PM
Sort of, yeah.

OK, from that table, select the Insert tab. We're gonna insert a new row :)

You'll see two big white boxes, the top row has a heading on the left of 'variable', the bottom row has a heading on the left of 'value'. What the error you're seeing is saying is that it can't find a 'variable' called 'smfVersion' and thus can't find its matching 'value'. So we're going to fix that.

In the first (very large) white box (with the 'variable' heading on the left), enter:
smfVersion

In the second (very large) white box directly under it, enter:
1.1.11

Then press [Go] directly underneath that and let me know what it says.
Title: Re: anyone know how to make this error go away?
Post by: redneck racer on February 22, 2010, 05:43:13 PM
it said this:

SQL query:
INSERT INTO `red1005206525899`.`smf_settings` (
`variable` ,
`value`
)
VALUES (
'smfVersion', '1.1.11'
Title: Re: anyone know how to make this error go away?
Post by: Arantor on February 22, 2010, 05:44:01 PM
That's successful.

Now go back to your forum and do what you were doing before.
Title: Re: anyone know how to make this error go away?
Post by: redneck racer on February 22, 2010, 05:45:05 PM
SWEET!  thanks....yep error is gone.  You rock!
Title: Re: anyone know how to make this error go away?
Post by: Arantor on February 22, 2010, 05:45:31 PM
Glad to hear that solves it :)

If you have no further concerns please use the "Mark Topic Solved" button :)
Title: Re: anyone know how to make this error go away?
Post by: kat on February 23, 2010, 05:03:40 AM
That's something I've learnt!


Nice one, Arantor!  :)
Title: Re: anyone know how to make this error go away?
Post by: Arantor on February 23, 2010, 05:35:34 AM
Kat: Basically, if it's complaining about something like that, it's a $modSetting variable that it *should* always have and never expects to be empty. By checking the table size first, I was satisfied that the table wasn't randomly empty (which would have been Bad), so then it's just a case of refilling the value it's supposed to have.
Title: Re: anyone know how to make this error go away?
Post by: kat on February 23, 2010, 05:40:27 AM
I ought to brush-up on db stuff...