Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Fatal Error with other than default language

    There's a shop running with one non-English default language.
    I'm trying to add on it two other languages now but I get following error message:

    Fatal error: Call to a member function MoveNext() on a non-object in /usr/home/myserver/customer/html/includes/classes/category_tree.php on line 68


    How could I fix this problem?

    Elli
    I may be blond but at least I found Zen.

  2. #2
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Fatal Error with other than default language

    I can't also save any category names in these other two languages, neither product names of descriptions. When I go back to look the product in admin Catalog -> Categories and Products, the product form shows only the default language content (in other language product names and descriptions are empty!).
    I may be blond but at least I found Zen.

  3. #3
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Fatal Error with other than default language

    Anybody able to help?
    I would atleast put the product info in other languages there but the system doesn't save any product names or description in any other than default language, not even in English...
    I may be blond but at least I found Zen.

  4. #4
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Fatal Error with other than default language

    Hi,

    is there anybody who could help with this? Why I can't use other than default languages? Nothing gets saved, not even category names. The shop is online with the default language like before but I can't add the other ones and I already lost one big advertisement because it was paid and published and with another language than the default one...


    Elli
    I may be blond but at least I found Zen.

  5. #5
    Join Date
    Jul 2005
    Posts
    537
    Plugin Contributions
    0

    Default Re: Fatal Error with other than default language

    I think you're likely not getting help for a couple reasons:

    1. Nobody knows what version of Zen Cart you're using. Is it possible you've stumbled on a bug that's been fixed in a later release?

    2. Nobody knows which languages you're attempting to use.

    3. If you were to mention what customizations you've made to your site, it might help to narrow down the cause to some specific change that has been made.

    4. What contributions have you added to your site? What version of Zen Cart were each of those designed for when you last installed or updated them?

    5. Is there a URL where it can be seen in action ? It's often easier to find answers by seeing the live site.

    6. It might be smart to also share what version of PHP and MySQL you are using.

  6. #6
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Fatal Error with other than default language

    Hi,

    thanks for the answer.
    The ZC is 1.3.6 and it has language pack for Finnish (that works in other 1.3.6 versions without problems and also here has looked like to be so). I'm trying to get the default English to work with it and I get these errors.

    The ZC has no other add-ons or customizations except Easy Populate (that hasn't caused any errors like this in another shop that is run in the same shared server, different domain).

    Server info:
    Database: MySQL 4.1.20
    PHP Version: 5.1.6 (Zend: 2.1.0)
    HTTP Server: Apache

    Zen Cart
    Zen Cart 1.3.6
    Database Patch Level: 1.3.6
    v1.3.6 [2006-12-15 23:33:24] (Fresh Installation)

    Thanks if anybody can help.

    Elli
    I may be blond but at least I found Zen.

  7. #7
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Fatal Error with other than default language

    I upgraded the shop for version 1.3.7 and I still get this error message:

    Fatal error: Call to a member function MoveNext() on a non-object in /usr/home/myserver/myaccount/html/zcnew/includes/classes/category_tree.php on line 68

    What an earth can be wrong? I'm loosing huge amount of time, money and nerves with this issue and there seems no solution!

    Elli
    I may be blond but at least I found Zen.

  8. #8
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Fatal Error with other than default language

    I looked in the database for example my categories_description table and it indeed doesn't save there any category names for other than the default language:

    categories_id language_id categories_name categories_description
    1 2 Flora
    2 2 Teddy
    3 2 Soft produkt
    4 2 Outra <span style="font-weight: bold;"></span><br />
    5 2 Kort <br />
    I may be blond but at least I found Zen.

  9. #9
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Fatal Error with other than default language

    I also tried to add a "test" category and if I add the test for all the three languages I'm trying to have in the end IT WORKS.
    So, the living shop categories with default language can't be updated to have other languages but new categories can have all the three and they appear on the site as well.

    How would I get all the default language old categories in other languages without the category tree error and saving the info of category names, descriptions, product names and descriptions for the other languages as well?

    There must be some bug here since I remember doing this before with another shop as well. So if I would put all desired languages as once to the shop it would work but if I go online with one language only and want to add others later, it seems too complicated to do and you get this category tree error and not saving information for the categories and products.
    I may be blond but at least I found Zen.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Fatal Error with other than default language

    There is a problem with your order-of-operations:

    Example, using a fresh install of a new store:
    1. English is the only built-in language. Thus, it is the 'current' language.
    2. Add Spanish. Now all products+categories have both english and spanish names, with the spanish being a copy from the English names.
    3. If you now go and "delete" the "english" language option, it will remove it, along with all the english descriptions related to the english language fields in the database.
    4. If you now go and add another language, it will copy all the descriptions to that new language, using your "current" language as the source. But, since you just deleted "english" and all your "english" descriptions are gone, it copies blanks to the new language's descriptions/names.

    So, to recover.
    a. In Admin, from the Language pulldown, choose the language for which you "do" have category/product descriptions
    b. now go and delete all the other "empty" languages
    c. re-add the new languages, which will copy from your currently-active language names/descriptions.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Auth.net SIM currency other than default receives "Not allowed" error
    By RixStix in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 31 Dec 2015, 04:08 AM
  2. Force display of other currency than default?
    By JoeSoap in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 13
    Last Post: 22 Aug 2015, 11:54 AM
  3. v150 How to set default 'Product Qty Minimum' to something other than 1
    By actionjackson57 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 28 Jan 2013, 06:50 AM
  4. Replies: 3
    Last Post: 21 Oct 2009, 09:46 AM
  5. Replies: 3
    Last Post: 14 Feb 2007, 07:02 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