Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Errors when edit/delete users


etsscore

Recommended Posts

Posted

Hi, I download OSC last week and encounter this problem:

 

When I try to delete or edit users in admin mode, I always get this error information:

 

Warning: Variable passed to reset() is not an array or object in /homepages/22/d88176816/htdocs/test/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /homepages/22/d88176816/htdocs/test/admin/includes/classes/object_info.php on line 18

 

I ever download OSC last Nov and both OSCs are running in the same shared hosting plan. But for the one I installed last Nov, it is okay and no such error.

 

I have serached the forum and find many folks have the same problem. I followed some suggestions but still does not work properly.

 

I think maybe it is a common error. Could OSC team provide a solution?

 

Thanks

 

some of my server info is

 

Server OS: Linux 2.4.24-grsec-20040219a     

Database: MySQL 4.0.17-standard-log

HTTP Server: Apache/1.3.29 (Unix)

PHP Version: 4.2.3 (Zend: 1.2.0)

 

The properly running OSC (downloaded last Nov) is in the same shared hosting plan which has the same server info.

  • 1 month later...
Posted

It's just going to happen again . . .

 

See http://www.oscommerce.com/community/bugs,1465

 

Apparently there is an easy fix to prevent it from happening again, but it's a bit more complicated to fix the ones that you already have. I have yet to see the problem return after running the address book update script, but I guess I'm not totally convinced yet either.

 

basically, what's happening is that the users you're trying to edit have had their address book entries overwritten with a new user's entry, using the same address book id.

 

Since I don't want to regenerate my 2000 user address book (can you blame me?), I'm fixing them one at a time, as I see them, by doing the following:

1) find the problem user in the customer table

2) note their address book id (suppose it's 567) - - this will be a duplicate of a newer customer's address book id, but we're going to fix that next.

3) change it by adding 99 in front (i.e. now it's 99567)

- this will only pose a problem, as I see it, if I get 99000 customers. Not gonna happen for a while.

4) use phpMyAdmin (or similar) to create a new address book entry for the customer, with the address book id of 99567.

 

note: Unless you happen to know all of the information by heart, or have the person's telephone number to call and confirm their address data, you don't have the address information. That was in the data that got overwritten. See if you're lucky and they have placed an order, not simply created an account. You should be able to get their address/phone from the invoice. Otherwise, I think you're outta luck.

 

Just did one this way, in fact, and it worked like a charm (albeit a long painful workaround of a stinkin' charm).

 

-jared

  • 7 months later...
Posted
There is an upgrade script in the extras directory which fixed the address book problem, run this and let us know if it fixes the problem.
I am not sure what this means???? I looked in the Extras folder, so whicj one is it and what do I do with it?

 

Thanks

tammy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...