Update Nice urls

Author Message

Softriva .com

Thursday 08 June 2006 4:51:16 am

I am running Linux (Ubuntu). How can I run the php script

updateniceurls.php

from the command line?

OOzy

Łukasz Serwatka

Thursday 08 June 2006 5:04:33 am

From eZ publish root directory run command:

$ php update/common/scripts/updateniceurls.php -s your_site_access

Try with -h option for more info.

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

Kim Johansen

Thursday 08 June 2006 5:10:52 am

To run php from commandline you need to install php4-cli.

You can run it in this way:
bash> php update/common/scripts/updateniceurls.php

or

bash> ./update/common/scripts/updateniceurls.php

--
Med vennlig hilsen / Best regards

Kim Johansen - WebDeal AS
Teknologiveien 22 - 2815 Gjøvik - NORWAY
Phone: +47 61 13 16 50 - ICQ: 262860894
E-mail: [email protected] - URL: www.webdealhosting.com

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

Softriva .com

Thursday 08 June 2006 8:22:00 am

I installed php4-cli and ran the script but I got the following warnings/errors

Warning: main(lib/ezutils/classes/ezcli.php): failed to open stream: No such file or directory in /var/www/html/ez/update/common/scripts/updateniceurls.php on line 35

Warning: main(): Failed opening 'lib/ezutils/classes/ezcli.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/ez/update/common/scripts/updateniceurls.php on line 35

Warning: main(kernel/classes/ezscript.php): failed to open stream: No such file or directory in /var/www/html/ez/update/common/scripts/updateniceurls.php on line 36

Warning: main(): Failed opening 'kernel/classes/ezscript.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/ez/update/common/scripts/updateniceurls.php on line 36

Fatal error: Undefined class name 'ezcli' in /var/www/html/ez/update/common/scripts/updateniceurls.php on line 38

Can you help?

Kim Johansen

Thursday 08 June 2006 8:53:13 am

Did you run the script from ez-publish root directory?

bash> cd /var/www/html/ez/
bash> php update/common/scripts/updateniceurls.php

--
Med vennlig hilsen / Best regards

Kim Johansen - WebDeal AS
Teknologiveien 22 - 2815 Gjøvik - NORWAY
Phone: +47 61 13 16 50 - ICQ: 262860894
E-mail: [email protected] - URL: www.webdealhosting.com

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

Softriva .com

Thursday 08 June 2006 9:02:45 am

You bet. I did it from the hear of ez

/var/www/html/ez/update/common/scripts$ sudo php updateniceurls.php

even if I remove sudo

Kim Johansen

Thursday 08 June 2006 9:10:37 am

You need to do it from /var/www/html/ez/

do this in shell:
cd /var/www/html/ez/
php update/common/scripts/updateniceurls.php

--
Med vennlig hilsen / Best regards

Kim Johansen - WebDeal AS
Teknologiveien 22 - 2815 Gjøvik - NORWAY
Phone: +47 61 13 16 50 - ICQ: 262860894
E-mail: [email protected] - URL: www.webdealhosting.com

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

Softriva .com

Thursday 08 June 2006 9:33:59 am

I did it as you said but I got a different error:

/var/www/html/ez$ php update/common/scripts/updateniceurls.php
Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

Łukasz Serwatka

Thursday 08 June 2006 12:59:19 pm

For detailed debug output run with -dall option, make sure that -s option is used. If not specify database parameters run with -h option for more details.

Try with:

$ php update/common/scripts/updateniceurls.php -dall -s your_site_access_name

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

Hapee de Groot

Thursday 29 June 2006 6:34:04 am

Hope we can continue on this, I got the same fatal errors updating from 3.6-1 to 3.8-0 and the dall options does not help me a lot:

Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.
No timing points defined
Group ini_load:
Load cache: 0.0025 sec (6.9996%), 0.0013 avg sec (2)
FindInputFiles: 0.0008 sec (2.2830%), 0.0004 avg sec (2)

Total script time: 0.0364 sec

does this provide any usefull information?

Kristof Coomans

Tuesday 04 July 2006 2:57:04 am

Hi Hapee

Did you enable display_errors ( http://www.php.net/manual/en/ref.errorfunc.php#ini.display_errors ) in php.ini? Additionally, set error_reporting level ( http://www.php.net/manual/en/ref.errorfunc.php#ini.error-reporting ) to E_ALL.

Then any PHP errors should show up in the debug output of the script.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Siniša Šehović

Tuesday 04 July 2006 3:02:38 am

Hi OOzy

You should check if your php files have "^M" chars at the end of each line!

If you have it then erase it.

I have had this problem with my files.

After converting files to UNIX type problem was gone.

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.