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: kim@webdeal.no - 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: kim@webdeal.no - 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: kim@webdeal.no - 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.

eZ debug

Timing: Jan 31 2025 04:28:48
Script start
Timing: Jan 31 2025 04:28:48
Module start 'layout'
Timing: Jan 31 2025 04:28:48
Module start 'content'
Timing: Jan 31 2025 04:28:48
Module end 'content'
Timing: Jan 31 2025 04:28:48
Script end

Main resources:

Total runtime0.0148 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.0313151.1953
Module start 'layout' 0.00470.0029 739.226636.6172
Module start 'content' 0.00760.0059 775.8438106.2500
Module end 'content' 0.01350.0013 882.093845.9922
Script end 0.0148  928.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.5505140.0002
Check MTime0.00117.2895140.0001
Mysql Total
Database connection0.00063.892010.0006
Mysqli_queries0.002919.437730.0010
Looping result0.00000.075510.0000
Template Total0.00106.510.0010
Template load0.00085.051310.0008
Template processing0.00021.454710.0002
Override
Cache load0.00063.750710.0006
General
dbfile0.001912.878780.0002
String conversion0.00000.048240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs