Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please anybody - urgent help needed


debf

Recommended Posts

Posted

Hi. Please help as something has happened and I am not sure what.

 

I tried to upload a contribution (Attribute sort Clone v1.8.3) but got an error message. Luckily I backed up my db before I did this.

 

I have just been in my admin area trying to do some catalog attributes and while I can delete them I can't do any new ones - keep getting this message

-------------------

1136 - Column count doesn't match value count at row 1

 

insert into products_attributes values (null, '93', '2', '120', '0', '+')

 

[TEP STOP]

-------------------

 

As I seem to have encountered this problem after trying to upload the Attribute sort sql file I thought I would import the back up of the db I made.

 

When I try to import the original db it fails and I am getting pages and pages of error messages which I have copied below. Can someone PLEASE help me - I can't do any more work on my store and I am pulling my hair out.

 

-------------------

2009-06-13 13:03:46 FAIL

winnerscircle /winnerscircle.sql

Server Replied: ERROR 1050 (42S01)

at line 17: Table

'address_book'

already exists

ERROR 1062 (23000)

at line 39:

Duplicate entry '1'

for key 1

ERROR 1050 (42S01)

at line 45: Table

'address_format'

already exists

ERROR 1062 (23000)

at line 56:

Duplicate entry '1'

for key 1

ERROR 1062 (23000)

at line 57:

Duplicate entry '2'

for key 1

ERROR 1062 (23000)

at line 58:

Duplicate entry '3'

for key 1

ERROR 1062 (23000)

at line 59:

Duplicate entry '4'

for key 1

ERROR 1050 (42S01)

at line 65: Table

'administrators'

already exists

ERROR 1062 (23000)

at line 76:

Duplicate entry '1'

for key 1

ERROR 1050 (42S01)

at line 82: Table

'banners' already

exists

ERROR 1062 (23000)

at line 103:

Duplicate entry '1'

for key 1

ERROR 1062 (23000)

at line 104:

Duplicate entry '2'

for key 1

ERROR 1062 (23000)

at line 105:

Duplicate entry '3'

for key 1

ERROR 1062 (23000)

at line 106:

Duplicate entry '4'

for key 1

ERROR 1050 (42S01)

at line 112: Table

'banners_history'

already exists

ERROR 1062 (23000)

at line 126:

Duplicate entry '1'

for key 1

ERROR 1062 (23000)

at line 127:

Duplicate entry '2'

for key 1

ERROR 1062 (23000)

at line 128:

Duplicate entry '3'

for key 1

ERROR 1062 (23000)

at line 129:

Duplicate entry '4'

for key 1

ERROR 1062 (23000)

at line 130:

Duplicate entry '5'

for key 1

ERROR 1062 (23000)

at line 131:

Duplicate entry '6'

for key 1

ERROR 1050 (42S01)

at line 137: Table

'categories' already

exists

ERROR 1062 (23000)

at line 152:

Duplicate entry '2'

for key 1

ERROR 1062 (23000)

at line 153:

Duplicate entry '3'

for key 1

ERROR 1062 (23000)

at line 154:

Duplicate entry '4'

for key 1

ERROR 1062 (23000)

at line 155:

Duplicate entry '5'

for key 1

ERROR 1062 (23000)

at line 156:

Duplicate entry '30'

for key 1

ERROR 1062 (23000)

at line 157:

Duplicate entry '29'

for key 1

ERROR 1062 (23000)

at line 158:

Duplicate entry '10'

for key 1

ERROR 1062 (23000)

at line 159:

Duplicate entry '11'

for key 1

ERROR 1062 (23000)

at line 160:

Duplicate entry '12'

for key 1

ERROR 1062 (23000)

at line 161:

Duplicate entry

Posted
Hi. Please help as something has happened and I am not sure what.

 

I tried to upload a contribution (Attribute sort Clone v1.8.3) but got an error message. Luckily I backed up my db before I did this.

 

I have just been in my admin area trying to do some catalog attributes and while I can delete them I can't do any new ones - keep getting this message

-------------------

1136 - Column count doesn't match value count at row 1

 

insert into products_attributes values (null, '93', '2', '120', '0', '+')

 

[TEP STOP]

-------------------

 

As I seem to have encountered this problem after trying to upload the Attribute sort sql file I thought I would import the back up of the db I made.

 

When I try to import the original db it fails and I am getting pages and pages of error messages which I have copied below. Can someone PLEASE help me - I can't do any more work on my store and I am pulling my hair out.

 

-------------------

2009-06-13 13:03:46 FAIL

winnerscircle /winnerscircle.sql

Server Replied: ERROR 1050 (42S01)

at line 17: Table

'address_book'

already exists

ERROR 1062 (23000)

at line 39:

Duplicate entry '1'

for key 1

ERROR 1050 (42S01)

at line 45: Table

'address_format'

already exists

ERROR 1062 (23000)

at line 56:

Duplicate entry '1'

for key 1

ERROR 1062 (23000)

at line 57:

Duplicate entry '2'

for key 1

ERROR 1062 (23000)

at line 58:

Duplicate entry '3'

for key 1

ERROR 1062 (23000)

at line 59:

Duplicate entry '4'

for key 1

ERROR 1050 (42S01)

at line 65: Table

'administrators'

already exists

ERROR 1062 (23000)

at line 76:

Duplicate entry '1'

for key 1

ERROR 1050 (42S01)

at line 82: Table

'banners' already

exists

ERROR 1062 (23000)

at line 103:

Duplicate entry '1'

for key 1

ERROR 1062 (23000)

at line 104:

Duplicate entry '2'

for key 1

ERROR 1062 (23000)

at line 105:

Duplicate entry '3'

for key 1

ERROR 1062 (23000)

at line 106:

Duplicate entry '4'

for key 1

ERROR 1050 (42S01)

at line 112: Table

'banners_history'

already exists

ERROR 1062 (23000)

at line 126:

Duplicate entry '1'

for key 1

ERROR 1062 (23000)

at line 127:

Duplicate entry '2'

for key 1

ERROR 1062 (23000)

at line 128:

Duplicate entry '3'

for key 1

ERROR 1062 (23000)

at line 129:

Duplicate entry '4'

for key 1

ERROR 1062 (23000)

at line 130:

Duplicate entry '5'

for key 1

ERROR 1062 (23000)

at line 131:

Duplicate entry '6'

for key 1

ERROR 1050 (42S01)

at line 137: Table

'categories' already

exists

ERROR 1062 (23000)

at line 152:

Duplicate entry '2'

for key 1

ERROR 1062 (23000)

at line 153:

Duplicate entry '3'

for key 1

ERROR 1062 (23000)

at line 154:

Duplicate entry '4'

for key 1

ERROR 1062 (23000)

at line 155:

Duplicate entry '5'

for key 1

ERROR 1062 (23000)

at line 156:

Duplicate entry '30'

for key 1

ERROR 1062 (23000)

at line 157:

Duplicate entry '29'

for key 1

ERROR 1062 (23000)

at line 158:

Duplicate entry '10'

for key 1

ERROR 1062 (23000)

at line 159:

Duplicate entry '11'

for key 1

ERROR 1062 (23000)

at line 160:

Duplicate entry '12'

for key 1

ERROR 1062 (23000)

at line 161:

Duplicate entry

You restored your database to before adding the mod? if so it seems you still have mod configured in attributes, upload a deafult admin/products_attributes.php

if you restored only the files back to original and not database simply amend the table deleting the extra field(s) the contribution added by running the sql by using phpmyadmin

Posted

looks like issues over righting original,

 

I suggest

 

Use AutoBackup Database in Admin http://addons.oscommerce.com/info/2314

AND Database backup manager http://addons.oscommerce.com/info/5769

 

for more reliable operations

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Hi Steve/Spooks, thanks for replying. The attribute sort clone contribution (which I didn't think worked) added this to the database

 

-----------------------

 

# Attribue Sort SQL

ALTER TABLE products_attributes ADD COLUMN attribute_sort INT UNSIGNED NOT NULL DEFAULT '0'

-----------------------

 

I just uploaded the original admin/products_attributes.php and still can't use admin (catalog attributes). I have an extra column now (still) in catalog under products expected called "define main page" but if I click on this I get a not found messge.

 

The installation file for the contribution says....

 

Description *

***************

 

Product Attributes are read out from the database and placed into a select box,

however the top most attribute becomes the default, with no way to override or

set the sort order of the options. This may result in a default item with a price

different from the posted price. Operating on the assumption that price modifiers

should be specifically selected by the user, this addon adds a sort field to the

product_atributes table, products_attributes.php, and product_info.php pages to

allow user ordering of these attributes.

 

Should I also upload the original of the product_info.php to see if this fixes it since I can't seem to overwrite my database with the backup?

 

Spooks - sorry are you suggesting I use these contributions to backup my db in future or will these fix the problem of the overwrite issues I am having now?

Posted
Spooks - sorry are you suggesting I use these contributions to backup my db in future or will these fix the problem of the overwrite issues I am having now?

 

1. yes

 

2. The original file has issues, so u may have more luck with your restore with Database backup manager

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Archived

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

×
×
  • Create New...