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

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 18:13:46
Script start
Timing: Jan 18 2025 18:13:46
Module start 'layout'
Timing: Jan 18 2025 18:13:46
Module start 'content'
Timing: Jan 18 2025 18:13:48
Module end 'content'
Timing: Jan 18 2025 18:13:48
Script end

Main resources:

Total runtime1.2628 sec
Peak memory usage4,096.0000 KB
Database Queries93

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 588.1406152.6406
Module start 'layout' 0.00810.0055 740.781339.4766
Module start 'content' 0.01371.2475 780.2578795.0781
Module end 'content' 1.26120.0015 1,575.335928.1094
Script end 1.2627  1,603.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3267160.0003
Check MTime0.00180.1401160.0001
Mysql Total
Database connection0.00130.105410.0013
Mysqli_queries1.144890.6611930.0123
Looping result0.00100.0814910.0000
Template Total1.204495.420.6022
Template load0.00340.269320.0017
Template processing1.201095.105520.6005
Template load and register function0.00020.015110.0002
states
state_id_array0.00160.130410.0016
state_identifier_array0.00220.173020.0011
Override
Cache load0.00320.25191100.0000
Sytem overhead
Fetch class attribute can translate value0.00080.066950.0002
Fetch class attribute name0.00170.1351160.0001
XML
Image XML parsing0.00190.147050.0004
class_abstraction
Instantiating content class attribute0.00000.0020170.0000
General
dbfile0.00130.0995300.0000
String conversion0.00000.000840.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
13content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
31content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 70
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs