Upgrade 3.8.6 to 4.0 problems with URL-s

Author Message

Mariusz Bułkowski

Sunday 17 February 2008 10:50:40 am

Hi,
I upgraded my eZ from 3.8.6 to 4.0.0 in steps.
3.8.6 -> 3.9.0
3.9.0 -> 3.10.0
3.10.0 -> 4.0.0

I used my scripts

/CMS/htdocs/ - home EZ

<b>3.8.6 -> 3.9.0</b>

# Upgrading the distribution files to 3.9.0
cp -rv /ez/ezpublish-3.9.0/* /CMS/htdocs/
chown -R nobody /CMS/htdocs
# Upgrading the database to 3.9.0
mysql -f ez< /CMS/htdocs/update/database/mysql/3.9/dbupdate-3.8.0-to-3.9.0.sql

cd /CMS/htdocs/
# Running the 3.9.0 upgrade scripts
# php = PHP 4
php update/common/scripts/3.9/updateclasstranslations.php  -s polska --language=pol-PL
php update/common/scripts/3.9/correctxmltext.php --global
php update/common/scripts/3.9/updatetypedrelation.php -s polska

# Clearing the caches
bin/shell/clearcache.sh --clear-all
 

<b>3.9.0 -> 3.10.0</b>

# Upgrading the distribution files to 3.10.0
cp -rv /ez/ezpublish-3.10.0/* /CMS/htdocs/
chown -R nobody /CMS/htdocs
# Upgrading the database to 3.10.0
mysql -f ez < /CMS/htdocs/update/database/mysql/3.10/dbupdate-3.9.0-to-3.10.0.sql


cd /CMS/htdocs/
# Running the 3.10.0 upgrade scripts
# php = PHP 4
php bin/php/updateniceurls.php -s polska
php  bin/php/ezimportdbafile.php --datatype=ezisbn -s polska
php update/common/scripts/3.10/updatemultioption.php -s polska
php update/common/scripts/3.10/updatevatcountries.php -s polska

# Clearing the caches
php bin/php/ezcache.php --clear-all
 

<b>3.10.0 -> 4.0.0</b>

# Upgrading the distribution files to 4.0.0
cp -rv /ez/ezpublish-4.0.0/* /CMS/htdocs/
chown -R nobody /CMS/htdocs
# Upgrading the database to 4.0.0
mysql -f ez < /CMS/htdocs/update/database/mysql/4.0/dbupdate-3.10.0-to-4.0.0.sql

cd /CMS/htdocs/
# Running the 4.0.0 upgrade scripts
php update/common/scripts/4.0/updatebinaryfile.php -s polska

# In order to revert the changes that were made by the "updateniceurls.php" script when
# upgrading to 3.10.0, run the following SQL queries:
# UPDATE ezurlalias SET is_imported=0;
# TRUNCATE ezurlalias_ml;
mysql -f ez</CMS/popraw.sql # 

# php = PHP 5
php bin/php/updateniceurls.php --import -s polska
php bin/php/ezpgenerateautoloads.php
php update/common/scripts/4.0/updatevatcountries.php -s polska
php update/common/scripts/4.0/updatetipafriendpolicy.php -s corporate_admin 
php bin/php/ezcache.php --clear-all --purge

After upgrade my Ez 4.0 was working OK but after i tested all my pages i found many pages with error:
<b>
Module not found

The requested module Products could not be found.

Possible reasons for this are:

* The module name was misspelled, try changing the URL.
* The module does not exist on this site.
* This site uses siteaccess matching in the URL and you did not supply one, try inserting a siteaccess name before the module in the URL . </b>

In admin interface in many pages i see:

<b>
The requested page could not be displayed. (20)

The requested address or module could not be found.

Possible reasons:

* The address was misspelled. Try changing the URL.
* The name of the module was misspelled. Try changing the URL.
* There is no <Products> module available on this site.
* The site is using URL matching to determine which siteaccess to use, but the name of the siteaccess is missing from the URL. Try to add the name of the siteaccess; it should be specified before the name of the module.</b>

I used:
<b>Check database consistency
</b> result: Database check OK.

in var/log/error.log i see many many errors

<b>
The parent ID 1179 of element with ID 28 does not point to the last entry which had ID 23, incorrect path would be calculated, aborting
eZContentObjectTreeNode::pathWithNames() failed to fetch path of node 190, falling back to generated url entries. Run updateniceurls.php to fix the problem.
</b>

Any hint?

Best regards.

Portable Ultrasound http://www.draminski.com

Łukasz Serwatka

Monday 18 February 2008 6:43:26 am

Cześć,

What charset (check in settings/override/i18n.ini.append.php) do you use?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Mariusz Bułkowski

Monday 18 February 2008 9:25:00 am

Witam,

settings/override/i18n.ini.append.php

<?php /* #?ini charset="iso-8859-1"?

[CharacterSettings]
Charset=utf-8
*/ ?>

Portable Ultrasound http://www.draminski.com

Radek Kuchta

Wednesday 20 February 2008 6:23:06 am

Hi,

I have a question about update from 3.10.0 to 4.0
As we know we should run updeteniceurl script. With preview version of manual (upgrade from 3.9.x to 3.10.0) we can read, that updateniceurl.php scrip should be run only once (if we are using the same database for all siteaccess).
When I'm reading manual for upgrading from 3.10.0 to 4.0 I can't find any information about how many times run that script.
Can you tell me something about this point?

... I have updated my site form 3.10.0 to 4.0 and I have the same problem as Mariusz has:

Error:
eZContentObjectTreeNode::pathWithNames() failed to fetch path of node 338, falling back to generated url entries. Run updateniceurls.php to fix the problem.

updateniceurls.php doesn't help me :(

http://ez.no/certification/verify/272582

Mariusz Bułkowski

Thursday 21 February 2008 1:56:41 pm

Strange error :(
I can't find remedy :(

I have in tree:

HOME / Products / <b>Moisture Meters</b> / <blah blah blah names of products >

If i can't open some node in admin siteacces i have error:
The requested page could not be displayed. (20)
But if I open from popup menu :
Advanced -> Manage URL Aliases i see URL:

HOME / Products / <b>Izmeriteli-Vlazhnosti</b> / <blah blah blah names of products >

Izmeriteli-Vlazhnosti = Moisture Meters but in other language

If i deleted all translations of :"Moisture Meters" and i still have <b>Izmeriteli-Vlazhnosti</b>

Very very Strange error :(

Portable Ultrasound http://www.draminski.com

Łukasz Serwatka

Monday 25 February 2008 12:53:18 am

Hi,

This error can triggered when you are trying display $node.url_alias in language that does not exist. Take a look on eZURLAliasML::fetchPathByActionList() which uses eZContentLanguage::prioritizedLanguages(). It might be wrong INI configuration for site.ini.[RegionalSettings].SiteLanguageList[]

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Pål Messenlien

Tuesday 26 February 2008 1:28:45 pm

I have the same errors on a site installed as ezp4. The error happend when i started using short_title in articles. And the strange part is that it happends only on older articles. The site is upgraded with eZ flow database update, and i have gone thru the site settings and cant find anywhere that might cause this. If i edit a older article and add content to short_title i get this printed in debug:

The parent ID 234 of element with ID 258 does not point to the last entry which had ID 244, incorrect path would be calculated, aborting
eZContentObjectTreeNode::pathWithNames() failed to fetch path of node 223, falling back to generated url entries. Run updateniceurls.php to fix the problem.

I have tried running updateniceurls on the siteacces without any luck. What i notice is that when i add the short_title im also getting that content as the url.

It dont happend making a new article, so it has to be something thats happend since the update to ez flow maybe?

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Pål Messenlien

Tuesday 26 February 2008 2:25:49 pm

After some more digging and debugging here i found where the problem comes from. I noticed i got some error on the folder that the article was placed.

The parent ID 234 of element with ID 260 does not point to the last entry which had ID 244, incorrect path would be calculated, aborting.
eZContentObjectTreeNode::pathWithNames() failed to fetch path of node 205, falling back to generated url entries. Run updateniceurls.php to fix the problem.

Since updaterulrs didnt fix a thing i just tried to move the article someplace else. Then it worked again. So the problem is the parent node in the firstplace. Try moving the troubled article and see if it fixes anything.

This thing scares me thinking that im about to update a huge site to ezp4.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Mariusz Bułkowski

Tuesday 26 February 2008 11:23:06 pm

<b>Łukasz</b> - I corected SiteLanguageList and now i don't have errors.

"failed to fetch path of node 190, falling back to generated url entries. Run updateniceurls.php to fix the problem."

"Dziękuję"

But errors " The requested page could not be displayed. (20)" still happen.

I tested metod <b>Pål Messenlien</b>.
After moved node somwhere i don't have error. <b>Thanx</b> <b>Pål Messenlien</b>

 

 

Portable Ultrasound http://www.draminski.com

Pål Messenlien

Tuesday 26 February 2008 11:54:27 pm

Good to hear it worked out for you also. What i am afraid of now is do i have many of these buggy folders in my site. I didnt notice the error before i changed some of the content or added something new. This bug should be adressed to eZ. But im not sure how to adress it since it seems like a random problem.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Mariusz Bułkowski

Thursday 28 February 2008 2:53:57 am

If you want I can send my php script.
It makes for all nodes :
-remember place
-move somwhere
-move to remember place

Portable Ultrasound http://www.draminski.com

Pål Messenlien

Thursday 28 February 2008 3:20:47 pm

Thanks that would be helpfull. I got 4-5 Ezp 3.8* sites that needs to be upgraded to 4.0 soon. Ive sent you a message now so you get my mail adress.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

infolox GmbH

Tuesday 08 April 2008 5:39:08 am

Probably this is related to issue http://issues.ez.no/IssueView.php?Id=12829. See also topic: http://ez.no/developer/forum/developer/problems_with_the_tree_url_aliases_paths

Ismael Ruiz

Wednesday 16 April 2008 11:45:20 am

Hi,

I want to ungrade from 3.9.0 to 3.10.

I have followed the tutorial and the are several php scripts wich havent'run.

1. php bin/php/updateniceurls.php -s example
--> Using siteacces site_name for nice url update
Total update 0/0

2.php update/common/scripts/3.10/updatemultioption.php -s example
-->Can't initialize database connection

3.php update/common/scripts/3.10/updatetipafriendpolicy.php -s example_admin -l login -p password
-->Fatal error: Call to undefiened function: mysql_escape_string() in var/www/.../lib/ezdb/classes/ezmysqldb.phpon line 817

4.Cearing the cache
--> I can't login on the web site and also not on the admin interface

The messages are like this:
You do not have permission to access this area

Can somebody tell me how to fix the problem?

THX

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.