Forums / Developer / Fatal error in the confirmation of payment

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

eZ debug

Timing: Jan 18 2025 05:05:03
Script start
Timing: Jan 18 2025 05:05:03
Module start 'content'
Timing: Jan 18 2025 05:05:04
Module end 'content'
Timing: Jan 18 2025 05:05:04
Script end

Main resources:

Total runtime1.0958 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0180 589.2734180.8125
Module start 'content' 0.01800.8951 770.0859624.9297
Module end 'content' 0.91320.1826 1,395.0156341.6797
Script end 1.0957  1,736.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3887210.0002
Check MTime0.00170.1524210.0001
Mysql Total
Database connection0.01231.121710.0123
Mysqli_queries0.986390.00352050.0048
Looping result0.00250.23062030.0000
Template Total1.050195.820.5250
Template load0.00180.162320.0009
Template processing1.048395.661820.5241
Template load and register function0.00020.022310.0002
states
state_id_array0.00100.094410.0010
state_identifier_array0.00110.096720.0005
Override
Cache load0.00150.1413480.0000
Sytem overhead
Fetch class attribute can translate value0.00140.128340.0004
Fetch class attribute name0.00090.086080.0001
XML
Image XML parsing0.00140.131140.0004
class_abstraction
Instantiating content class attribute0.00000.001690.0000
General
dbfile0.00330.3009340.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs