• Resolved Ve?a

    (@marwex)


    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

Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Author Denra.com

    (@denra)

    Please update to the latest version 2.6.3. If the ID for the post is missing in the page scope, there is a short error message displayed and there is no error thrown.

    Plugin Author Denra.com

    (@denra)

    Hello @marwex,

    Since there is no additional feedback from you I am closing this Support thread marking it as resolved. Please contact us again if you need additional support. Thank you for using our plugin!

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time s’ is closed to new replies.