After upgrading to ez publish 4.0 problems with URLS

Author Message

H. K.

Sunday 27 January 2008 2:17:41 pm

Hi, today I upgraded my system first to from 3.9.2 to 3.10, and then to 4.0.

At first it looked like the system was working correctly, but then I discovered that when I click a link on my interface I get

“Error / kernel (20) Module not found, The requested module 13 could not be found…….”

The Urls are a mixture of node names and node ID
http://www.mydomain.com/magasinet/13/middle-east/afghanistan/experts-urge-regional-cooperation-on-afghanistan

Same problem with my admin interface

When I replace node ID with node name the links does still not work, only urls containing only node ID’s work.

http://www.mydomain.com/magasinet/30

Ł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

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

eZ debug

Timing: Jan 18 2025 04:58:28
Script start
Timing: Jan 18 2025 04:58:28
Module start 'layout'
Timing: Jan 18 2025 04:58:28
Module start 'content'
Timing: Jan 18 2025 04:58:29
Module end 'content'
Timing: Jan 18 2025 04:58:29
Script end

Main resources:

Total runtime0.7719 sec
Peak memory usage4,096.0000 KB
Database Queries84

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.2813152.6563
Module start 'layout' 0.00530.0065 741.937539.5078
Module start 'content' 0.01180.7586 781.4453765.5313
Module end 'content' 0.77040.0014 1,546.976624.1094
Script end 0.7718  1,571.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4563160.0002
Check MTime0.00140.1811160.0001
Mysql Total
Database connection0.00110.139710.0011
Mysqli_queries0.663285.9218840.0079
Looping result0.00130.1740820.0000
Template Total0.739295.820.3696
Template load0.00230.293620.0011
Template processing0.736995.476320.3685
Template load and register function0.00030.037710.0003
states
state_id_array0.00070.096510.0007
state_identifier_array0.00090.119820.0005
Override
Cache load0.00220.2894920.0000
Sytem overhead
Fetch class attribute can translate value0.00080.100550.0002
Fetch class attribute name0.00130.1721140.0001
XML
Image XML parsing0.00630.813350.0013
class_abstraction
Instantiating content class attribute0.00000.0032150.0000
General
dbfile0.00510.6570360.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 48
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs