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
Fatal error: Call to a member function check_connection()
Avatar
Ryan
Member
sp_UserOfflineSmall Offline
Oct 2, 2015 - 6:54 pm

Mr Papa said
No, this would be an advanced topic... sorry, thought  I  mentioned it, easiest way would be to inquire with your host... if you have access to a phpinfo() display, that could give it to you as well...

still researching this as well since not convinced that is the issue...  but the error is actually occurring in a wp function (their db connection code)...  and its not obvious how its triggered..  only these two reports and I cannot duplicate it... and wp support forum have fair number of similar reports but no common thread...

would it be possible to temp disable all other plugins and see if it still occurs?

Already tried that and it still happens.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 3, 2015 - 1:05 am

well, tomorrow is weekend and plan to research further... but bit stymied what would be causing this on two sites... and in a wp function no less...

Avatar
Paul Browning
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Oct 3, 2015 - 2:07 am

It would be tricky because it's a live membership site with 35 IT courses running 24/7.

It's all working but I see the error every time I post and on the bottom of every page. I can only see it in Google Chrome though, not Firefox!

Regards

Paul

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 3, 2015 - 10:08 am

can you guys give me a link to where this is happening so I can see where the error is occurring in relation to the rest of the page display? @howtonetwork yours is behind paywall...

It appears the only way this can happen is when the WP global $wpdb does not exist - or correctly is not yet set up...  wouldnt have expected that in the footer, but perhaps something else is doing some sort of ajax response...

can you both verify on forum - integration - page and permalink that you have 'limit forum display to within wp loop' set true and 'allow multiple loading of forum content' set false?

If so, then try checking 'force strict use of the WP API' and see if any difference...

Avatar
Ryan
Member
sp_UserOfflineSmall Offline
Oct 3, 2015 - 3:01 pm

The error for me only appears in my error logs, I guess he has debug set to true in wp-config.php so that might be when he actually sees the error.

Limit forum to display to within WP loop was not checked (is now)
Force the strict use of WP API was not checked (is now)
Allow multiple loading of forum was not checked and is still not checked

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 3, 2015 - 3:46 pm

and I assume, no change?  didnt really expect so, but was hoping... is one case where the $wpdb object would not be valid...

you might also have display errors turned off in your php ini like one really should for production sites...

still looking, but a bit stymied how the $wpdb object wouldnt exist..

Avatar
Paul Browning
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Oct 3, 2015 - 10:44 pm

Done as requested but no change.

I can't seem to send any PMs now as it won't auto complete.

Regards

Paul

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 4, 2015 - 11:28 am

I am still at a loss as to what is going on here...  and why just the two of you are having this issue...

upon further research, this check connection is only used when we are trying to generate an error and log it..  so we are definitely in a some odd state here...

For now, to remove the error, I would suggest going to forum - options - global settings and disable logging...  that should at least remove the error...

also, any errors displayed on forum - toolbox - error log?

Avatar
Ryan
Member
sp_UserOfflineSmall Offline
Oct 4, 2015 - 5:28 pm

I haven't had the connection error today, but I have had the following:

[04-Oct-2015 16:08:35 UTC] PHP Warning - Creating default object from empty value - file: /simple-press/sp-startup/site/sp-site-support-functions.php - line: 686 - function: sp_check_for_updates

[04-Oct-2015 16:08:35 UTC] PHP Warning: Creating default object from empty value in /home/HOSTACCOUNT/public_html/wp-content/plugins/simple-press/sp-startup/site/sp-site-support-functions.php on line 686
[04-Oct-2015 16:08:35 UTC] PHP Warning - Creating default object from empty value - file: /simple-press/sp-startup/site/sp-site-support-functions.php - line: 686 - function: spHandleShutdown

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 4, 2015 - 5:33 pm

nah, those are harmless notices (not errors) and unrelated... in fact, those three have already been dealt with in the next version...

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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625