{"id":18719090,"date":"2025-11-14T08:04:40","date_gmt":"2025-11-14T08:04:40","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/orders-not-auto-updating-php-deprecated-error\/"},"modified":"2025-11-14T08:16:42","modified_gmt":"2025-11-14T08:16:42","slug":"orders-not-auto-updating-php-deprecated-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/orders-not-auto-updating-php-deprecated-error\/","title":{"rendered":"Orders not auto-updating &#8211; PHP Deprecated Error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello Support Team,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am using your <strong><code>viva-com-smart-for-woocommerce<\/code><\/strong> plugin. I have an issue where successful payments do not automatically update the order status in WooCommerce. The orders remain &#8220;pending&#8221; and require manual confirmation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I checked the WooCommerce debug logs and I found this specific error message during every transaction:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>\"Creation of dynamic property WC_Vivacom_Smart_Payment_Gateway::$order_status is deprecated\"<\/code> <sup><\/sup><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This error is located in the file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>...\/wp-content\/plugins\/viva-com-smart-for-woocommerce\/includes\/class-wc-vivacom-smart.php<\/code> on <strong>line 169<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This appears to be a PHP 8+ compatibility issue that is breaking the payment callback\/webhook process.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To confirm my setup:<\/p>\n\n\n\n<ul>\n<li>I am using plugin <strong>Version 1.0.2<\/strong>.<\/li>\n\n\n\n<li>My &#8220;Order status after successful payment&#8221; is set to <strong>&#8220;Completed&#8221;<\/strong>.<\/li>\n\n\n\n<li>The &#8220;Preauthorized Payments&#8221; option is <strong>disabled<\/strong> (not checked).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It seems this version (1.0.2) is not fully compatible with my server&#8217;s newer PHP environment, which is causing the deprecated error and breaking the automatic callback.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Could you please provide a patch or confirm if a newer version is available?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Could you please provide a fix or an update for this?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"template":"","class_list":["post-18719090","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18719090","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18719090\/revisions"}],"predecessor-version":[{"id":18719117,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18719090\/revisions\/18719117"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18719090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}