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