Support

Home Forums Event Espresso Premium payment not active

payment not active

Posted: May 4, 2023 at 3:34 pm

Viewing 17 reply threads


jlnewell

May 4, 2023 at 3:34 pm

We are using the Paypal Commerce setup for EE. Every day or more than once a day the payments stop working and we get a screen saying the payment plugin has been disabled. We have to go back in and enable it. Any idea why this is happening? It worked fine for about a week then this started about 5 days ago or so.


Tony

  • Support Staff

May 4, 2023 at 4:40 pm

Hi there,

We have heard of other reports of this happening to one or two other people. But we do not have enough information yet to know why this is happening to some people and not others.

If you’re comfortable with adding a little PHP to your site, add this snippet: https://gist.github.com/Pebblo/d854e7b795cf818a365dea031a9b4f86

You can add that to a custom functions plugin and we have some documentation here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Then, enable WP_DEBUG_LOGGING using this in your sites wp-config.php file:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

You will likely already have something like define( ‘WP_DEBUG’, false );, the above snippet replaces that single line.

What all of that will do, is set your site to add PHP errors within /wp-content/debug.log so we can view them and if a payment method is automatically deactivated, it will add a stack trace of WHAT caused it to deactivate which should help narrow the cause down.


jlnewell

May 14, 2023 at 11:22 am

Thanks. I added the folder and file in the plugin directory. I added the debug to the wp-config as well. I dont see a plugin to enable in my plugins so not sure if i am missing something there or not


Tony

  • Support Staff

May 15, 2023 at 6:38 am

ok, so what exactly did you add to the plugin directory?

The above doc would have you created a directory called myexamplesite

Then a file within that directory called myexamplesite-customizations.php

The directory and filename don’t really matter here, yours may well be different.

Inside that file the first few lines should have:


<?php
/*
Plugin Name: Site plugin for myexamplesite.com
Description: Site specific code for myexamplesite.com
*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */

If you’ve changed any values, that’s fine but the format should remain the same, that it what tells WordPress its a plugin and what it should display.

After that should be my functions from: https://gist.github.com/Pebblo/d854e7b795cf818a365dea031a9b4f86


jlnewell

May 16, 2023 at 2:59 pm

Yes i did all of that you posted.


Tony

  • Support Staff

May 16, 2023 at 3:48 pm

Then that should show up as a plugin in Dashboard -> Plugins.

Can I take a look? If so I’ll need FTP credentials which you can send using this form:

https://eventespresso.com/send-login-details/


jlnewell

May 17, 2023 at 2:11 pm

Sent to you in the form


Tony

  • Support Staff

May 17, 2023 at 2:33 pm

Hi there,

So the plugin file was missing the plugin headers, none of this:

<?php
/*
Plugin Name: Site plugin for myexamplesite.com
Description: Site specific code for myexamplesite.com
*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */

Had been added to the top of the file.

I’ve updated the file and it should now show, can you check in the dashboard please?


Tony

  • Support Staff

May 18, 2023 at 6:09 am

Hi there,

Just checking if the file update worked and now the plugin shows in the Dashboard?


jlnewell

May 19, 2023 at 2:47 am

Yes, i see it and activated it. It gave me this error

Attempted to download a file from “https://raw.githubusercontent.com/eventespresso/languages-ee4/master/event_espresso-en.po&#8221; but encountered a “404 File Not Found” error.


Tony

  • Support Staff

May 19, 2023 at 3:50 am

Did the plugin activate?

That error is from EE trying to download a translation file but can’t find one, it’s not related to the above plugin.


jlnewell

May 20, 2023 at 3:42 am

yes it did, no problem its active. currently the payment is disabled.


jlnewell

May 20, 2023 at 3:43 am

I reactivated it so that it would show the disable when it happens


Tony

  • Support Staff

May 22, 2023 at 8:58 am

Awesome, please do let me know when it next deactivates.


jlnewell

May 27, 2023 at 3:36 am

It happened, now showing that error


Tony

  • Support Staff

May 27, 2023 at 3:39 pm

Ok, go to Event Espresso -> General Settings.

Scroll down to the bottom and find ‘UXIP Opt In?’

UNcheck that option and save.

Now reactivate the PayPal Commerce payment method again.

See if it happens again after that.


jlnewell

May 28, 2023 at 8:20 am

Ok did that. There was a EE update as well, so i proceed that too.


Tony

  • Support Staff

May 29, 2023 at 5:48 am

Awesome!

Let me know if it happens again and I’ll recheck the logs again.

Viewing 17 reply threads

The support post ‘payment not active’ 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