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 »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • Problem installing Flo2cash payment processor
Pages: [1]

Author Topic: Problem installing Flo2cash payment processor  (Read 1964 times)

websynapse

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 3
    • Ryan Kennedy
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6
Problem installing Flo2cash payment processor
August 15, 2011, 08:23:15 pm
I've installed the files at http://issues.civicrm.org/jira/browse/CRM-6157 - the Flo2cashDonate ones - on CivICRM 3.4.5

Once enabled on a page, the site gives this error:

Code: [Select]
Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/www/vhosts/campaign.org.nz/httpdocs/sites/all/modules/civicrm/CRM/Core/Payment.php on line 102
Line 102 in CRM/Core/Payment.php is

Code: [Select]
require_once 'CRM/Core/Extensions.php';
Has anyone used this module/had this problem?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Problem installing Flo2cash payment processor
August 16, 2011, 12:19:59 am
The problem will be that a once optional function in the payment processors became compulsory when the new extension framework was introduced & it won't have been added to Flo2Cash yet
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Problem installing Flo2cash payment processor
August 16, 2011, 12:59:13 am
Are you referring to the singleton function mentioned at the bottom of http://wiki.civicrm.org/confluence/display/CRMDOC40/Creating+A+Payment+Processor+Extension ?

(I wouldn't expect a missing function to result in a PHP script timeout. But you have more recent experience of the API changes than I do!)
@xurizaemon ● www.fuzion.co.nz

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Problem installing Flo2cash payment processor
August 16, 2011, 01:54:56 am
It's not related to the API & yes that's the function - not sure why but it does cause a problem. Probably because if the function isn't in the processor it defaults to the parent function which presumably is flawed
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Problem installing Flo2cash payment processor
August 16, 2011, 02:57:52 pm
For Ryan's issue, this appears to have been fixed with set_time_limit() in civicrm.settings.php.

He was reporting this issue on CiviCRM 3.4.5, according to the docs the singleton method is only required >= 4.0.
@xurizaemon ● www.fuzion.co.nz

websynapse

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 3
    • Ryan Kennedy
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6
Re: Problem installing Flo2cash payment processor
August 16, 2011, 03:06:47 pm
Thanks Chris, I see you set it to set_time_limit(120);

Now I'm getting this error:

Code: [Select]
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4864 bytes) in /usr/local/www/vhosts/campaign.org.nz/httpdocs/sites/all/modules/civicrm/CRM/Core/Payment.php(113) : eval()'d code on line 1
memory limit is set to 64MB, shouldn't that be enough?

Code: [Select]
if ($memLimit >= 0 and $memLimit < 67108864) {
    ini_set('memory_limit', '64M');
}

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: Problem installing Flo2cash payment processor
August 16, 2011, 05:10:24 pm

3.4 and 4.0 are basically the same code base

can you fix the docs and add the singleton function.  hopeflly that will fix the issue

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • Problem installing Flo2cash payment processor

This forum was archived on 2017-11-26.