Forums / Setup & design / Update Nice urls

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.

eZ debug

Timing: Jan 31 2025 00:41:35
Script start
Timing: Jan 31 2025 00:41:35
Module start 'content'
Timing: Jan 31 2025 00:41:35
Module end 'content'
Timing: Jan 31 2025 00:41:35
Script end

Main resources:

Total runtime0.1974 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.0087 587.8281370.3047
Module start 'content' 0.00870.0163 958.13281,017.6094
Module end 'content' 0.02490.1725 1,975.74223,905.4141
Script end 0.1974  5,881.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00482.4307200.0002
Check MTime0.00140.6896200.0001
Mysql Total
Database connection0.00100.502010.0010
Mysqli_queries0.101651.46951410.0007
Looping result0.00130.63711390.0000
Template Total0.172187.210.1721
Template load0.00080.411210.0008
Template processing0.171386.739310.1713
Override
Cache load0.00050.271910.0005
Sytem overhead
Fetch class attribute can translate value0.00180.912110.0018
XML
Image XML parsing0.00020.124010.0002
General
dbfile0.00834.2171200.0004
String conversion0.00000.003430.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.0001 secs