Error_log file (PHP Notice)

Open to all! Ask other shopowners for help.
Post Reply
Omar_one
Senior Contributor
Posts: 679
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Error_log file (PHP Notice)

Post by Omar_one »

I found this PHP Notice on the error_log file

Code: Select all

PHP Notice:  Undefined index: currency in /home/XXXX/public_html/includes/system/versioned/1.0.7.10/cart_order_builder.php on line 42
PHP Notice:  Undefined index: currency in /home/XXXX/public_html/includes/system/versioned/1.0.7.10/cart_order_builder.php on line 43
PHP Notice:  Undefined index:  in /home/XXXX/public_html/includes/system/versioned/1.0.7.10/cart_order_builder.php on line 43
PHP Notice:  Trying to access array offset on value of type null in /home/XXXX/public_html/includes/system/versioned/1.0.7.10/cart_order_builder.php on line 43
PHP Fatal error:  Uncaught Error: Call to a member function fetch_to_address() on null in /home/XXXX/public_html/includes/system/versioned/1.0.7.10/cart_order_builder.php:65
Stack trace:
#0 /home/XXXX/public_html/includes/system/versioned/1.0.7.10/cart_order_builder.php(149): cart_order_builder->build_addresses()
#1 /home/XXXX/public_html/includes/system/versioned/1.0.7.10/order.php(25): cart_order_builder::build(Object(order))
#2 /home/XXXX/public_html/includes/classes/magic/loader.php(16): order->__construct()
#3 /home/XXXX/public_html/includes/system/versioned/1.0.8.1/hooks.php(164): Loader->__call('order', Array)
#4 /home/XXXX/public_html/includes/system/segments/checkout/pipeline.php(14): hooks->generate('startCheckout')
#5 /home/XXXX/public_html/ahcocheckoutpsp.php(108) : eval()'d code(3): require('/home/XXXX/p...')
#6 /home/XXXX/public_html/ahcocheckoutpsp.php(108): eval()
#7 {main}
  thrown in /home/XXXX/public_html/includes/system/versioned/1.0.7.10/cart_order_builder.php on line 65
ahcocheckoutpsp.php is a payment file I am not sure if the error comes from it
the line 108 on that file is

Code: Select all

eval($checkoutProcessPhpCodeToBeExecuted);
thank you in advance for your help
Omar


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Error_log file (PHP Notice)

Post by ecartz »

It's complaining that the currency is not set on the session.

It's also complaining that the customer object is not set.

I would tend to blame this on the "payment file". Perhaps it is skipping application_top.php or loading too early, which should set the currency on the session and load the customer object.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply