Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author webdesk.co.il

    (@webdesk)

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

    Thread Starter hugh-mungus

    (@hugh-mungus)

    Hi, I use WP 3.5.1.

    Plugin Author webdesk.co.il

    (@webdesk)

    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.

    Thread Starter hugh-mungus

    (@hugh-mungus)

    Sorry, misread. PHP Version 5.2.17

    Thread Starter hugh-mungus

    (@hugh-mungus)

    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.

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

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