• Resolved Malae

    (@malae)


    Hi Rolf,

    I am getting the the following errors on a WAMP site. The active site on hosting and other sites on WAMP have no problem. All are running PHP 7.2.

    ( ! ) Fatal error: Uncaught Error: Call to undefined method wpdb::get_results() in \wp-content\plugins\rvg-optimize-database\rvg-optimize-database.php on line 127
    ( ! ) Error: Call to undefined method wpdb::get_results() in \wp-content\plugins\rvg-optimize-database\rvg-optimize-database.php on line 127

    Any idea why this is happening?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cageehv

    (@cageehv)

    Hey Malae,

    Apparently, it must have something to do with your local PHP.ini settings or your local database.

    In the statement where the error shows up, the log table is created.

    So, does, for instance, the local db user, that you use, have the CREATE TABLE permission?

    peace,
    Rolf

    Hi Rolf,

    Thanks for your reply. What is puzzling is that this is only occurring with this one site on WAMP. I quickly get out of my depth when I encounter database issues and more so when it’s InnoDB, where you cannot repair tables, so decided to look at the PHP.

    I added the code global $wpdb; before line 127 and the error disappeared. I then removed global $wpdb; and the problem has not returned! I assumed it may have be a temporary glitch, but you may understand better than I do.

    Plugin Author cageehv

    (@cageehv)

    Hey malae,

    Yes it definitely could have been a temporary thing.

    Maybe a cache issue or so.

    Anyways, glad it works now!

    peace,
    Rolf

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error’ is closed to new replies.