Fatal error in the confirmation of payment

Author Message

Kruglova Natasha

Tuesday 28 July 2009 10:05:19 pm

Good day.

Please help me.
I setup payment gateway IB 2Checkout on different versions of eZ publish. Version 4.1.3 - works. Version 4.1.1 does not work.
At the time of payment (3 step "Confirm order" in the confirmation of payment), you receive an error message:
<i>Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.</i>

Please tell me where to correct this error.

Heath

Tuesday 28 July 2009 10:15:44 pm

Hello Kruglova Natasha,

I recently helped another community member with a similar problem.

In order to more accurately deduce the actual problem at runtime we recommended the following.

- Try setting php.ini setting value: error_reporting = E_ALL
- Try setting php.ini: display_errors = On
- You may even wish to try setting php.ini: display_startup_errors = On
- You will be given additional information if you tail all ezpublish and httpd logs regarding the error.
- You may wish to restart httpd to be certain to process your modified php.ini

I hope this helps. We were able to do this on another vps server to solve an ezpublish installation which was in the end missing ezcomponents libraries (and php.ini include_path settings changes) and required a regeneration of the autoloads.

I suspect this is a common occurrence for others as well.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

James

Tuesday 28 July 2009 10:25:30 pm

Remember to remove all those php.ini settings changes after you figure out and address the actual error umm you know for proper performance or something along with display errors shows php errors to web browsers or something.

Cheers,
James

Kruglova Natasha

Tuesday 28 July 2009 11:07:04 pm

Heath, I did as you recommended.

Now the message is displayed:
<i>Fatal error: Call to a member function attribute() on a non-object in /var/www/dima/data/www/midisa.org/extension/ib2checkout/classes/ib2checkoutgateway.php on line 116
Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.</i>

Code from line 110 to 121

     foreach( $productItems as $index =>$item )
      {
          $it_object=$item['item_object'];
	        $contentObject=$item['item_object']->attribute('contentobject');
	        $objectDataMap = $contentObject->attribute('data_map');
          $productNumberAttribute=$objectDataMap['product_number'];
          $productNumber = $productNumberAttribute->attribute('data_text');
	        $quantity = $item['item_count'];

          if ($index>0) $ind = $index + 1; else $ind = "";
          $products = $products."&product_id".$ind."=".$productNumber."&quantity".$ind."=".$quantity;
      }

Please help correct the error.

Kruglova Natasha

Tuesday 28 July 2009 11:43:08 pm

Thank for your help.

This was my error.
I in the class and in the template shop removed аttribute "product_number".

Now everything works.

Heath

Tuesday 28 July 2009 11:44:25 pm

Congratulations :)

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.