WordPress.org

Ready to get started?Download WordPress

Forums

Outdated Post Notice
Fatal error: Call to undefined method DateTime::diff() (2 posts)

  1. meksone
    Member
    Posted 4 months ago #

    Hi, after activating the plug in I've received the following message:

    Fatal error: Call to undefined method DateTime::diff() in /myhoew/myfolder/public_html/wp-content/plugins/outdated-post-notice/class/class-fs-outdated-post-notice.php on line 443

    Thank you for any suggestion.

    https://wordpress.org/plugins/outdated-post-notice/

  2. fsylum
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    This error is due to old PHP version, I supposed I can add validation before plugin activation.

    Do you have option to upgrade your PHP installation? Else, I will need to find a workaround to calculate the date differences, which might be slightly less accurate than the existing method.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags