Support

Home Forums Event Espresso Premium Error when trying to pay via iDeal payment gateway

Error when trying to pay via iDeal payment gateway

Posted: July 19, 2012 at 8:10 am


jvanoostveen

July 19, 2012 at 8:10 am

When trying to pay via the iDeal by Mollie payment gateway we get the following error:

enter image description here

Warning: require_once(/var/www/materiamic/materia-ic.nl/wp-content/plugins/event-espresso//gateways//init.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/materiamic/materia-ic.nl/wp-content/plugins/event-espresso/includes/functions/main.php on line 1050

Fatal error: require_once() [function.require]: Failed opening required '/var/www/materiamic/materia-ic.nl/wp-content/plugins/event-espresso//gateways//init.php' (include_path='.:/usr/local/share/pear') in /var/www/materiamic/materia-ic.nl/wp-content/plugins/event-espresso/includes/functions/main.php on line 1050

This was working before upgrading to the latest (3.1.24.3.P) version of Event Espresso. I see that there is a difference on line 8 and 12 of the file /wp-content/event-espresso/gateways/ideal/init.php, but I cannot figure out why I am getting this error.

  • This topic was modified 11 years, 9 months ago by  jvanoostveen.


Josh

  • Support Staff

July 19, 2012 at 8:34 am

Can you try deactivating and reactivating the iDeal gateway on the payments setting screen?


jvanoostveen

July 19, 2012 at 8:59 am

Hi Josh, I have deactivated and reactivated the iDeal gateway several times, but unfortunately this does not help.

Note that I am also using the PayPal gateway which is working without any issues, the iDeal gateway is not working though.


Josh

  • Support Staff

July 19, 2012 at 10:05 am

We’re working on a fix and are testing it right now.


Josh

  • Support Staff

July 19, 2012 at 10:33 am

The fix appears to be working. Here are the changes:

in /gateways/process_payments.php change the deal with ideal function (starting on line 164) from:

function deal_with_ideal() {
    if (!empty($_POST['bank_id'])) {
        $active_gateways = get_option('event_espresso_active_gateways', array());
        if (!empty($active_gateways['ideal'])) {
            event_espresso_require_gateway($gateway . '/init.php');
            $payment_data['attendee_id'] = apply_filters('filter_hook_espresso_transactions_get_attendee_id', '');
            espresso_process_ideal($payment_data);
        }
    }
}

to:

function deal_with_ideal() {
    if (!empty($_POST['bank_id'])) {
        $active_gateways = get_option('event_espresso_active_gateways', array());
        if (!empty($active_gateways['ideal'])) {
            foreach ($active_gateways as $gateway => $path) {
                event_espresso_require_gateway($gateway . "/init.php");
            }
            $payment_data['attendee_id'] = apply_filters('filter_hook_espresso_transactions_get_attendee_id', '');
            espresso_process_ideal($payment_data);
        }
    }
}

Then in /includes/functions/main.php change line 1028 from:

event_espresso_require_file($template_file_name, EVENT_ESPRESSO_GATEWAY_DIR . '/', EVENT_ESPRESSO_PLUGINFULLPATH . '/gateways/', $must_exist, $as_require_once); 

to:

event_espresso_require_file($template_file_name, EVENT_ESPRESSO_GATEWAY_DIR . '/', EVENT_ESPRESSO_PLUGINFULLPATH . 'gateways/', $must_exist, $as_require_once);


jvanoostveen

July 19, 2012 at 2:48 pm

Thanks! It seems to be working now! I will do some further testing tomorrow, but so far all looks good 🙂


Josh

  • Support Staff

July 20, 2012 at 1:25 pm

The above changes were released as part of Event Espresso 3.1.25.P

The support post ‘Error when trying to pay via iDeal payment gateway’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso