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?

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 19 2025 11:47:17
Script start
Timing: Jan 19 2025 11:47:17
Module start 'layout'
Timing: Jan 19 2025 11:47:17
Module start 'content'
Timing: Jan 19 2025 11:47:17
Module end 'content'
Timing: Jan 19 2025 11:47:17
Script end

Main resources:

Total runtime0.0141 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.0053 589.1641152.6250
Module start 'layout' 0.00530.0029 741.789139.4609
Module start 'content' 0.00820.0042 781.2500101.4609
Module end 'content' 0.01240.0016 882.710942.3047
Script end 0.0140  925.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.8348140.0002
Check MTime0.00117.5025140.0001
Mysql Total
Database connection0.00096.117010.0009
Mysqli_queries0.002417.090930.0008
Looping result0.00000.106810.0000
Template Total0.00139.510.0013
Template load0.00074.673810.0007
Template processing0.00074.816310.0007
Override
Cache load0.00053.357810.0005
General
dbfile0.00021.546680.0000
String conversion0.00000.066140.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