Forums / Developer / Object patern: not working at all

Object patern: not working at all

Author Message

Jorge estévez

Sunday 28 September 2008 3:09:51 am

ezp 3.10

I have changed the <strong>object pattern</strong> (my site in in spanish, I do not know if this is the right traslated name in english) of a class to:

<product_number> <name> instead of <name>

product_number is also a "text line" datatype but it does not display at all, it always asumes the name as the object name... is this a known bug???

--------------------------

I would like to have also a "object relation", is this possible something like this:

<text line> <text line> <object relation> <text line>

And YES the datatype product_number has values

Thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Tuesday 30 September 2008 3:19:10 am

Any-body-out-there??? I just need some assistance with this
thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

André R.

Tuesday 30 September 2008 6:05:19 am

Did you republish the objects after the change? If there are a lot of them then you need to run update/commom/scripts/updatecontentobjectname.php

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

Jorge estévez

Tuesday 30 September 2008 10:30:17 am

Need further assistance please:

When I try to run the php this appears:

C:\ezserver\php>php E:\sitiosweb\gammae\update\common\scripts\updatecontentobjec
tname.php

Warning: main(lib/ezutils/classes/ezextension.php): failed to open stream: No su
ch file or directory in E:\sitiosweb\gammae\update\common\scripts\updatecontento
bjectname.php on line 30

Warning: main(): Failed opening 'lib/ezutils/classes/ezextension.php' for inclus
ion (include_path='.;c:\php4\pear') in E:\sitiosweb\gammae\update\common\scripts
\updatecontentobjectname.php on line 30

Warning: main(lib/ezutils/classes/ezmodule.php): failed to open stream: No such
file or directory in E:\sitiosweb\gammae\update\common\scripts\updatecontentobje
ctname.php on line 31

Warning: main(): Failed opening 'lib/ezutils/classes/ezmodule.php' for inclusion
 (include_path='.;c:\php4\pear') in E:\sitiosweb\gammae\update\common\scripts\up
datecontentobjectname.php on line 31

Warning: main(lib/ezutils/classes/ezcli.php): failed to open stream: No such fil
e or directory in E:\sitiosweb\gammae\update\common\scripts\updatecontentobjectn
ame.php on line 32

Warning: main(): Failed opening 'lib/ezutils/classes/ezcli.php' for inclusion (i
nclude_path='.;c:\php4\pear') in E:\sitiosweb\gammae\update\common\scripts\updat
econtentobjectname.php on line 32

Warning: main(kernel/classes/ezscript.php): failed to open stream: No such file
or directory in E:\sitiosweb\gammae\update\common\scripts\updatecontentobjectnam
e.php on line 33

Warning: main(): Failed opening 'kernel/classes/ezscript.php' for inclusion (inc
lude_path='.;c:\php4\pear') in E:\sitiosweb\gammae\update\common\scripts\updatec
ontentobjectname.php on line 33

Fatal error: Undefined class name 'ezcli' in E:\sitiosweb\gammae\update\common\s
cripts\updatecontentobjectname.php on line 35

What's wrong?

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

André R.

Wednesday 01 October 2008 1:16:35 am

AS always please read the doc on how to do things, all scripts / cronjobs in eZ Publish must be run from eZ Publish root.

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

eZ debug

Timing: Jan 31 2025 01:28:34
Script start
Timing: Jan 31 2025 01:28:34
Module start 'content'
Timing: Jan 31 2025 01:28:34
Module end 'content'
Timing: Jan 31 2025 01:28:35
Script end

Main resources:

Total runtime0.2056 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.0090 587.9375370.2891
Module start 'content' 0.00900.0135 958.22661,005.6563
Module end 'content' 0.02250.1831 1,963.88283,894.2109
Script end 0.2056  5,858.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00502.4229200.0002
Check MTime0.00150.7443200.0001
Mysql Total
Database connection0.00110.513010.0011
Mysqli_queries0.109153.03141410.0008
Looping result0.00130.62131390.0000
Template Total0.182588.810.1825
Template load0.00080.408410.0008
Template processing0.181788.348510.1817
Override
Cache load0.00060.283510.0006
Sytem overhead
Fetch class attribute can translate value0.00190.911810.0019
XML
Image XML parsing0.00020.102610.0002
General
dbfile0.00602.8985200.0003
String conversion0.00000.002430.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.0002 secs