Share » Forums » Install & configuration » After upgrading to ez publish 4.0...

After upgrading to ez publish 4.0 problems with URLS

After upgrading to ez publish 4.0 problems with URLS

Sunday 27 January 2008 2:17:41 pm - 9 replies

Author Message

Łukasz Serwatka

Monday 28 January 2008 1:07:18 am

Hi,

If you have followed all instruction in the upgrade documentation then it should work. You may try re-run updateniceurls.php script. Make sure you have cleared all cache.

You may try also solution described here:
http://ez.no/developer/forum/install_configuration/3_10_creataing_contents_url_and_specials_characters_problem

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

H. K.

Monday 28 January 2008 3:59:53 am

I ran niceurls again, now the node id is gone from the urls, but one of the nodes names are missing from the urls

Like
http://www.mydomain.com/magasinet/afghanistan/Experts-Urge-Regional-Cooperation-on-Afghanistan

Should be
http://www.mydomain.com/magasinet/news/afghanistan/Experts-Urge-Regional-Cooperation-on-Afghanistan

But If I manually add “news” the URLS will still not work.

I have checked the databases consistency via the admin interface, the result was

To synchronize your database with the distribution setup, run the following SQL commands:

ALTER TABLE ezurl DROP INDEX ezurl_url;
ALTER TABLE ezurl ADD INDEX ezurl_url ( url );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_act_org;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_act_org ( action, is_original );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_action;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_action ( action, id, link );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_par_act_id_lnk;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_act_id_lnk ( parent, action, id, link );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_par_lnk_txt;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_lnk_txt ( parent, link, text );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_par_txt;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_txt ( parent, text );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_text;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_text ( text, id, link );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_text_lang;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_text_lang ( text, lang_mask, parent );

Should I execute these commands via mysqul –u username –p database_name ?

Łukasz Serwatka

Monday 28 January 2008 4:02:26 am

Yes, it seems you have forgot to run SQL update scripts. This is mention also in the documentation. See online documentation for upgrading.

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

H. K.

Monday 28 January 2008 4:12:46 am

I execute the commands via mysqul –u username –p database_name, but the following command resulted in this error
ERROR 1170 (42000): BLOB/TEXT column 'action' used in key specification without a key length

ALTER TABLE ezurl ADD INDEX ezurl_url ( url );
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_act_org ( action, is_original );
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_action ( action, id, link );
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_act_id_lnk ( parent, action, id, link );
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_lnk_txt ( parent, link, text );
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_txt ( parent, text );
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_text ( text, id, link );
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_text_lang ( text, lang_mask, parent );

I googled "ERROR 1170 (42000): BLOB/TEXT column"

“The solution to the problem is to remove the TEXT or BLOB column from the index or unique constraint, or set another field as primary key. If you can’t do that, and wanting to place a limit on the TEXT or BLOB column, try to use VARCHAR type and place a limit of length on it. By default, VARCHAR is limited to a maximum of 255 characters and its limit must be specified implicitly within a bracket right after its declaration, i.e VARCHAR(200) will limit it to 200 characters long only.” From http://www.mydigitallife.info/2007/07/09/mysql-error-1170-42000-blobtext-column-used-in-key-specification-without-a-key-length/

Please help I am no mysql expert!

H. K.

Monday 28 January 2008 4:16:33 am

Can you be more specific, I did follow the installation guide

H. K.

Monday 28 January 2008 11:12:46 am

I removed the database and imported my backup dump, then repeated the upgrade instructions skipping the sections with “Multi-language support for URL aliases (optional)”.

Now the website works, but the URLS are “dirty”. And the databases give no error.

So there clearly is a bug in the niceurls script. (not reported?)

As I understand the upgrade to EZ 3.10 destroyed the nice urls, can I upgrade to EZ 4 directly from EZ 3.9.2?

Stéphane Bullier

Tuesday 29 January 2008 1:42:44 am

Hello,

No you can't update directly to 3.9 from 4.0.
http://ez.no/doc/ez_publish/upgrading/upgrading_to_4_0/from_3_10_0_to_4_0_0
<i>Note that it is not possible to upgrade directly from version 3.9.x (and earlier) to 4.0.0,</i>

About your problem of url look this message http://ez.no/developer/forum/install_configuration/3_10_creataing_contents_url_and_specials_characters_problem

Stéphane

yunxia cai

Monday 05 April 2010 6:55:29 pm

Sorry ,I can't understand you ! I follow the instruction of upgading from 3.10.0 to 4.0.0 ,but it is error still of the url

Can you reply clearly ?

Thanks!

Nicolas Pastorino

Tuesday 06 April 2010 3:10:43 am

Sorry ,I can't understand you ! I follow the instruction of upgading from 3.10.0 to 4.0.0 ,but it is error still of the url

Can you reply clearly ?

Thanks!

Hi,

If you are currently in the process of upgrading an existing eZ Publish installation, you should pick the 4.3 version. More information on the release :

  • release announcement : http://share.ez.no/blogs/ez/ez-publish-4.3.0-released
  • upgrade instructions : http://ez.no/doc/ez_publish/upgrading

Hope this helps,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu