WP Db Abstraction
Fatal error: Cannot access empty property on result->fetchAll(PDO::FETCH_OBJ) (3 posts)

  1. Justin Tilson
    Posted 1 year ago #

    ON: SQL Server 2008 R2

    When trying to activate the WP Groups plugin (http://wordpress.org/plugins/groups/), I get Fatal error: Cannot access empty property on the following line (drivers/pdo.php, _post_query() method):

    $this->last_result = $this->result->fetchAll(PDO::FETCH_OBJ);

    I tried checking for null, empty, property_exists, method_exists on result and fetchAll() prior to that line so I could log the query that is causing the problems and none of my checks ever returned false. Could this be a problem internally in the fetchAll() method?

    When logging all queries the last one logged before the fatal error is:

    12/16/13 19:34:33,788 [7068] DEBUG pdo_wpdb - PDOStatement::__set_state(array(
       'queryString' => 'SELECT @@IDENTITY',

    SELECT @@IDENTITY executed without error earlier so I can not say with confidence that it is the culprit.

    I've spent a few hours on this and can't figure it out. Any suggestions?


  2. blindmikey
    Posted 1 year ago #

    Running into the same issue - did you ever find a work around?


  3. blindmikey
    Posted 1 year ago #

    Still interested, though I went with this plugin instead - seems to work fine.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Db Abstraction
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic