WordPress.org

Ready to get started?Download WordPress

Forums

Askupa Twitter Feed
Fatal error in widget (7 posts)

  1. Hugh Mungus
    Member
    Posted 1 year ago #

    Fatal error: Call to undefined method DateTime::getTimestamp() in /wp-content/plugins/wd-twitter-feed/WDTwitterFeed.php on line 298

    http://wordpress.org/extend/plugins/wd-twitter-feed/

  2. webdesk
    Member
    Plugin Author

    Posted 1 year ago #

    May I ask what is your PHP version?
    If it is older than 5.3, that might be the reason for this error message

  3. Hugh Mungus
    Member
    Posted 1 year ago #

    Hi, I use WP 3.5.1.

  4. webdesk
    Member
    Plugin Author

    Posted 1 year ago #

    That's the WordPress version, but what about your PHP version? It appears that your host is using an older version of PHP. Contact your host provider and ask them for the PHP version or otherwise type phpversion() and see what you get.

  5. Hugh Mungus
    Member
    Posted 1 year ago #

    Sorry, misread. PHP Version 5.2.17

  6. Hugh Mungus
    Member
    Posted 1 year ago #

    Looks like that method is only available in php version 5.3+. I will modify it for compatibility with older versions of php also. Thanks.

  7. President McCheese
    Member
    Posted 1 year ago #

    class MyDateTime extends DateTime {
    public function getTimestamp() {
    return method_exists('DateTime', 'getTimestamp') ?
    parent::getTimestamp() : $this->format('U');
    }
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.