Fatal Error: Date Object

Some users have reported the following error when editing, updating or creating new announcements:

Fatal error: Call to a member function getTimeStamp() on a non-object in /home/user_name/public_html/example.com/wp-content/plugins/timeline-express/lib/helpers.php on line 142

After gaining access to one of our users servers, I was able to track this error down to an outdated, unsupported version of PHP. The user’s host was running PHP v5.2.1.7, and the function contained inside of the plugin is supported in version PHP 5.3 and later. (date_create_from_format()).

The quickest solution was to login to the hosting environments CPanel, and update the version of PHP that your server is running. On most hosts this is easily done via a dropdown menu in the CPanel section of your account.

Here are some of the popular hosts, and how to upgrade your version of PHP:

  • GoDaddy
  • Media Temple
  • HostGator
  • Bluehost
  • SiteGround
  • InMotion
  • 1&1
  • A2 Hosting

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.