Jump to content
darvidc

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

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

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

The error is coming from incompatible php-version in use for a module x. Try to use another php-version. Disable all non-native modules.

BTW: Which PS version are you using ? Which php-version, as this is old topic.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More