Forums / General / Issue 12785 - potential workaround?

Issue 12785 - potential workaround?

Author Message

Russell Michell

Tuesday 12 August 2008 6:55:33 pm

Apologies if this isn't the correct place to submit this info:

I just experienced a near corruption of my ezurlalias_ml table after I modded my override/site.ini.append.php.

I put this:

[URLTranslator]
Translation=enabled

and ran updateniceurls.php which resulted in my being unable to navigate through my ez 4.0 site and receiving multiple redirect errors from Firefox. This was in my logs:

Query error: Duplicate entry '471-0c1f3c77af50ba4221fb229fccbf4f62' for key 1. Query: UPDATE ezurlalias_ml SET parent = 471
WHERE parent = 287

So I altered site.ini it to:

[URLTranslator]
Translation=disabled

Cleared the cache and re-ran updateniceurls.php which fixed t emultiple redirect error but the error message still shows up in the logs.

According to Issue 12785, this has been fixed in 4.0.1, but I'm not sure what do do next to incorporate this fix in my install. Do I need to try and upgrade? Which upgrade path to I follow - there obviously isn't one for 4.0 to 4.0.1??

Thanks a lot,
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Russell Michell

Tuesday 12 August 2008 8:56:47 pm

I managed to fix my issue almost completely by removing all references to PathPrefix and PathPrefixExclude in my settings files and clearing the cache.

However in my admin section, the string 'Root' is now appended to the URL for all subdirectories ('Root' = the ez default 'Home', I just changed the label), but not directories below these. ("Level 3" directories if you like)

Before experiencing this issue, this didn't happen.

However for the now, everything worked as it did prior to the problem best described as that at: http://issues.ez.no/IssueView.php?Id=12785.

If anyone has any further info as to how to <b>totally</b> resolve this, I'd be very much obliged.

Cheers,
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Russell Michell

Tuesday 12 August 2008 9:31:30 pm

OK, I have finally got my database and system back to a semblance of what it was.

After removing any reference to PathPrefix from all config files, I ran

#> php bin/php/updateniceurls.php --update-nodes --interactive -s <siteaccess>

..for <b>both</b> my "front-end" website siteaccess <b>and</b> the admin siteaccess.

It is now back to what it was.

The moral of the story is, don't make critical config changes to your system right after lunch...

Hope this helps someone out sometime.
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Łukasz Serwatka

Wednesday 13 August 2008 12:11:14 am

Hi,

You should give a try with 4.0.1rc2 which has a lot of fixes reg to ml url aliases.
http://ez.no/developer/news/ez_publish_4_0_1rc2_3_10_1rc2_released

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

Russell Michell

Thursday 14 August 2008 3:28:38 pm

Thank you Łukasz.

I upgraded but still experienced a corrupted ezurlalias_ml table. Each time I ran the updateniceurls.php script I ended up with a duplicate entry for one of my three "Level 2" nodes 'Site" (as below)

-+ 'Root'
---- Site
---- Install
---- Site 2

I fixed this by updating the text_md5 column of the corrupted entry with the value of text_md5 of the newer entry (The original entry with an id=2, the newer one had an id=285 or something) and then deleted the original entry.

Running updateniceurls.php again, didn't add a duplicate this time around.

Thanks for the tip, I needed to learn the proper upgrade procedure anyway :-)

Cheers,
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

eZ debug

Timing: Jan 18 2025 15:09:48
Script start
Timing: Jan 18 2025 15:09:48
Module start 'content'
Timing: Jan 18 2025 15:09:49
Module end 'content'
Timing: Jan 18 2025 15:09:49
Script end

Main resources:

Total runtime0.8232 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1406180.8359
Module start 'content' 0.00630.6955 769.9766590.5859
Module end 'content' 0.70180.1214 1,360.5625341.3750
Script end 0.8232  1,701.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4728210.0002
Check MTime0.00150.1763210.0001
Mysql Total
Database connection0.00060.075910.0006
Mysqli_queries0.748190.87552000.0037
Looping result0.00180.21721980.0000
Template Total0.797096.820.3985
Template load0.00200.241520.0010
Template processing0.795096.575320.3975
Template load and register function0.00010.011910.0001
states
state_id_array0.00070.084110.0007
state_identifier_array0.00110.136920.0006
Override
Cache load0.00170.2103540.0000
Sytem overhead
Fetch class attribute can translate value0.00150.183630.0005
Fetch class attribute name0.00110.129370.0002
XML
Image XML parsing0.00140.165330.0005
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00200.2464350.0001
String conversion0.00000.000630.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs