Forums / Install & configuration / Error when upgrading from 3.8.6 to 3.9.0

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Error when upgrading from 3.8.6 to 3.9.0

Author Message

Monday 18 December 2006 4:07:42 pm

I've upgraded my site from 3.8.6 to 3.9.0 following the upgrade documentation and have only had one problem when running this script:

# php update/common/scripts/3.9/correctxmltext.php --global

Fatal error: Call to a member function on a non-object in /var/www/flaubris.no/update/common/scripts/3.9/correctxmltext.php on line 278

Fatal error: Exponential did not finish its request
The execution of Exponential was abruptly ended, the debug output is present below.

It will run flawless if I run the command vith the --skip-objects option.

Classes look like this now:
a:2:{s:6:"nor-NO";s:11:"Forum reply";s:16:"always-available";s:6:"nor-NO";}
a:2:{s:6:"nor-NO";s:11:"Styremedlem";s:16:"always-available";s:6:"nor-NO";}
a:2:{s:6:"nor-NO";s:7:"Spiller";s:16:"always-available";s:6:"nor-NO";}
...

Does anyone have suggestions how I should fix this problem?

Friday 22 December 2006 12:50:07 pm

Could the strange class problem be due to this bug:
a:2:{s:6:"nor-NO";s:11:"Forum reply";s:16:"always-available";s:6:"nor-NO";}

I tried the script several times, but with different options...

Kristof Coomans

Friday 22 December 2006 10:44:46 pm

Hi Hans-Henry

I had the same issue. I'll post a script to fix the problem this afternoon.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Saturday 23 December 2006 12:10:29 pm

OK, thanks.
I'm looking forward to test it.

Kristof Coomans

Sunday 24 December 2006 2:27:17 am

With a small delay, I've uploaded the script as a contribution on ez.no:
http://ez.no/community/contribs/hacks/fix_class_translations

Let me know if it works for you.

K.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Brendan Pike

Wednesday 27 December 2006 9:05:16 pm

Hi
I've also experienced trouble with this script. If I include the --skip-objects option then it also runs okay. Any ideas as to why this is happening, I definitely did not run the script more than once.

root@mybox:/var/www/mysite# php update/common/scripts/3.9/correctxmltext.php --global

Fatal error: Call to a member function on a non-object in /data/www/mysite/update/common/scripts/3.9/correctxmltext.php on line 278

Fatal error: Exponential did not finish its request

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Kristof Coomans

Thursday 28 December 2006 1:32:48 am

To avoid confusion: the serialized PHP array as a class name is caused by running updateclasstranslations.php more than once. The correctxmltext.php script has nothing to do with that problem.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Brendan Pike

Thursday 28 December 2006 2:00:04 am

Thanks for the clarification Kristof

Hans-Henry original post described the exact error I also got thus my post. It might be best if I report it as a bug. I was hesitant to do that initially because I don't have much information to offer about it. I've pretty much ignore the bug and moved on to 3.9 as it doesn't seem to have been very crucial to the upgrade.

Cheers

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Vitaly Puzrin

Thursday 28 December 2006 4:35:10 pm

I have the same problem, that Brendan describes. It seems, that error occures when script tries to convert <object > tag.

I've changed script to show article ID. Then loaded "problem" article into OE and saved back (OE normalise <object > to <embed >). After that, script pass that article without problems (and crash on the next one).

But I don't wish to convert every article manually :(

Kristof Coomans

Friday 05 January 2007 2:54:11 am

Hi guys

I found the problem in the correctxmltext script, replace

$doc =& $xml->domTree( $text, array( "TrimWhiteSpace" => false ) );

with:

$doc =& $xml->domTree( $text, array( "TrimWhiteSpace" => false, "SetParentNode" => true ) );

Bug report: http://issues.ez.no/9952

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org