Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SEO 2.1c Db insert id problem


mbspencer

Recommended Posts

All:

 

Wanted to pass this along. I installed Ultimate SEO 2.1c. Then started having the following problem

 

(1) Register user in catalog

(2) Attempt to edit user details in admin:

 

See following messages:

 

PHP Warning: reset(): Passed variable is not an array or object in ... admin/includes/classes/object_info.php on line 17

 

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

 

Finally tracked this down to the fact that customer and address info id's were not being returned by the tep_db_insert_id() function in includes/functions/database.php. This was essentially orphaning a customer info record with a cusomer_info_id=0 value.

 

A fix is described in the following bug report:

 

http://www.oscommerce.com/community/bugs,1...abase+(General)

 

This solved the problem for me.

Edited by mbspencer
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...