The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. NetAlien
    Posted 4 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


  2. wmsedgar
    Plugin Author

    Posted 4 years ago #


    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

  • Googlyzer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic