Title: Call to undefined method DateTime::createFromFormat() Error after installing Pro
Last modified: August 21, 2016

---

# Call to undefined method DateTime::createFromFormat() Error after installing Pro

 *  Resolved [econblogger](https://wordpress.org/support/users/econblogger/)
 * (@econblogger)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/)
 * Fatal error: Call to undefined method DateTime::createFromFormat() in /home/wp-
   content/plugins/maintenance/includes/functions.php on line 175
 * Using
    Maintenance Pro 2.0.0 Maintenance 2.0.1 WordPress 3.8
 * [http://wordpress.org/plugins/maintenance/](http://wordpress.org/plugins/maintenance/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/page/2/?output_format=md)

 *  Thread Starter [econblogger](https://wordpress.org/support/users/econblogger/)
 * (@econblogger)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436793)
 * When you go to the page as a user you get this fatal error. Nothing else is displayed
 *  [Fruitful Code](https://wordpress.org/support/users/fruitfulcode/)
 * (@fruitfulcode)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436834)
 * econblogger,
 * Do you have other plugins activated? What WordPress theme active at the moment?
 * Try to check on clean, fresh install, everything must be okay.
 *  [Fruitful Code](https://wordpress.org/support/users/fruitfulcode/)
 * (@fruitfulcode)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436877)
 * econblogger,
 * Find the problem. You need to update PHP on your server.
 *  Thread Starter [econblogger](https://wordpress.org/support/users/econblogger/)
 * (@econblogger)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436920)
 * Thanks for the response.
 * I set the theme to be Twenty Ten v 1.5. Then disabled all plugins other than 
   Maintenance and Maintenance Pro. They both are active. Is this correct?
 * I tried on WP 3.71 and 3.8
 *  Thread Starter [econblogger](https://wordpress.org/support/users/econblogger/)
 * (@econblogger)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436921)
 * Also I re-downloaded the plugin from the fruitfulcode site but did not have any
   luck
 *  [Fruitful Code](https://wordpress.org/support/users/fruitfulcode/)
 * (@fruitfulcode)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436923)
 * econblogger,
 * Problem not in the plugin. You need to update PHP version on your server to PHP
   5.3+
    What php version you have at the moment?
 *  Thread Starter [econblogger](https://wordpress.org/support/users/econblogger/)
 * (@econblogger)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436933)
 * Awesome! That was the issue. I had PHP 5.2 and needed to upgrade to 5.3. Now 
   it works. Thank you for the help
 *  [janvanarkel](https://wordpress.org/support/users/janvanarkel/)
 * (@janvanarkel)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436943)
 * same problem here…
 * Fatal error: Call to undefined method DateTime::createFromFormat() in /home1/
   vanarkel/public_html/blog/wp-content/plugins/maintenance/includes/functions.php
   on line 175
 * I do hope my provider HostGator is willing to update php.
 *  [janvanarkel](https://wordpress.org/support/users/janvanarkel/)
 * (@janvanarkel)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436944)
 * I had a chat with them and they installed it. working fine now.
 *  [MeOnline](https://wordpress.org/support/users/webber2012/)
 * (@webber2012)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436989)
 * Any chance to revert this again so that it works with php 5.2.x as well (again)?
 * Makes no sense at all having to upgrade php – which can cause major(!!!) problems
   with other scripts on all websites- just for a single WP plugin… I also don’t
   understand why it is only 5.3.x compatibel, have found no other script or plugin
   yet requiring this.
 * Earlier I have also -bought- the pro version and now slowly regret having done
   so. 🙁
    So I now stuck having to use the older version … dissapointing!
 *  [Fruitful Code](https://wordpress.org/support/users/fruitfulcode/)
 * (@fruitfulcode)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436990)
 * webber2012,
 * What other problems you have after php update?
 * [http://codex.wordpress.org/Hosting_WordPress](http://codex.wordpress.org/Hosting_WordPress)
 * > Recommended setup
   >  PHP 5.4 or greater is recommended.
 * Plugins use this function
    `DateTime::createFromFormat()`
 * They required version PHP 5.3+
 *  [MeOnline](https://wordpress.org/support/users/webber2012/)
 * (@webber2012)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436991)
 * No other problems at all, but please also remember that the plugin is also used
   with older versions of WP.
 *  [Fruitful Code](https://wordpress.org/support/users/fruitfulcode/)
 * (@fruitfulcode)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436992)
 * > Makes no sense at all having to upgrade php – which can cause major(!!!) problems
   > with other scripts on all websites
 * No other problems at all?
 * Our plugin works correctly with minimum WordPress version 3.2
 * Users must update WordPress to latest version in security reasons
 *  [MeOnline](https://wordpress.org/support/users/webber2012/)
 * (@webber2012)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4436993)
 * WP 3.8 is installed in my case.
 *  [rahul300](https://wordpress.org/support/users/rahul300/)
 * (@rahul300)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/#post-4437018)
 * DateTime::createFromFormat() is available in PHP version >=5.3.
    Hopefully you
   are using PHP Version less tha 5.3 You can use $timestamp = strtotime($yourFormattedDateTime);
   for lower version of php

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/page/2/?output_format=md)

The topic ‘Call to undefined method DateTime::createFromFormat() Error after installing
Pro’ is closed to new replies.

 * ![](https://ps.w.org/maintenance/assets/icon-256x256.png?rev=2689583)
 * [Maintenance](https://wordpress.org/plugins/maintenance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maintenance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maintenance/)
 * [Active Topics](https://wordpress.org/support/plugin/maintenance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maintenance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maintenance/reviews/)

 * 16 replies
 * 5 participants
 * Last reply from: [Fruitful Code](https://wordpress.org/support/users/fruitfulcode/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/call-to-undefined-method-datetimecreatefromformat-error-after-installing-pro/page/2/#post-4437040)
 * Status: resolved