Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Store hangs when showing a new product

    Hi,
    I moved form 1.38 italian version to 1.39d original + translation.
    To do this I had to dwld each single old db table, empty the new tables and upload each single table in the new db with the old data.
    Everytihing seems to work. I have reorganized the products in the categories linking them in a different way without problems.
    Now I want to add a new category and it works too. The category is displayed correctly and if there are no products in it, clicking on it I get the page that says that there are no products in the category.
    So far so good.

    If I add a product to this new category when I click on the category name zen cart hangs showing a blank page.
    If I add a new product in a old category the product is shown without problems.
    So in few words I can add new catogories, but I can not add new or copy old products in new categories and I can add products to the old catgories.

    I tend to believe that this is due to some problem with the db, but....which one?
    Thanks for your help.
    enzo
    Last edited by enzo-ita; 29 Sep 2010 at 07:14 AM.

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

    Default Re: Store hangs when showing a new product

    The correct procedure for upgrading the database is to run zc_install and choose "Database Upgrade" so that it can properly upgrade the old data and structure to the new format.
    By manually extracting individual pieces and skipping the upgrade steps you're likely to leave your database in bad shape, resulting in all kinds of unexpected and undesirable results.
    .

    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.

  3. #3
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: Store hangs when showing a new product

    Thanks for your answer.
    I probably was not clear enough.

    As you probably recall, I had a problem upggrading with zc_install the 1.38 db with 1.39 version, and you told me that was because I was using a non original (italian) version of the db.

    Therefore I made a fresh installation with 1.39d original software, and imported the data only in the various tables.

    In this way I had my site updated and working and the db structure was untouched.

    But then I found this problem for which I can add new categories, but I can not add new or copy old products in new categories just created, while I can add products to the old categories.

    I agree that this sounds to be a db problem, but I would like to have some clue on were to look in order to understand were the problem is.

    ciao

    enzo

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

    Default Re: Store hangs when showing a new product

    But, merely copying data from an OLD database, in its OLD structure, into a NEW database which has a NEW structure, is dangerous.
    You should ONLY copy data from SAME version to SAME version. So, you should have either upgraded the OLD database FIRST, before importing into the new, OR import the OLD into the NEW and then run the scripted upgrade.

    Unfortunately there's no way to know from here what's wrong with your database. It could be hundreds of things, including broken autoincrements, broken indexes, wrong structure, missing data that would only be properly set by running the upgrade correctly, incorrect field types, damaged records, relationships out of sync, and the list goes on.
    .

    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.

  5. #5
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: Store hangs when showing a new product

    Ok, but I had no chances.
    It was impossible to upgrade from 1.38 to 1.39 using the zc_install scripts.
    Now how can I solve this problem? If there is a solution?
    Thanks
    enzo

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

    Default Re: Store hangs when showing a new product

    Start with the list of things I mentioned above.
    .

    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
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: Store hangs when showing a new product

    OK!!!! Thanks!!!

    I have already checked what I could and:

    Autoincrements are ok; categories and products are numbered progressively without duplication of ID.
    The table "categories to product" is compiled correctly so I think that the relationship is correct.

    I do not know the difference between indexing and auto increment.

    I do not think I have a wrong structure because what I did was: Install the db version 1.39 without the sample data,
    Dwld the data only from the db 1.38 table by table.
    Upload the data into the db 1.39, table by table without touching the data already in the tables of the 1.39 db with two exceptions:

    I had to add in the table address_book two fields: entry_vat and entry_cf because the italian version of the db had these two added fields.
    I had to load the data from 1.38 on the zones table because the data of the 1.39 did not include the italian zones.

    However what shpuld I check to confirm that I do not have wrong structure?

    I wait for you instructions on the next step to check.
    In the mean time I want to activate the debug and see if some clue comes out. I will let you know.

    Thanks
    enzo

  8. #8
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: Store hangs when showing a new product

    This is what the dubug says

    [30-Sep-2010 09:51:57] PHP Warning: Cannot modify header information - headers already sent by (output started at /home7/acquatua/public_html/includes/languages/italian/classic_mio/index.php:98) in /home7/acquatua/public_html/includes/functions/functions_general.php on line 45

    Does it tell you something?
    Thanks

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

    Default Re: Store hangs when showing a new product

    Quote Originally Posted by enzo-ita View Post
    [30-Sep-2010 09:51:57] PHP Warning: Cannot modify header information - headers already sent by (output started at /home7/acquatua/public_html/includes/languages/italian/classic_mio/index.php:98) in ...
    https://www.zen-cart.com/tutorials/index.php?article=87
    .

    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.

  10. #10
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: Store hangs when showing a new product

    That solved the problem!

    I deleted a blank line in the php file and that did the magic.
    Thanks a lot.

    I do not understand, however, how it is possible that this problem came out only with new products created in new or old categories.

    enzo

 

 

Similar Threads

  1. When I enter new products they're not showing in my store
    By jamessewell21 in forum Upgrading to 1.5.x
    Replies: 11
    Last Post: 25 Oct 2014, 10:03 AM
  2. My store "hangs" at product preview
    By barclay_928 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 19 Jan 2010, 06:56 PM
  3. Newsletter Hangs when sending on GoDaddy
    By jsmith1611 in forum General Questions
    Replies: 1
    Last Post: 9 Dec 2009, 10:24 PM
  4. Need help!!! when adding new product to a category the Cart Box not showing
    By datvtran in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Mar 2009, 06:21 PM
  5. Replies: 1
    Last Post: 18 Oct 2008, 04:13 AM

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