CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Contribution form using Paypal has Fatal Error
Pages: [1]

Author Topic: Contribution form using Paypal has Fatal Error  (Read 1456 times)

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Contribution form using Paypal has Fatal Error
October 09, 2012, 06:25:07 am
Here's the issue: This occurs when I try to complete the contribution process and send the details to Paypal.

Fatal error: Call to a member function doDirectPayment() on a non-object in/home/magichour/www/www/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/Contribution/Utils.php on line 210

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Contribution form using Paypal has Fatal Error
October 09, 2012, 06:26:18 am
Here is line 210 of the utils.php file

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Contribution form using Paypal has Fatal Error
October 09, 2012, 08:35:50 am
I've tested with Google Checkout as well and the same error appears.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contribution form using Paypal has Fatal Error
October 09, 2012, 09:58:48 am

This issue has been reported and is currently being fixed for 4.2.3

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Contribution form using Paypal has Fatal Error
October 09, 2012, 10:05:03 am
Quote from: Donald Lobo on October 09, 2012, 09:58:48 am

This issue has been reported and is currently being fixed for 4.2.3

lobo

Excellent! An answer to prayer, literally. Do you know when 4.2.3 is scheduled for release?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contribution form using Paypal has Fatal Error
October 09, 2012, 10:43:32 am

sometime in the next week or so.

in the meantime u might want to test on the demo servers to ensure that the bug is really fixed

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Contribution form using Paypal has Fatal Error
October 09, 2012, 11:25:10 am
That's great! I still fear that my Wordpress theme might be causing the issue. I don't get this error when I switch over to the default Wordpress theme.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contribution form using Paypal has Fatal Error
October 09, 2012, 11:47:46 am

hmm, in that case this might be a different bug and 4.2.3 might not help

please do report back when u find out what is happening in your theme that breaks thing with civi

good luck

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

alandarm

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Contribution form using Paypal has Fatal Error
October 09, 2012, 12:33:49 pm
The theme developer instructed me to remove some code from one of the theme files. It worked!!! I don't know why, or how. Maybe someone smarter than me can figure it out.

Code: [Select]
// Remove the 2 main auto-formatters
    remove_filter('the_content', 'wpautop');
    remove_filter('the_content', 'wptexturize');

// Before displaying for viewing, apply this function
    add_filter('the_content', 'webtreats_formatter', 99);
    add_filter('widget_text', 'webtreats_formatter', 99);

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Contribution form using Paypal has Fatal Error

This forum was archived on 2017-11-26.