Ecommerce Shopify WordPress Discussion

500 Internal Server Error in WooCommerce gateway: Undefined variable: Transaction_ID

I got 500 Internal Server Error after payment is successful or failed. This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'. debug log: [24-Feb-2024 08:42:03 UTC] PHP Notice: Undefined variable: Transaction_ID in /home/ppoigsdu/public_html/wp-content/plugins/zarinpal-woocommerce-payment-gateway/class-wc-gateway-zarinpal.php on line 471 [24-Feb-2024 08:42:03 UTC] PHP Notice: Undefined variable: Transaction_ID in /home/ppoigsdu/public_html/wp-content/plugins/zarinpal-woocommerce-payment-gateway/class-wc-gateway-zarinpal.php on line 479 [24-Feb-2024 08:42:25 UTC] PHP Notice: Undefined index: status in /home/ppoigsdu/public_html/wp-content/plugins/gateway-aqayepardakht-for-woocommerce/class-wc-gateway-aqayepardakht.php on line 269 [24-Feb-2024 08:42:25 UTC] PHP Notice: Undefined index: transid in /home/ppoigsdu/public_html/wp-content/plugins/gateway-aqayepardakht-for-woocommerce/class-wc-gateway-aqayepardakht.php on line 270 [24-Feb-2024 08:42:25 UTC] PHP Notice: Undefined index: tracking_number in /home/ppoigsdu/public_html/wp-content/plugins/gateway-aqayepardakht-for-woocommerce/class-wc-gateway-aqayepardakht.php on line 271 [24-Feb-2024 08:42:25 UTC] PHP Notice: Undefined index: cardnumber in /home/ppoigsdu/public_html/wp-content/plugins/gateway-aqayepardakht-for-woocommerce/class-wc-gateway-aqayepardakht.php on line 272 [24-Feb-2024 08:42:25 UTC] PHP Notice: تابع status به طورنادرست فراخوانی شد. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WC_API->handle_api_requests, do_action('woocommerce_api_wc_gateway_aqayepardakht'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Gateway_aqayepardakht->Return_from_aqayepardakht_Gateway_Aqaye_Pardakht, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong لطفاً برای اطلاعات بیشتر، <a>اشکال زدایی در وردپرس</a> را مشاهده کنید. (این پیام در نگارش 3.0 افزوده شده است.) in /home/ppoigsdu/public_html/wp-includes/functions.php on line 6031 [24-Feb-2024 08:42:25 UTC] PHP Notice: Undefined variable: Transaction_ID in /home/ppoigsdu/public_html/wp-content/plugins/gateway-aqayepardakht-for-woocommerce/class-wc-gateway-aqayepardakht.php on line 394 [24-Feb-2024 08:42:25 UTC] PHP Notice: Undefined variable: Transaction_ID in /home/ppoigsdu/public_html/wp-content/plugins/gateway-aqayepardakht-for-woocommerce/class-wc-gateway-aqayepardakht.php on line 398 [24-Feb-2024 08:44:50 UTC] PHP Notice: Undefined variable: Transaction_ID in /home/ppoigsdu/public_html/wp-content/plugins/zarinpal-woocommerce-payment-gateway/class-wc-gateway-zarinpal.php on line 486 [24-Feb-2024 08:44:50 UTC] PHP Notice: Undefined variable: Transaction_ID in /home/ppoigsdu/public_html/wp-content/plugins/zarinpal-woocommerce-payment-gateway/class-wc-gateway-zarinpal.php on line 487 [24-Feb-2024 08:44:50 UTC] PHP Notice: Undefined variable: Transaction_ID in /home/ppoigsdu/public_html/wp-content/plugins/zarinpal-woocommerce-payment-gateway/class-wc-gateway-zarinpal.php on line 492 It's clear that "Transaction_ID" is causing problem. Above lines in cPanel: if (($Transaction_ID && ($Transaction_ID != 0))) { $tr_id = ('<br/>توکن : ' . $Transaction_ID); } else { $tr_id = ''; } $Note = sprintf(__('خطا در هنگام بازگشت از بانک : %s %s', 'woocommerce'), $Message, $tr_id); $Note = apply_filters('WC_ZPal_Return_from_Gateway_Failed_Note', $Note, $order_id, $Transaction_ID, $Fault); if ($Note) { $order->add_order_note($Note, 1); } $Notice = wpautop(wptexturize($this->failedMassage)); $Notice = str_replace(array('{transaction_id}', '{fault}'), array($Transaction_ID, $Message), $Notice); $Notice = apply_filters('WC_ZPal_Return_from_Gateway_Failed_Notice', $Notice, $order_id, $Transaction_ID, $Fault); if ($Notice) { wc_add_notice($Notice, 'error'); } do_action('WC_ZPal_Return_from_Gateway_Failed', $order_id, $Transaction_ID, $Fault); got error, debugged config file, found errors in debug log, reached to lines in php file.
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.