Jump to content

Error.log with Undefined Offset, Invalid argument, non-object in 1.6.1.10


darvidc

Recommended Posts

Hi,

 

I'm getting the following errors in my php "error.log" using PS 1.6.1.10 (was the same for 1.6.1.8).

 

 

[08-Jan-2017 09:18:09 Europe/Stockholm] PHP Notice:  Undefined offset: 62376 in /var/www/html/ps16/classes/PaymentModule.php on line 233
[08-Jan-2017 09:18:09 Europe/Stockholm] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/ps16/classes/PaymentModule.php on line 233
 
[08-Jan-2017 09:19:59 Europe/Stockholm] PHP Notice:  Trying to get property of non-object in /var/www/html/ps16/classes/module/Module.php on line 2284
 
The first one seems to have something to do with carriers, in PaymentModule.php:
 
foreach ($cart_delivery_option as $id_address => $key_carriers) {
                foreach ($delivery_option_list[$id_address][$key_carriers]['carrier_list'] as $id_carrier => $data) {
                    foreach ($data['package_list'] as $id_package) {
 
The second one seems to have something to do with currency, in Module.php:
 
   if (Currency::isMultiCurrencyActivated()) {
            $cache_array[] = (int)$this->context->currency->id;
        }

 

They mostly appear with a purchase, although not always with the same payment module?

The BO logs also gives the error:

4910 -- 1 Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart Cart 100021 0x0 2017-01-08 09:18:12

 

My shop has only English & Swedish installed and activated, but Swedish is the only language seen by the customer, there is no language block activated for such a selection! On the other hand, a Currency block is activated for the customer to choose between Kroner & Euro.

All of my carriers have been added manually (and checked), no carrier modules are in use.

 

I have not activated the main file Cache, although Smarty & CCC are activated.

 

Can anybody help, any idea please?

 

Thanks in advance.

 

David C

 

Link to comment
Share on other sites

  • 2 years later...
On 1/8/2017 at 11:36 AM, darvidc said:

Hi,

 

I'm getting the following errors in my php "error.log" using PS 1.6.1.10 (was the same for 1.6.1.8).

 

 

[08-Jan-2017 09:18:09 Europe/Stockholm] PHP Notice:  Undefined offset: 62376 in /var/www/html/ps16/classes/PaymentModule.php on line 233
[08-Jan-2017 09:18:09 Europe/Stockholm] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/ps16/classes/PaymentModule.php on line 233
 
[08-Jan-2017 09:19:59 Europe/Stockholm] PHP Notice:  Trying to get property of non-object in /var/www/html/ps16/classes/module/Module.php on line 2284
 
The first one seems to have something to do with carriers, in PaymentModule.php:
 
foreach ($cart_delivery_option as $id_address => $key_carriers) {
                foreach ($delivery_option_list[$id_address][$key_carriers]['carrier_list'] as $id_carrier => $data) {
                    foreach ($data['package_list'] as $id_package) {
 
The second one seems to have something to do with currency, in Module.php:
 
   if (Currency::isMultiCurrencyActivated()) {
            $cache_array[] = (int)$this->context->currency->id;
        }

 

They mostly appear with a purchase, although not always with the same payment module?

The BO logs also gives the error:

4910 -- 1 Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart Cart 100021 0x0 2017-01-08 09:18:12

 

My shop has only English & Swedish installed and activated, but Swedish is the only language seen by the customer, there is no language block activated for such a selection! On the other hand, a Currency block is activated for the customer to choose between Kroner & Euro.

All of my carriers have been added manually (and checked), no carrier modules are in use.

 

I have not activated the main file Cache, although Smarty & CCC are activated.

 

Can anybody help, any idea please?

 

Thanks in advance.

 

David C

 

 did you find a solution? good day

Link to comment
Share on other sites

Hi! First I apologize for the inconvenience with my responses to the posts. I appreciate your work.

My theme is the classic with a son
my version 1.7.6.1
PHP 7.2

I could disable the non-native modules but, for example, I have an importer module, it is not a practical solution for a php warning.

Thanks again for your time, moderation, and help.

Link to comment
Share on other sites

If this module is making troubles, you should contact the developer and ask for debugging. As I told you before, the error is a php-error created by incompatible (old) code not running with your php-version in use.

PS: your answer in ENGLISH added to FRENCH FORUM SECTION was deleted. Again I kindly ask you to don't mix-up languages here. Please disable the automatic translation option of your browser.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...