Forums / Install & configuration / After upgrading to ez publish 4.0 problems with URLS

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

eZ debug

Timing: Jan 18 2025 02:45:48
Script start
Timing: Jan 18 2025 02:45:48
Module start 'content'
Timing: Jan 18 2025 02:45:49
Module end 'content'
Timing: Jan 18 2025 02:45:49
Script end

Main resources:

Total runtime1.1415 sec
Peak memory usage4,096.0000 KB
Database Queries221

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.9609180.8047
Module start 'content' 0.00790.9430 768.7656770.6406
Module end 'content' 0.95090.1905 1,539.4063348.4375
Script end 1.1414  1,887.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3861210.0002
Check MTime0.00170.1446210.0001
Mysql Total
Database connection0.00140.118410.0014
Mysqli_queries1.007788.28092210.0046
Looping result0.00260.22572190.0000
Template Total1.107097.020.5535
Template load0.00190.169420.0010
Template processing1.105196.807820.5525
Template load and register function0.00030.023410.0003
states
state_id_array0.00090.078210.0009
state_identifier_array0.00080.074520.0004
Override
Cache load0.00190.1655920.0000
Sytem overhead
Fetch class attribute can translate value0.00180.158260.0003
Fetch class attribute name0.00150.1327140.0001
XML
Image XML parsing0.00620.543960.0010
class_abstraction
Instantiating content class attribute0.00000.0024150.0000
General
dbfile0.01040.9071470.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 48
 Number of unique templates used: 9

Time used to render debug report: 0.0002 secs