Support

Home Forums Event Espresso Premium Paypal Error on checkout

Paypal Error on checkout

Posted: July 16, 2014 at 2:21 am

Viewing 14 reply threads


Deanne Goddard

July 16, 2014 at 2:21 am

I want to use the standard paypal functionality.

I get the following on checkout:

Payment Overview

Elliot Taylor,

Your registration is not complete until payment is received.

Amount due: £1,995.00

Your Registration ID: 7-53c6356351764

Please choose a payment option

Fatal error: Class ‘EE_Paypal’ not found in /home/xxxxx/public_html/xxxxx/wp-content/plugins/event-espresso/gateways/paypal/paypal_vars.php on line 7

I have updated the Event Espresso to 3.1.36.5.P

I have also tested using the 2014 theme

Please can you advise.

Many Thanks

Elliot


Deanne Goddard

July 16, 2014 at 2:44 am

If I edit /gateways/paypal/init.php to include the following line of code:

event_espresso_require_gateway("paypal/Paypal.php");

Then the payment gateway works. However if it is on a non-checkout page then we get the following error:

Fatal error: Class ‘Espresso_PaymentGateway’ not found in /home/xxxx/public_html/xxxx/wp-content/plugins/event-espresso/gateways/paypal/Paypal.php on line 10


Dean

July 16, 2014 at 3:26 am

Hi,

The site we have on file for you is running EE 3.1.29.1.P, can you clarify the correct site please? Or update the plugin.

Have you modified the plugin in any way, especially the gateways?


Deanne Goddard

July 16, 2014 at 8:23 am

Hi Dean – I’m testing on a staging server to fix this issue. On that site I have 3.1.36.5.P. I have not modified the plugin at all, except earlier as documented above to try and fix.

I can give you access to this if you provide a private email.

Thanks


Lorenzo Orlando Caum

  • Support Staff

July 16, 2014 at 11:14 am

Hi Elliot,

Please try a reinstall of your EE3 software on the staging site. Begin by backing up your WordPress:

https://codex.wordpress.org/WordPress_Backups

Next, download the latest version of your Event Espresso software from your account:

https://eventespresso.com/users/ncfed/

Now login to your WordPress admin and go to Plugins. Locate Event Espresso in the list of plugins and deactivate it.

Next login to your WordPress root with an SFTP or FTP client (FileZilla and Cyberduck are free options). Then browse to the WordPress plugins folder: wp-content/plugins

Locate the Event Espresso folder and relocate it one level above the WordPress plugins folder and add old to the end of the folder name: wp-content/event-espresso-old

Return to the Plugins screen in the WordPress admin and click on Add New –> Upload. Then browse to the zip file that you downloaded from your account. Select it and begin the upload process. You can activate Event Espresso after it has finished.

Next, try to test again with PayPal and let us know if this works.


Lorenzo


Deanne Goddard

July 16, 2014 at 12:57 pm

Hi Lorenzo

Thanks for the reply.

I can confirm I have followed those steps and the problem persists.

Please advise – Thanks

Elliot


Lorenzo Orlando Caum

  • Support Staff

July 16, 2014 at 2:59 pm

Hi Elliot,

Is this an unmodified version of the latest version of Event Espresso or is there any custom coding that may be involved?


Lorenzo


Deanne Goddard

July 17, 2014 at 4:13 am

Hi Lorenzo – No custom coding of Event Espresso – latest version as downloaded from the website.

Elliot


Deanne Goddard

July 17, 2014 at 4:13 am

If you would like to quickly view the backend I can provide login creds. Let me know where to send.

Thanks


Dean

July 17, 2014 at 5:32 am

Is it possible to get your login details in order to look into this?

If so, please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level and FTP details are appreciated.

Also are you using sandbox credentials for PayPal, in case we need to run a payment test?


Deanne Goddard

July 17, 2014 at 5:40 am

Thanks – details sent across


Lorenzo Orlando Caum

  • Support Staff

July 17, 2014 at 10:41 am

Hi, we have replied asking for more information.

Thanks


Lorenzo


Dean

July 18, 2014 at 3:51 am

Hi Deanne,

OK, I took a look at the files etc and outwardly there is nothing wrong.

I added a temporary fix by replacing the

include(.Paypal.php')

in paypal_vars.php with

event_espresso_require_gateway('paypal/Paypal.php', $must_exist = true, $as_require_once = true);

(you were on the right path with what you did, just the wrong file).

However this will get over written when the plugin is updated.

The underlying cause must be server related, something in the way it is handling paths, but I cannot give you a definitive answer.

There are no previous mentions of an error like this and the support team uses a variety of different servers daily, which leads me to believe this is local to your server set up.

So, in the short term it is fixed, but I would recommend you contact your host and discuss the issue to see if there is anything that can be done from their end regarding this.


Deanne Goddard

July 18, 2014 at 9:18 am

Hi Dean,

Thanks for the fix. Elliot here. I am working with Dianne to get this working on her setup. Just to say this error occurred both on my staging site and her live site which are run on different hosting providers.

Thought I’d mention as this might not be an edge case.

In any case, many thanks for the help here.

Elliot


Josh

  • Support Staff

July 18, 2014 at 9:56 am

Hi Elliot,

You can copy over the PayPal folder from the Event Espresso plugin folder to /wp-content/uploads/espresso/gateways and your custom-fix copy to make it run on your server will load from there. This way when you do an update, your custom fix will continue to function.

Viewing 14 reply threads

The support post ‘Paypal Error on checkout’ 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