SMF Support > SMF 2.0.x Support
Function name must be a string error after upgrade from 1.1.2 to 2.0.2
(1/1)
karltinsly:
I upgraded from 1.1.2 to 2.0.2 last night. Everything went smoothly, except that clicking the menu link to the forum on my site produced these errors:
Notice: Undefined index: db_query in /home/austinpo/public_html/forum/Sources/Load.php on line 142
Fatal error: Function name must be a string in /home/austinpo/public_html/forum/Sources/Load.php on line 142
I did a lot of searching and reading last night, and I tried re-upgrading several times, but eventually just changed my menu link to the url of the forum, rather than a component link, and left it at that. Today, I tried logging on to my website -- not the forum -- and I got a message that the username or password were incorrect. After I clicked OK to that message, I was logged into the website. I thought that was strange, so I went to log out, so I could try it again, and I got the errors listed above again.
I'm not sure what's going on, but I'm afraid my users might be getting some random errors that are confusing them. Could someone help me figure out what's going on? I've looked in load.php, and $smcFunc is listed in the globals, but I don't know how or where to check to see if SSI.php is "included".
I am running Joomla 1.0.12.
Thanks!
redone:
If your using some kind of bridge with Joomla, you indicated a version of Joomla you are using and referenced components. Do you have it bridged? Upgrading typically should not affect your menu links.
Did you disable all mods before upgrading? Post a link to your forum that would help. You may have to modify the load.php file to remove or resolve your error.
karltinsly:
Thanks for replying. I am very new to Joomla, having inherited this website, but I'm pretty tech-savvy and a quick study. I looked before the upgrade, but could not tell if there were any mods installed. I'm afraid I don't know what bridging means. We do have Community Builder installed -- is that a mod?
The previous link that didn't work was listed as a Link - Component Item in the menu manager.
The forum is at hxxp:www.austinpondsociety.org/forum [nonactive]. I'm not afraid of editing load.php or other files, as long as I know what needs done.
Thanks again.
karltinsly:
Since I haven't heard anything more, I thought I'd post what I've looked at so far. The error is in load.php. The error has to do with a function call to db_query in the smcFunc array. Since db_query is not added to the array in load.php, it must be coming from somewhere else. The most likely candidate is subs-db-mysql.php, though I'm not 100% sure. I can't tell if that file has been loaded by that point. There is a require statement for it later in the file, but I don't know when it's called.
It looks to me like when I log in to my website, the website login is working, and then the login to the forum is failing -- since I end up logged into the website, but not the forum.
I'm not sure what to do next. I've thought about upgrading Community Builder to see if that fixes it, or maybe refreshing all the way back to before the SMF upgrade and starting over. If I start over and reload SMF, do I need to disable all mods on the site, not just ones related to SMF?
Thanks for any help,
Navigation
[0] Message Index
Go to full version