Forums / Developer / Problems with example code in docs

Problems with example code in docs

Author Message

Arne Skjaerholt

Monday 16 August 2004 4:59:57 am

I'm trying to extend eZ publish a bit, and to begin with I figured that starting with the example code in the docs would be a good idea so that I had something to start with. However, copying and pasting the code according to the text's instrictions doesn't work. Instead I get a module not found error (it appears to be kernel error no. 20). I'm running ezpublish-3.4.1 if it matters.
Does anyone here have any insight into this problem?

Paul Forsyth

Monday 16 August 2004 5:25:29 am

It would help if you stated which documentation page and which piece of code you have trouble with.

paul

--
http://www.visionwt.com

Arne Skjaerholt

Monday 16 August 2004 5:37:58 am

The problems are with these two pages:
http://ez.no/ez_publish/documentation/development/extensions/module/hello_world and http://ez.no/ez_publish/documentation/development/extensions/building_an_ez_publish_module. Also, for what it's worth, I'm running php-4.3.8 (GD compiled in, no ImageMagick) on apache-1.3.31 with a pgsql-7.4.3 backend.

Paul Forsyth

Monday 16 August 2004 6:04:43 am

Before we look into this further can you make sure your file permissions are correct. you need to make sure your web server can read your new files and directories.

paul

--
http://www.visionwt.com

Arne Skjaerholt

Monday 16 August 2004 6:09:46 am

That would be a yes. ls -lR /var/webroot/docs/ezpublish-3.4.1|grep -v apache returns nothing but the dirnames and file counts.

Ole Morten Halvorsen

Monday 16 August 2004 7:11:08 am

When creating a new module you will have to give users permissions to use it. This is done from the admin interface.

Do you get the same error message if you login as admin before accessing your new module?

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Arne Skjaerholt

Monday 16 August 2004 7:13:26 am

Trying to open localhost/index.php/plain_admin/euroxfref/overview gives me the same error message. Also, the module doesn't show up in the admin panel as far as I can see.

Ole Morten Halvorsen

Monday 16 August 2004 7:59:29 am

Did you create this module inside an extension? If so, does your extension show up in http://localhost/index.php/plain_admin/setup/extensions ? If it doesn't your extension has not been activated properly.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Arne Skjaerholt

Tuesday 17 August 2004 5:02:44 am

and the checkboxes next to them were uncheked (marking them as unactivated I think). Checking the boxes and retrying the euroxfref page didn't work, even after cleaaring all the caches.

Jianjun Hu

Tuesday 03 July 2007 7:10:28 pm

Environments:

OS: Linux
PHP: 4.4.7
MySQL: 5.0.18
Apache: 2
eZ Publish 3.9.2

I'm trying <b>Building an eZ publish module</b> at :

http://ez.no/ezpublish/documentation/development/extensions/building_an_ez_publish_module

I do the following steps:

Download the source code
Upload the source code to server
Activate the extension eurofxref
Clear all the cache

When I pointed my browser to

http://www.mydomain.com/index.php?/chi/eurofxref/overview

the following error message page displays:

Fatal error: Call to a member function on a non-object in /home/mydomain/extension/eurofxref/modules/eurofxref/classes/eurofxref.php on line 16
Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

The <b>line 16</b> of <b>eurofxref.php</b> is:

$fxArray =& $dom->elementsByName( 'Cube' );

When I comment out the <b>line 16</b> of <b>eurofxref.php</b>, the Euro Exchange Rates page displays but without Euro Exchange Rates data in the table.

Euro Exchange Rates
Euro foreign exchange reference rates
Date: Tuesday, 2007.07.03

Currency 	Value

Source: European Central Bank

Any help would be appreciated!

Thanks!

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

eZ debug

Timing: Jan 19 2025 21:16:21
Script start
Timing: Jan 19 2025 21:16:21
Module start 'content'
Timing: Jan 19 2025 21:16:23
Module end 'content'
Timing: Jan 19 2025 21:16:23
Script end

Main resources:

Total runtime1.5049 sec
Peak memory usage4,096.0000 KB
Database Queries219

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.9766180.8281
Module start 'content' 0.00681.3121 769.8047693.8984
Module end 'content' 1.31900.1858 1,463.7031344.4297
Script end 1.5048  1,808.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.2950210.0002
Check MTime0.00150.1028210.0001
Mysql Total
Database connection0.00090.057110.0009
Mysqli_queries1.419494.31862190.0065
Looping result0.00230.14992170.0000
Template Total1.472597.820.7363
Template load0.00200.132220.0010
Template processing1.470597.716420.7353
Template load and register function0.00020.010410.0002
states
state_id_array0.00130.086310.0013
state_identifier_array0.00200.133420.0010
Override
Cache load0.00180.1166500.0000
Sytem overhead
Fetch class attribute can translate value0.00140.094450.0003
Fetch class attribute name0.00110.0705110.0001
XML
Image XML parsing0.00240.162250.0005
class_abstraction
Instantiating content class attribute0.00000.0013110.0000
General
dbfile0.00450.2969270.0002
String conversion0.00000.000330.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs