{"id":16272832,"date":"2022-12-08T17:43:46","date_gmt":"2022-12-08T17:43:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-error-557\/"},"modified":"2022-12-08T17:43:46","modified_gmt":"2022-12-08T17:43:46","slug":"php-error-557","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-error-557\/","title":{"rendered":"php error"},"content":{"rendered":"<p>I get a PHP error, involving PayPal Payments, after order checkout on thank-you page:<\/p>\n<p> <code><\/code>AH01071: Got error &#8216;PHP message: PHP Fatal error: Uncaught TypeError: WooCommerce\\\\PayPalCommerce\\\\WcGateway\\\\Gateway\\\\OXXO\\\\OXXO::WooCommerce\\\\PayPalCommerce\\\\WcGateway\\\\Gateway\\\\OXXO\\\\{closure}(): Argument #1 ($message) must be of type string, null given, called in \/var\/www\/vhosts\/gipapamanolis.gr\/odosermou.gr\/wp-includes\/class-wp-hook.php on line 308 and defined in \/var\/www\/vhosts\/gipapamanolis.gr\/odosermou.gr\/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-wc-gateway\/src\/Gateway\/OXXO\/OXXO.php:88\\nStack trace:\\n#0 \/var\/www\/vhosts\/gipapamanolis.gr\/odosermou.gr\/wp-includes\/class-wp-hook.php(308): WooCommerce\\\\PayPalCommerce\\\\WcGateway\\\\Gateway\\\\OXXO\\\\OXXO-&gt;WooCommerce\\\\PayPalCommerce\\\\WcGateway\\\\Gateway\\\\OXXO\\\\{closure}(NULL, Object(Automattic\\\\WooCommerce\\\\Admin\\\\Overrides\\\\Order))\\n#1 \/var\/www\/vhosts\/gipapamanolis.gr\/odosermou.gr\/wp-includes\/plugin.php(205): WP_Hook-&gt;apply_filters(NULL, Array)\\n#2 \/var\/www\/vhosts\/gipapamanolis.gr\/odosermou.gr\/wp-content\/themes\/woodmart\/woocommerce\/checkout\/thankyou.php(58): apply_filters(&#8216;woocommerce_th&#8230;&#8217;, referer: https:\/\/www.odosermou.gr\/checkout\/<code><\/code><\/p>\n<p>The same error appears after every order, no matter which payment gateway is chosen by the user. The error is fatal, that is the front-end doesnot load correctly and thank-you page scripts do not run.<br \/>\nThe error stopped appearing after deactivating PayPal Payments plugin. The error first appeared after recent updating of Woocommerce to v.7.1.1.<br \/>\nCould you check?<br \/>\nThank you.<\/p>\n","protected":false},"template":"","class_list":["post-16272832","topic","type-topic","status-publish","hentry","topic-tag-php-error"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16272832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16272832\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16272832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}