Forums / General / Fatal Error while translating with ezPublish 3.8

Fatal Error while translating with ezPublish 3.8

Author Message

Hakim Bouras

Monday 19 June 2006 12:40:25 pm

Hi,

I installed ezPublish 3.8 with only the language english since I was not able to finish the install when I tried to also add "french" language.

Then I added later through the admin interface the french language and I have updated my site.ini configuration for the admin site with the following:

[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
SiteLanguageList[]=fre-FR
SiteLanguageList[]=eng-GB
TextTranslation=enabled

<b>I can create a new object (article or other) as a french instance. But when I try to edit it again to add the english version I end up with the following error:</b>

<i>Fatal error: Call to a member function on a non-object in d:\ezpublish\ezpublish\kernel\classes\ezcontentobjectversion.php on line 1549</i>

<b>This only happen with new objects</b>, if I edit objects that was already existing prior to the step I add the french language and update my site.ini file, I am able to edit both a french and an english version.

I have absolutely no idea of where this problem is coming from, and any help will be greatly appreciated.

Thanks in advance,
Hakim

Markus Freyt

Thursday 07 December 2006 2:04:26 pm

Hi there,

I have the same error message on my ezpublish application as well. I didn't touch the language settings at all. Also I just have english language in my settings. After installation everything was working fine. I build up my page without any problems.

Some weeks ago I have upgraded from 3.7.x to 3.8.4. finally. Also without any problems.

Now I have recognized the same problem. Creating objects, classes,... - no problem, but editing newly added objects fails with fatal error.

For old objects (doesn't matter if it is article, folder, ...) I can use edit without any problems.

When I create a new object (independant from its class) ezpublish is presenting me the form for selecting the language to edit. In my case just one language is displayed here. After pressing ok, the fatal error appears. When editing the new object va sensitive menu (choosing "Edit In" and the correct language) I can edit those new objects without any problem..

Hope that we can find the bug (?) soon. Just let me know, if you need more info to get an indication.

Would you recomment us to upgrade to 3.8.6 or better wait for 3.9.

Pls, help...Many thanks....

Maxime Thomas

Tuesday 23 January 2007 6:18:13 am

Ok.

I've got the same issue, I was trying to translate a created content but it crashes just after the Language selection page...

I don't know why but the <b>Initial Language Code</b> is reset when you try to translate in a new language.

I don't know why it was ok just before I've got the issue,.

By the way, I've patched the <i>/kernel/classes/ezcontentobjectversion.php</i>, replacing the <i>initialLanguageCode()</i> function.

function initialLanguageCode()
    {
        $initialLanguage = $this->initialLanguage();
		if ($initialLanguage!=null)
		{
			return $initialLanguage->attribute( 'locale' );
		}
		else
		{
			return null;
		}
    }

And it runs as usual for me....

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas