Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time s
-
Hello, I need some advice.
When using the shortcode [wpdts-custom start=”post-created” format=”Y”] to display the year in the invoice number, the PDF invoice is not displayed, but an error message:
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (post-created) at position 0 (p): The timezone could not be found in the database in /web/wp-content/plugins/wp-date-and-time-shortcode/plugin/classes/WPDateAndTimeShortcode.php:238 Stack trace: #0 /web/wp-content/plugins/wp-date-and-time-shortcode/plugin/classes/WPDateAndTimeShortcode.php(238): DateTime->__construct(‘post-created’) #1 /web/wp-includes/shortcodes.php(355): Denra\Plugins\WPDateAndTimeShortcode->getDateTime(Array, ”, ‘wpdts-custom’) #2 [internal function]: do_shortcode_tag(Array) #3 /web/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(wpdts\\…’, ‘do_shortcode_ta…’, ‘[wpdts-custom f…’) #4 /web/ in?/web/wp-content/plugins/wp-date-and-time-shortcode/plugin/classes/WPDateAndTimeShortcode.php?on line?238
Thank you
- The topic ‘Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time s’ is closed to new replies.