Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error when installing payment module (Variable passed to each() is not an array or object)


Recommended Posts

Posted

Hello,

I have a problem with payment module. When i'm trying to install module on my store ( this shop is running on OSC v.2.3.3.4) i get the following errors:

 

Warning: reset() expects parameter 1 to be array, null given in /admin/modules.php on line 227

 

Warning: Variable passed to each() is not an array or object in /admin/modules.php on line 228

 

I read a lot of topic on this board but nothing helped me.

I tried to find solution on my own and i checked variable in line 227 and 228 , using :

<?php

var_dump($mInfo);

?>

 

And the result is " NULL"

I tried to install the same module on the new, fresh, clean shop and it works without any errors but when i load database from my working store and after that i tried to install this module , i get the following errors:

Warning: reset() expects parameter 1 to be array, null given in /admin/modules.php on line 227

 

Warning: Variable passed to each() is not an array or object in /admin/modules.php on line 228

 

I have no idea what can i do to resolve this problem and i believe you could help me.

Please help me.

Posted

Hi - try removing all payment modules shown in the admin control panel and then go to the configuration table in your database - look for the configuration_key equal to MODULE_PAYMENT_INSTALLED and make sure that the configuration_value for that key is empty.

 

Then try reinstalling your selected modules

  • 1 month later...
Posted

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/?????/public_html/shop/admin/modules.php on line 35

 

Warning: Variable passed to each() is not an array or object in /home/???????/public_html/shop/admin/modules.php on line 36

 

Warning: Cannot modify header information - headers already sent by (output started at /home/ugruxcjm/public_html/sbkshop/admin/modules.php:35) in /home/??????/public_html/shop/admin/includes/functions/general.php on line 34

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...