Title: Fatal error: Uncaught exception &#039;Exception&#039; with message &#039;DateTime::__construct(
Last modified: August 22, 2016

---

# Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(

 *  [mosser](https://wordpress.org/support/users/mosser/)
 * (@mosser)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-exception-exception-with-message-datetime_construct/)
 * Hi Nicolas,
    I use a plugin ‘ DW Question Answer ‘ in my blog, but the question
   page display failed with the latest customizr . Could you give me some hands ?
 * Thanks!
 * **Call stack**:
    `Fatal error: Uncaught exception 'Exception' with message 'DateTime::
   __construct(): Failed to parse time string (8 小时 之前) at position 0 (8): Unexpected
   character' in /home/mosser6moobsbseemr/wwwroot/wp-content/themes/customizr/inc/
   parts/class-content-post_metas.php:196 Stack trace: #0 /home/mosser6moobsbseemr/
   wwwroot/wp-content/themes/customizr/inc/parts/class-content-post_metas.php(196):
   DateTime->__construct('8 ?????? ??????') #1 /home/mosser6moobsbseemr/wwwroot/
   wp-content/themes/customizr/inc/parts/class-content-post_metas.php(90): TC_post_metas-
   >tc_has_update() #2 /home/mosser6moobsbseemr/wwwroot/wp-content/themes/customizr/
   inc/parts/class-content-post_metas.php(65): TC_post_metas->tc_post_post_metas_view()#
   3 [internal function]: TC_post_metas->tc_post_metas('') #4 /home/mosser6moobsbseemr/
   wwwroot/wp-includes/plugin.php(505): call_user_func_array(Array, Array) #5 /home/
   mosser6moobsbseemr/wwwroot/wp-content/themes/customizr/inc/parts/class-content-
   headings.php(106): do_action('__after_content...') #6 [internal in /home/mosser6moobsbseemr/
   wwwroot/wp-content/themes/customizr/inc/parts/class-content-post_metas.php on
   line 196` **System info**
 *     ```
       # SITE_URL:                 http://www.pstips.net
       # HOME_URL:                 http://www.pstips.net
       # IS MULTISITE :            No
   
       # THEME | VERSION :         Customizr | v3.2.8
       # WP VERSION :              4.0.1
       # PERMALINK STRUCTURE :     /%postname%.html
   
       # ACTIVE PLUGINS :
       Akismet: 3.0.3
       Authors Widget: 2.4.3
       Auto SyntaxHighlighter: 2.3.3
       Content Index: 2.60
       DW Question Answer: 1.3.2
       Google CSE: 1.0.7
       Link Manager: 0.1-beta
       Replace Google Fonts: 1.0
       WordPress SEO: 1.7.1
       WordPress Zero Spam: 1.5.2
       WP-Ajaxify-Comments: 1.0.0
       WP-Mail-SMTP: 0.9.5
       WP-PageNavi: 2.86
       WP No External Links: 3.4.3
       WP Super Cache: 1.4.2
       Yet Another Related Posts Plugin: 4.2.4
   
       PHP Version:              5.3.27
       MySQL Version:            5.1.69
       Web Server Info:          Apache
   
       WordPress Memory Limit:   40MB
       PHP Safe Mode:            No
       PHP Memory Limit:         256M
       PHP Upload Max Size:      2M
       PHP Post Max Size:        8M
       PHP Upload Max Filesize:  2M
       PHP Time Limit:           30
       PHP Max Input Vars:       1000
       PHP Arg Separator:        &
       PHP Allow URL File Open:  Yes
       WP_DEBUG:                 Disabled
   
       Show On Front:            posts
       Page On Front:             (#0)
       Page For Posts:            (#0)
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [mosser](https://wordpress.org/support/users/mosser/)
 * (@mosser)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-exception-exception-with-message-datetime_construct/#post-5533798)
 * Just a temporary work around for this issue：disable has_update function.
    In
   file wp-content\themes\customizr\inc\parts\class-content-post_metas.php line：
   89-90
 * **change ：**
    $this -> tc_get_meta_date(‘update’), $this -> tc_has_update() **
   to：** $this -> tc_get_meta_date(‘update’) //$this -> tc_has_update()
 *  Thread Starter [mosser](https://wordpress.org/support/users/mosser/)
 * (@mosser)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-exception-exception-with-message-datetime_construct/#post-5533801)
 * Hi Nicolas,
 * I look forward to see the below changes about tc_has_update() function logic 
   in next version Customizr。
    1. Only call tc_has_update() when “display update” option was enabled in theme 
       option.
    2. Add try-catch in function tc_has_update(), take a default value if hit error.
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(’
is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

 * [niclook](https://wordpress.org/support/topic-tag/niclook/)

 * 2 replies
 * 1 participant
 * Last reply from: [mosser](https://wordpress.org/support/users/mosser/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-exception-exception-with-message-datetime_construct/#post-5533801)
 * Status: not resolved