News:

Wondering if this will always be free?  See why free is better.

Main Menu

anyone know how to make this error go away?

Started by redneck racer, February 22, 2010, 04:48:23 PM

Previous topic - Next topic

redneck racer

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


Arantor

o.O Hang on a minute.

Do you have access to phpMyAdmin on your host?
Holder of controversial views, all of which my own.


redneck racer


Arantor

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.
Holder of controversial views, all of which my own.



redneck racer

my old db has 197 and my new one has 188....is that my issue

Arantor

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.
Holder of controversial views, all of which my own.


redneck racer

it said this:

SQL query:
INSERT INTO `red1005206525899`.`smf_settings` (
`variable` ,
`value`
)
VALUES (
'smfVersion', '1.1.11'

Arantor

That's successful.

Now go back to your forum and do what you were doing before.
Holder of controversial views, all of which my own.


redneck racer

SWEET!  thanks....yep error is gone.  You rock!

Arantor

Glad to hear that solves it :)

If you have no further concerns please use the "Mark Topic Solved" button :)
Holder of controversial views, all of which my own.


kat

That's something I've learnt!


Nice one, Arantor!  :)

Arantor

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.
Holder of controversial views, all of which my own.


kat


Advertisement: