Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / 404 error in admin after product import

404 error in admin after product import

Views: 1,500

Results 1 to 14 of 14
2 Feb 2010, 11:16 AM
#1
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

404 error in admin after product import

Hi, Ive written an SQL query to get my products from another mySQL databse and import them into zen cart.

The import is working, im getting all the products and Im also grabbing the product and category Ids from the old db.

In the backend, under catagories/products im seeing all the product categories and the products themselves.

When i click on a product to edit it though, Im getting a 404 'page not found' error. Does this have something to do with the fact that im importing my own product and category Ids? I noticed the url string when i click on a product drops the word 'product' out of 'product.php'

For example: admin**/.p**hp?page=1&product_type=0&cPath=84&pID=309&action=new_product

Thanks,

Scott.

2 Feb 2010, 1:06 PM
#2
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: 404 error in admin after product import

p.s. It must be something to do my query as Im developing a friends store that is also migrating from the exact same old ecommerce software and Im getting the same error in the zc admin.

Can someone confirm if my trying to import IDs from another db (for both categories and products) is causing the error?

Thanks,

Scott.

2 Feb 2010, 2:42 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 404 error in admin after product import

Sounds like you're not setting all the data fields when importing. Namely, you're not setting the product_type field to a valid value.

2 Feb 2010, 2:45 PM
#4
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: 404 error in admin after product import

Thanks DrByte, come to think of it my query doesnt include anything for product type. :blush:

Ill have another look at it.

2 Feb 2010, 2:48 PM
#5
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: 404 error in admin after product import

Holy crap that ONE missing value made all the difference!

Thanks DrByte! I owe you another donut! :clap:

2 Feb 2010, 2:52 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 404 error in admin after product import

You'll likely also have problems with pricing if you don't set the products_price_sorter; and problems with products not showing in the right categories if you don't set the master_categories_id.
It's also prudent to go to Admin->Tools->Store Manager and run the Reset Products Price Sorter, and the Reset Master Categories IDs after doing those kinds of imports.

2 Feb 2010, 2:55 PM
#7
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: 404 error in admin after product import

Thanks for that, im noticing some of the strange behaviour you mentioned.

At least Im on the right track now with the query.

2 Feb 2010, 2:59 PM
#9
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: 404 error in admin after product import

Thanks :smile:

3 Feb 2010, 3:32 AM
#10
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: 404 error in admin after product import

I just have one more question;

Im dumping the price and tax id into zen cart as well. But the field in the products table; products_price - seems to be the net price field?

Is there a way for me to dump my product prices straight into the gross price field?

I cant seem to locate it in the db.

Thanks,

Scott

3 Feb 2010, 5:23 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 404 error in admin after product import

The gross price is calculated via the taxation module when tax is calculated based on customer shipping address or however you configure your taxation rules.

3 Feb 2010, 5:57 AM
#12
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: 404 error in admin after product import

Ok, I thought something like that mightve been happening when i couldnt find it in the db. :)

Thanks.

2 Mar 2010, 8:09 PM
#13
techiescot avatar

techiescot

New Zenner

Join Date:
Nov 2009
Posts:
59
Plugin Contributions:
0

Re: 404 error in admin after product import

Hi

I currently have a 404 page not found on both the admin and the store.

I had everything working really well and have been adding products via Easy populate without any problems. I had both the admin window and the store open and could see the most recent products I had added earlier today. I was uploading some images for these products and when I "refreshed" the page to show these, I could see that the images had added without any problem. I looked at all products and could see them ok.

HOWEVER, I tried to look at the specials page and it couldn't find it? I got a 404 error. The specials template page is still there are hasn't been touched.

Then the admin page disappeared - it was there one minute and gone the next. However, I cannot get into ANY pages now ... all showing a 404 error but I cannot see hoe adding images caused the problem. I was using Filezilla to move the images files.

Any ideas?

Thanks

Gillian

2 Mar 2010, 9:18 PM
#14
techiescot avatar

techiescot

New Zenner

Join Date:
Nov 2009
Posts:
59
Plugin Contributions:
0

Re: 404 error in admin after product import

Hi

Must have been a problem with the hosting company (GoDaddy) as it is back now ...

Who knows ... the mysteries of the internet!

Gillian