hmcnally
Member
Posted 1 year ago #
Just installed the 1.9.1 update, am now getting this error when looking at the WP-Activity log:
Call to a member function query() on a non-object in [directory]/wp-content/plugins/wp-activity/wp-activity.php on line 616
The 1.9.1 update could be a coincidence, of course. Any thoughts?
http://wordpress.org/extend/plugins/wp-activity/
Dric
Member
Plugin Author
Posted 1 year ago #
Hi,
Could you try to deinstall/reinstall the plugin ?
There is no query() function at line 616, so you may have corrupted files.
hmcnally
Member
Posted 1 year ago #
I did that, no good. And I do see a query statement on line 616, it's the last line of this fragment:
case 'POST_ADD':
if (is_numeric($act_raw->act_params)){
$act_post=get_post($act_raw->act_params);
if ($act_raw->id != $act_post->post_author and !$strict_logs) { //this is a check if post author has been changed in admin post edition.
$sql = "UPDATE ".$wpdb->prefix."activity SET user_id = '".$act_post->post_author."' WHERE id = '".$act_raw->id."'";
$wpdb->query( $sql);
Dric
Member
Plugin Author
Posted 1 year ago #
Ok, sorry.
I looked at a development version of my plugin, so the line has moved.
did it worked in v1.9 ? The only thing I changed in v1.9.1 was a bug with timezones, nothing related to your problem.
Edit : I think I found what's wrong. I'm suprised that I didn't saw it before...
Please try the v1.9.2 version : http://downloads.wordpress.org/plugin/wp-activity.1.9.2.zip
hmcnally
Member
Posted 1 year ago #
I think this bug was noticed co-incidetally to the 1.9.1 update too. 1.9.2 fixes the issue though... thanks!
Thanks Dric.
Will 1.9.2 be available for installing through WP admin?
Thank you.
Natalie
Dric
Member
Plugin Author
Posted 1 year ago #
Thanks heaps, Dric!
I've updated and it worked. Thanks a lot!
Cheers,
Natalie