WordPress.org

Ready to get started?Download WordPress

Forums

Googlyzer
[resolved] undefined method DateTime::sub() in Utilities.php on line 795 (2 posts)

  1. NetAlien
    Member
    Posted 2 years ago #

    version 1.2.1 works, but 2.1 gives this error:
    Fatal error: Call to undefined method DateTime::sub() in /usr/local/pem/vhosts/282473/webspace/siteapps/171216/htdocs/wp-content/plugins/googlyzer/inc/Utilities.php on line 795

    http://wordpress.org/extend/plugins/googlyzer/

  2. wmsedgar
    Member
    Plugin Author

    Posted 2 years ago #

    NetAlien,

    Thanks for your post. That error is due to an out-of-date version of PHP running on your webserver. Googlyzer 2.x uses the PHP DateTime function, which is a standard library in PHP after version 5.3 (first released in 2009). You must be running a version of PHP prior to 5.3. Most likely you're running PHP 5.2, which is quite old. I'd recommend checking your PHP version and updating. We've had a very small number of users encounter this issue, all of whom have been able to update their PHP version to resolve it.

    You can see more information about this issue, as well as support links related to updating your PHP version if you are hosted on GoDaddy or HostGator, on the Googlyzer Support forums via this link.

    Let us know if you continue to have any issues.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags