Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
"Invalid Database Query" Message
Avatar
Mark Kneen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 19, 2013 - 5:28 pm

Whenever I follow an external hyperlink to an item or post in our forum I briefly get an "Invalid Database Query" message (see image attached). This doesn't appear to have any adverse affect and everything seems to working OK and doesn't happen with links within the forum but it is a little annoying. Any ideas as to what it might be?

databasequery.JPGImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 19, 2013 - 8:19 pm

what is the error?  forum - toolbox - error log

my guess is you updated to 5.3.1 but have not updated the required plugins yet... or vice versa...

Avatar
Mark Kneen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 22, 2013 - 3:20 am

All plug-ins are up to date. Sorry, didn't think to check the error log... here is the entry following the message..

[22-Sep-2013 07:17:52 UTC] WordPress database error Table 'swanseaw_sw2012.ii23313696_sfbuddies' doesn't exist for query SELECT buddy_id FROM ii23313696_sfbuddies WHERE user_id=57 made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, sp_is_forum_page, sp_load_current_user, sp_get_user, spUser->__construct, do_action_ref_array, call_user_func_array, sp_pm_add_to_user_class, spdb_select
[22-Sep-2013 07:17:52 UTC] WordPress database error Table 'swanseaw_sw2012.ii23313696_sfbuddies' doesn't exist for query SELECT buddy_id FROM ii23313696_sfbuddies WHERE user_id=76 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/fitness-wp/page-fullwidth.php'), the_content, apply_filters('the_content'), call_user_func_array, sp_render_forum, sp_process_template, sp_load_template, include('/sp-resources/forum-themes/default/templates/spTopicView.php'), sp_this_topic, spTopicView->__construct, spTopicView->sp_topicview_query, sp_get_user, spUser->__construct, do_action_ref_array, call_user_func_array, sp_pm_add_to_user_class, spdb_select
[22-Sep-2013 07:17:52 UTC] PHP Notice:  Trying to get property of non-object

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 22, 2013 - 5:30 am

Understood. One or two questions before we decide how to resolve it...

Is this a recent and newish installation of Simple:Press and if so, has the private messaging system been used?

And... do you know how to work with your database in tools like phpMyAdmin if I gave you a sql script to run?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mark Kneen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 22, 2013 - 6:21 am

Not a new installation of Simple:Press but an new implementation of the private messaging plug-in.

I've used phpMyAdmin for minor stuff and restoring the database from a backup and I can find the SQL tab for running SQL query but that's my knowledge right there in one line confused

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 22, 2013 - 6:30 am

The quickest fix is to uninstall the PM plugin and then reactivate it. But that will remove any current PMs from the database. Let me know if this is not a desirable fix and I can work up a simple script for you.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mark Kneen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 22, 2013 - 6:53 am

That would be fine... so I need to uninstall, not just de-activate it?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 22, 2013 - 6:56 am

That's right. Uninstall removes the sub-system - deactivate just turns it off.

There were two or three days when the release we made of SP failed to upgrade to create that new table which was quickly corrected. I assume this was the version you downloaded and installed. So - providing you are using the latest (2.0.4 as of yesterday) then uninstalling and then activating should run the install script for you.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mark Kneen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 22, 2013 - 6:58 am

Ah, yes, uninstalled and re-activated and it's gone... many thanks.. great help as always

 smile

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 22, 2013 - 7:29 am

Just glad we could do it the easy way. And I learned an important lesson from that little error :)

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626