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.