Support » Plugin: WP-Activity » [Plugin: WP-Activity] New PHP issue in 1.9.1 ?

  • Resolved hmcnally


    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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Dric


    Could you try to deinstall/reinstall the plugin ?
    There is no query() function at line 616, so you may have corrupted files.

    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)){
            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);
    Plugin Author Dric


    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 :

    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.

    Plugin Author Dric


    V1.9.2 is available !

    Thanks heaps, Dric!
    I’ve updated and it worked. Thanks a lot!


Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP-Activity] New PHP issue in 1.9.1 ?’ is closed to new replies.