Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default 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/.php?page=1&product_type=0&cPath=84&pID=309&action=new_product

    Thanks,

    Scott.

  2. #2
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default 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.
    Donation made. Enjoy those donuts! :-)

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default Re: 404 error in admin after product import

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

    Ill have another look at it.
    Donation made. Enjoy those donuts! :-)

  5. #5
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default 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!
    Donation made. Enjoy those donuts! :-)

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default 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.
    Donation made. Enjoy those donuts! :-)

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: 404 error in admin after product import

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default Re: 404 error in admin after product import

    Thanks
    Donation made. Enjoy those donuts! :-)

  10. #10
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default 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
    Donation made. Enjoy those donuts! :-)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 404 error after rename Admin
    By nutrahealth in forum Basic Configuration
    Replies: 9
    Last Post: 21 Oct 2012, 06:49 PM
  2. Admin 404 Error After Install
    By firstcapitalfirearms in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 11 Oct 2012, 04:57 AM
  3. Getting error 404 after making admin changes
    By Arra in forum General Questions
    Replies: 0
    Last Post: 3 Jan 2011, 03:16 PM
  4. Error 404 after changing my admin page
    By asiamarinehub in forum Customization from the Admin
    Replies: 12
    Last Post: 5 Oct 2010, 12:58 AM
  5. admin page 404 error after renaming it (v1.3.9b)
    By swirlback in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 12 May 2010, 11:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg