WordPress.org

Forums

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

  1. meksone
    Member
    Posted 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Outdated Post Notice
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags