Zen Cart Logo
Forums / General Questions / Fatal Error with other than default language

Fatal Error with other than default language

Locked

Views: 4,373

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
18 Jan 2007, 2:20 PM
#1
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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

18 Jan 2007, 7:40 PM
#2
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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!).

20 Jan 2007, 8:47 PM
#3
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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

22 Jan 2007, 7:59 AM
#4
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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

22 Jan 2007, 8:10 AM
#5
chuck avatar

chuck

Totally Zenned

Join Date:
Jul 2005
Posts:
255
Plugin Contributions:
0

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.

22 Jan 2007, 9:41 AM
#6
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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

28 Jan 2007, 6:31 PM
#7
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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

28 Jan 2007, 7:45 PM
#8
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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 />

28 Jan 2007, 7:56 PM
#9
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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.

28 Jan 2007, 9:01 PM
#10
drbyte avatar

drbyte

Sensei

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

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.

30 Jan 2007, 10:03 AM
#11
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Fatal Error with other than default language

DrByte, you saved me and the solution was after all so easy!

All seems working now but I keep testing a bit more still by adding the correct info.
Thanks a lot!

Elli

14 Feb 2007, 5:34 PM
#12
lib99 avatar

lib99

Totally Zenned

Join Date:
Dec 2004
Location:
New York, USA
Posts:
965
Plugin Contributions:
0

Re: Fatal Error with other than default language

DrByte - I think it is a bug. Experienced the same problem (v1.3.6)
http://www.zen-cart.com/forum/showthread.php?t=56928

added... There was no removing of the default language English. In my case, a language was added via Localization and the existing Categories, Products, etc... had blanks for the new language. Manually trying to edit would not update/save. (Unless I misunderstood what I've just been reading?)

3 Apr 2009, 9:01 PM
#13
flashback avatar

flashback

New Zenner

Join Date:
Sep 2007
Posts:
41
Plugin Contributions:
0

Re: Fatal Error with other than default language

I have a similar problem, but I deleted a secondary language (spanish) and nos I am getting the same error and my site is in spanish even though the language doesnt work, I deleted it and re-created again but it did not fix it.

http://www.zen-cart.com/forum/showthread.php?t=124352