Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: reset(): Passed variable is not an array


crounauer

Recommended Posts

Hi,

 

I have just recently installed the following contributions successfully, well so I thought.....

 

Ultimate SEO URLs v2.1b

Add ISBN UPC SKU v1.1b

SiteMap M2-2.3

Headertags v2.5.3

 

They all work perfectly but now I get the following errors when I try to delete a customer.

 

Warning: reset(): Passed variable is not an array or object in /home/httpd/vhosts/michelthomascourses.co.uk/httpdocs/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /home/httpd/vhosts/michelthomascourses.co.uk/httpdocs/admin/includes/classes/object_info.php on line 18

 

 

I wonder if anybody would be able to shed any light on the problem?

 

Thank you in advance.

 

Simon.

Gynogapod - Great Products, Tiny Prices!

Link to comment
Share on other sites

This problem is usually caused by having edited customer info manually with phpmyadmin.

 

Matti

 

Hi Matti,

 

Thank you for your reply.

 

Would you be able to point me in a direction to start looking and what id be looking for?

 

Simon.

Gynogapod - Great Products, Tiny Prices!

Link to comment
Share on other sites

The problem comes about when only part of the customers info is deleted from the database - from memory if you delete a customers address_book entries but the customer remains in the customers table you will get this error.

 

HTH

 

Matti

Link to comment
Share on other sites

  • 1 year later...

This might fix issues of this nature...

If you have migrated you old customer data across to a new database.

Double check that the 'customers_default_address_id' inside the 'customers' table

is not all the same value all the way through.

 

I found i was getting this error alert in admin when i tried to view a customers address etc.,

and when i checked in the DB all the 'customers_default_address_id' values were set to 1..

I edit them in sequence and it appears to have fixed the problem. :rolleyes:

 

From what i can tell the value of 'customers_default_address_id' should be auto incremented..

and has no other reference..

 

Please let me know if this is wrong though.

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

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