Forums / Developer / ezpublish 4.0.0, repair url, updateniceurl doesn't work.

ezpublish 4.0.0, repair url, updateniceurl doesn't work.

Author Message

florian bellenger

Wednesday 03 December 2008 6:53:38 am

Hi,

I don't know how this happened, but the consistency of the url_alias of my website is broken.

So, I tried to use bin/php/updateniceurl.php to repair.it.

But it doesn't work because it can't find "autoload.php"

Where is this file supposed to be? Which one do I have to use?

Thanks,

Florian.

florian bellenger

Wednesday 03 December 2008 9:34:12 am

I found a file "autoload.php" and tried to use it.

Now, I have an other problem. I try to use ."..updateniceurls.php -s Mysiteaccess" but Mysiteaccess is not recognized.

it says "using default siteacccess".

How could I know what is used as a "default siteaccess"?

Florian.

Stéphane Bullier

Wednesday 03 December 2008 12:25:54 pm

Hello,
You can use this option to see the doc :

php bin/php/updateniceurls.php -h

and you can read

 -s,--siteaccess  selected siteaccess for operations, if not specified default siteaccess is used

An advice, upgrade to 4.0.1 to correct your problem of url.

Good luck.

Stéphane

florian bellenger

Thursday 04 December 2008 8:20:11 am

Thank you for your help,

I'm trying to specify a siteaccess with

php [...]\bin\php\updateniceurls.php --siteaccess=fre

it returns ''Siteaccess fre doesn't exist, using default siteaccess".

But the folder "settings\siteaccess\fre" exists

On an other hand, is updateniceurls supposed to retrieve the databaseSettings from the fre/site.ini.append.php file? (or at least from the [default siteaccess]/site.ini.append.php) file.

Do I have to specify the databaseSettings with something like

php [...]\bin\php\updateniceurls.php --db-user=xxx --db-password='yyy --db-host= zzz --db-database=aaa


(but apparently, it's impossible to use --db-host= zzz )

I truncated the table "ezurlalias_ml" table and I want to populate it with the urls from content object nodes. (I made a copy of my database before)

Do I have to import them with --import-aliases or use an other options?

for the moment, $dbname, $dbPassword, $dbhost, $dbUser ... are empty.

Florian..

André R.

Thursday 04 December 2008 9:31:13 am

That should be

php [...]\bin\php\updateniceurls.php --siteaccess fre

Ps: As mentioned above, 4.0.1/3.10.1 fixes many (so far all) url alias issues that where introduced in 4.0.0/3.10.0.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

florian bellenger

Thursday 04 December 2008 10:15:24 am

I tried that

php [...]\bin\php\updateniceurls.php --siteaccess fre

first but it doesn't work (error message : "option '--siteaccess' requires an argument ")

For the moment, I am not allowed to upgrade, to 4.0.1.

For me, that's (only) the long-term solution (or maybe I will upgrade to ezpublish 4.1).

Do you mean I can't solve my problem with ezpublish 4.0.0/updateniceurls?

Florian.

 

florian bellenger

Tuesday 09 December 2008 1:33:14 am

Well, I try to execute the script from an other directory and it's worked.

Thank you very much for your help.

Florian.

(D'ont worry, I won't forget to update my ezpublish.)

B. Nkengsong

Sunday 04 January 2009 7:59:13 am

Hello,
The problem is quite serious for me.

Take it. I have these urls. http://subdom.example.com which points to http://www.example.com/subfold. I've configured an A DNS record like this

subdom.dom.tld A  14400 xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is the IP address of the host.

<b>My site.ini.append.php is like follows </b>

[SiteSettings]
DefaultAccess=fre
SiteURL=www.example.com/subfold/index.php?

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=home
AvailableSiteAccessList[]=fre
AvailableSiteAccessList[]=esl
MatchOrder=uri
HostMatchMapItems[]
HostMatchSubtextPost=.example.com
HostMatchRegexp=^(.+)\.example\.com$

But the site has many displaying problems as CSS's @import URL do not work. I dont see why according to the ez publish documentation. But i still there.

Please, can anyone help me on that ?
Thank you
Beegee

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

Heath

Sunday 04 January 2009 8:36:11 am

<i>@Blaise-Gilbert</i>

You provided some good information for debugging the problem.

Could you also provide an example of the CSS @import urls which are not working for you.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

B. Nkengsong

Sunday 04 January 2009 8:58:52 am

Hello Health,

thank you for this quick reply.

@import url(/ezp-root-folder/extension/ezwebin/design/ezwebin/stylesheets/pagelayout.css);
@import url(/ezp-root-folder/extension/ezwebin/design/ezwebin/stylesheets/content.css);
@import url(/ezp-root-folder/extension/ezwebin/design/ezwebin/stylesheets/websitetoolbar.css);
@import url("/extension/topdrop/design/standard/stylesheets/dropdown.css"); 
...

is the example of a not seeing CSS.

Thank you
Beegee

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

B. Nkengsong

Sunday 04 January 2009 9:09:20 am

Hello,

Another thing is how to run the

 updateniceurls.php 

script throw the cpanel ?

Thank you
Beegee

 

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

Heath

Sunday 04 January 2009 9:34:06 am

<i>@Blaise-Gilbert</i>

- Can you load the css urls manually (with http://example.com) does the css load?
- Are you using nice urls and have you checked your mod_rewrite rules in your virtual host or .htaccess to ensure they allow the css files to load.
- I have never seen a way in Cpanel to run the scripts save command line / shell terminal access.

<i>[0] http://ez.no/doc/ez_publish/technical_manual/4_0/installation/virtual_host_setup/virtual_host_example
[1] http://pubsvn.ez.no/nextgen/trunk/.htaccess_root
</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

B. Nkengsong

Sunday 04 January 2009 9:56:48 am

Hello Health,

The css do not load with the @import url. I know if i load them manually, it will work. Instead, i think the problem is to find in the .htaccess (which is desactivated now !).

- Another thing. Can i change from the URL mode of urls display to the virtual host mode after the installation is completed and the site working ? Because, in the Vhost mode, urls are niciest the security is increased.

For the shell, i'm working on windows and i don't know how i can access to the shell via windows. I will ask the question to the server administrator.

Thank you Health for your disponibility
Beegee

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

eZ debug

Timing: Jan 30 2025 22:24:50
Script start
Timing: Jan 30 2025 22:24:50
Module start 'content'
Timing: Jan 30 2025 22:24:50
Module end 'content'
Timing: Jan 30 2025 22:24:50
Script end

Main resources:

Total runtime0.1979 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.0781370.2734
Module start 'content' 0.00620.0130 958.35161,021.7344
Module end 'content' 0.01930.1785 1,980.08593,909.8359
Script end 0.1978  5,889.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00412.0640200.0002
Check MTime0.00130.6612200.0001
Mysql Total
Database connection0.00060.304310.0006
Mysqli_queries0.106253.69071410.0008
Looping result0.00150.73581390.0000
Template Total0.178190.010.1781
Template load0.00070.336710.0007
Template processing0.177489.682910.1774
Override
Cache load0.00040.223910.0004
Sytem overhead
Fetch class attribute can translate value0.00170.849110.0017
XML
Image XML parsing0.00030.130910.0003
General
dbfile0.00753.7960200.0004
String conversion0.00000.002030.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs