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.

eZ debug

Timing: Jan 30 2025 21:38:39
Script start
Timing: Jan 30 2025 21:38:39
Module start 'layout'
Timing: Jan 30 2025 21:38:39
Module start 'content'
Timing: Jan 30 2025 21:38:39
Module end 'content'
Timing: Jan 30 2025 21:38:39
Script end

Main resources:

Total runtime0.0241 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2656151.2266
Module start 'layout' 0.00470.0038 739.4922220.7188
Module start 'content' 0.00850.0141 960.21091,005.9609
Module end 'content' 0.02260.0015 1,966.171937.9922
Script end 0.0241  2,004.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.4202140.0002
Check MTime0.00114.6542140.0001
Mysql Total
Database connection0.00104.185010.0010
Mysqli_queries0.00177.070230.0006
Looping result0.00000.045410.0000
Template Total0.00114.610.0011
Template load0.00083.421510.0008
Template processing0.00031.172410.0003
Override
Cache load0.00062.348810.0006
General
dbfile0.00166.826280.0002
String conversion0.00000.034640.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