Path

ez projects / ezauthorize / forum / general / [ez4.3] ini update / errors...


[eZ4.3] ini update / errors - incompatible with 4.3?

You need to be logged in to post messages in the forums. New users may register here.

Paul Wilson

Paul Wilson

Member since:
09 January 2008

Posts: 7

Friday 07 May 2010 5:12:23 am

Hi,

I've not got this extension working yet. I'll explain an extra install step needed and the errors I'm getting. I'm using ezauthorize version 1.4 (from SVN).

(1) Install Step #####
I think there needs to be an extra ini setting / file created to get this extension (closer to) working.

In the folder /ezauthorize/settings/, add a file "paymentgateways.ini.append.php" with the following content:




<?php /* #?ini charset="utf-8"?


[GatewaysSettings]


AvailableGateways[]=ezauthorize


*/ ?>




This registers the ezauthorize extension with eZ Publish as an available paymentgateway. Without this setting, eZ does not call up the extension to handle payment.

(2) Errors #####
I haven't got the extension working ... looking at eZ debug for the shop/checkout page, it shows the following:




...


Strict: PHP: E_STRICT  May 07 2010 12:22:11


 

Declaration of eZCurlGateway::execute() should be compatible with that of eZPaymentGateway::execute() in /myezsite/extension/ezauthorize/classes/ezcurlgateway.php on line 50


 

Warning: PHP: E_WARNING         May 07 2010 12:22:11


 

include_once(lib/ezxml/classes/ezxml.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in myezsite/extension/ezauthorize/classes/ezauthorizegateway.php on line 42


 

Warning: PHP: E_WARNING         May 07 2010 12:22:11


 

include_once() [<a href='function.include'>function.include</a>]: Failed opening 'lib/ezxml/classes/ezxml.php' for inclusion (include_path='./lib/ezc:.:/usr/local/php5/lib/php:myezsite') in myezsite/extension/ezauthorize/classes/ezauthorizegateway.php on line 42


...




Hope that helps
-Paul

Up

Paul Wilson

Paul Wilson

Member since:
09 January 2008

Posts: 7

Thursday 13 May 2010 3:27:26 pm

Update ...

I'm trying to use version 1.4 and it seems pretty clear that it's not compatible with eZ 4.3.

The extension relies on eZXML which is deprecated (as of eZ4.0?). For example, in ezcurlgateway.php - createDOMTreefromArray and createArrayfromXML functions.

Some of the changes needed can be seen in eZPedia: http://ezpedia.org/es/learning/mi..._from_the_ezxml_library_to_php_5_dom

There's also some old code that needs to be updated for more recent versions of eZ. For example, ezauthorizegateway.php (loadForm function, around line 176).




       // OLD: return EZ_WORKFLOW_TYPE_STATUS_FETCH_TEMPLATE_REPEAT;


       // New:


        return eZWorkflowType::STATUS_FETCH_TEMPLATE_REPEAT;




-Paul
Up

// Heath

Member since:
04 March 2007

Posts: 94

Friday 22 October 2010 1:54:11 am

Hello Paul,

Thank you for your valuable feedback.

Apologies for the lateness of my reply.

We had not previously received requests for an update to the ezauthorize extension.

I am happy announce that I have made a number of eZ Publish 4.3 compatiblity changes to the extensions svn trunk. I suggest strongly that you should checkout the svn trunk copy which has more recent updates than the packaged downloads.

One point the settings file you claim is missing is not missing in fact, http://svn.projects.ez.no/ezautho...tings/paymentgateways.ini.append.php

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
GitHub | https://github.com/brookinsconsulting
eZpedia community documentation project | http://ezpedia.org
eZecosystem - eZ Publish Planet | http://ezecosystem.org
eZPublishLegacy - eZ Publish Release Mirror | http://ezpublishlegacy.com

Up

You need to be logged in to post messages in the forums. New users may register here.