Forums / Install & configuration / Updateniceurls error while upgrading from 3.9.0 to 3.10.1

Updateniceurls error while upgrading from 3.9.0 to 3.10.1

Author Message

Sébastien Antoniotti

Friday 14 November 2008 4:07:01 pm

Hi,

I'm upgrading from 3.9.0 to 3.10.1.
I was previously on 3.8.6, and the 3.8.6 to 3.9.0 upgrade has been done without problems.

Here is the script I use to upgrade from 3.9.0 to 3.10.1 :

cp -r /var/www/mywebsite3101/* /var/www/mywebsite.net/

rm -rf /var/www/mywebsite.net/var/*
cp -rp /var/www/eztest/var/* /var/www/mywebsite.net/var/

cp -rp /var/www/eztest/settings/override/* /var/www/mywebsite.net/settings/override/

rm -rf /var/www/mywebsite.net/settings/siteaccess/*
cp -rp /var/www/eztest/settings/siteaccess/* /var/www/mywebsite.net/settings/siteaccess/

chown -R www-data /var/www/mywebsite.net/

cd /var/www/mywebsite.net
php update/common/scripts/3.10/fixobjectremoteid.php -s fr

# Upgrading the database to 3.10.1
mysql -f -u root -ppass mywebsite< /var/www/mywebsite.net/update/database/mysql/3.10/dbupdate-3.9.0-to-3.10.0.sql
mysql -f -u root -ppass mywebsite< /var/www/mywebsite.net/update/database/mysql/3.10/dbupdate-3.10.0-to-3.10.1.sql

cd /var/www/mywebsite.net

# Running the 3.10.1 upgrade scripts
# php = PHP 4

php bin/php/updateniceurls.php --import -s fr
# php bin/php/ezimportdbafile.php --datatype=ezisbn -s fr
# php update/common/scripts/3.10/updatemultioption.php -s fr
# php update/common/scripts/3.10/updatevatcountries.php -s fr

and here the output :

...
...
Using siteaccess fr for nice url update
Note: any errors encountered will be logged to urlalias_error.log
Using fetch limit: 200
Archived log file urlalias_error.log to urlalias_error.log.20081115010751
Importing old node urls
Importing 1417 node urls
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 3.88% 13s 55/1417
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 7.83% 15s 111/1417
EEEEE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EEEEEEE 67.11% 6s 951/1417
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 71.07% 6s 1007/1417
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 75.02% 5s 1063/1417
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 78.97% 4s 1119/1417
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 82.92% 3s 1175/1417
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 86.87% 2s 1231/1417
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 90.83% 1s 1287/1417
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 94.78% 1s 1343/1417
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 98.73% 0s 1399/1417
EEEEEEEEEEEEEEEEE
Importing old url aliases
Importing  standard urls
Importing  redirections
Importing  wildcards
Removing old wildcard caches
Import completed
Import time taken: 1m 3s
2

Fatal error: Call to a member function on a non-object in /var/www/mywebsite.net/bin/php/updateniceurls.php on line 1097

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.
Purging : Cache d'affichage de contenu, Cache...

and here the lines 1095 to 1097 of my updateniceurls.php (I have added the cli output to know the value of $rootnode)

 $cli->output($topLevelNodeID);
 $rootNode = eZContentObjectTreeNode::fetch( $topLevelNodeID );
 if ( $rootNode->updateSubTreePath() )

It seems that "eZContentObjectTreeNode::fetch" doesn't fetch the root node... it's strange no ?

eZ Publish Freelance
web : http://www.webaxis.fr