I just upgraded my forum to 2.0, and now whenever you try to click a board, topic, or profile, the following error shows up:
LainaaFatal error: Call to undefined function: db_query() in /home/official/public_html/seo4smf-redirect.php on line 105
I have no idea what to do.
Thanks in advance for any help. :)
[edit]
The three errors we have been getting are for lines 58, 105, and 125.
Here are the codes for those sections. I'm not familiar enough with this to know what's wrong with them.
58:
$query = db_query("
SELECT m.ID_TOPIC, m.subject ,b.ID_BOARD, b.name
FROM {$db_prefix}messages AS m, {$db_prefix}boards AS b
WHERE m.ID_TOPIC = $topic
AND m.ID_BOARD = b.ID_BOARD
LIMIT 1", __FILE__, __LINE__);
105:
$query = db_query("
SELECT name FROM {$db_prefix}boards AS b
WHERE ID_BOARD = $board
LIMIT 1", __FILE__, __LINE__);
125:
$request = db_query("SELECT memberName FROM {$db_prefix}members where ID_MEMBER=".$user." limit 1", __FILE__, __LINE__);
If you had an SEO for SMF mod installed in 1.1.x that is causing your problem. There were many database changes in 2.0, so the query can't be run. Does the package manager work? If it does, uninstall that mod.
When I went into the packages, the only options that were there for the seo4smf were list files and delete. I tried doing the delete, but that didn't resolve the issue. Is there another way to uninstall it or to make sure it is really uninstalled?
[edit]
So, I tried to just go back to 1.1.8, but that wouldn't work. Now I am getting the following error on my forum:
LainaaTable 'm' is marked as crashed and last (automatic?) repair failed
File: /home/official/public_html/Sources/Subs-BoardIndex.php
Line: 82
I don't know what to do about this either.. >.<
Try downloading it and on to the package manager again, install it even it has errors, then un-install it. See what happens then.
You should really before updating, test it on a test forum with the same mods. Then there are no errors on the big forum.
I should have done more reading before going ahead with the upgrade. It's my first time, and I never knew that packages made such a difference between forums.
There does not seem to be an option to install the seo4smf in the packages menu. Is there any other way that it can be removed properly apart from the packages manager?
[edit]
My gosh.. I just took a stab in the dark, and added "#" before anything in the htaccess file that had to do with topics, profiles, or boards, and now my forum is working again! So far I haven't seen any errors. I think I've fixed it.
Thank you for your help, Xylar. :)