Posted: 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. |
|
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. |
|
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 |
|
ok, so what exactly did you add to the plugin directory? The above doc would have you created a directory called Then a file within that directory called The directory and filename don’t really matter here, yours may well be different. Inside that file the first few lines should have:
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 |
|
Yes i did all of that you posted. |
|
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: |
|
Sent to you in the form |
|
Hi there, So the plugin file was missing the plugin headers, none of this:
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? |
|
Hi there, Just checking if the file update worked and now the plugin shows in the Dashboard? |
|
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” but encountered a “404 File Not Found” error. |
|
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. |
|
yes it did, no problem its active. currently the payment is disabled. |
|
I reactivated it so that it would show the disable when it happens |
|
Awesome, please do let me know when it next deactivates. |
|
It happened, now showing that error |
|
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. |
|
Ok did that. There was a EE update as well, so i proceed that too. |
|
Awesome! Let me know if it happens again and I’ll recheck the logs again. |
|
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.