Closed mircobabini closed 2 years ago
Found it.
This one does the action pmpro_added_order
which calls pmpropdf_generate_pdf( $order )
with an instance of MemberOrder
instead of the row $order
with data from the database. In that scenario, ->timestamp
is NOT a string to be passed to DateTime
, it is an integer in milliseconds.
Yeah, ready to be fixed by PR #19.
This is weird.
I think this is coming out because of the object cache (memcached in my case).PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1617895134) at position 8 (3): Unexpected character in /wp-content/plugins/pmpro-pdf-invoices/pmpro-pdf-invoices.php:194