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
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
o.O Hang on a minute.
Do you have access to phpMyAdmin on your host?
I do have php admin...yes
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.
188 rows?
my old db has 197 and my new one has 188....is that my issue
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.
it said this:
SQL query:
INSERT INTO `red1005206525899`.`smf_settings` (
`variable` ,
`value`
)
VALUES (
'smfVersion', '1.1.11'
That's successful.
Now go back to your forum and do what you were doing before.
SWEET! thanks....yep error is gone. You rock!
Glad to hear that solves it :)
If you have no further concerns please use the "Mark Topic Solved" button :)
That's something I've learnt!
Nice one, 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.
I ought to brush-up on db stuff...