Support

Home Forums Event Espresso Premium "Critical" Error on Payment Settings Page

"Critical" Error on Payment Settings Page

Posted: September 28, 2023 at 2:32 pm

Viewing 25 reply threads


Karen

September 28, 2023 at 2:32 pm

We noticed just today that our customers could not check out (Paypal) or pay for workshops that we host. When I tried to look on the Payment settings page I got an alert “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

What I received in my inbox was:

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.3.1
Active theme: JupiterX (version 3.5.6)
Current plugin: Event Espresso (version 5.0.10.p)
PHP version 7.4.33

Error Details
=============
An error of type E_ERROR was caused in line 1156 of the file /home/…/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php. Error message: Uncaught EE_Error: WordPress database error: [Tablespace for table '....wp_esp_currency_payment_method' exists. Please DISCARD the tablespace before IMPORT]CREATE TABLE wp_esp_currency_payment_method ( CPM_ID int(11) NOT NULL AUTO_INCREMENT,
CUR_code varchar(6) NOT NULL,
PMD_ID int(11) NOT NULL,
PRIMARY KEY (CPM_ID),
KEY PMD_ID (PMD_ID) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci in /home/…/public_html/wp-content/plugins/event-espresso-core-reg/core/services/database/TableManager.php:222
Stack trace:
#0 /home/…/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/payments/Payments_Admin_Page.core.php(327): EventEspresso\core\services\database\TableManager->createTable(‘wp_esp_currency…’, ‘CPM_ID int(11) …’, ‘InnoDB’)
#1 /home/…/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/payments/Pay

I’m not a programmer … please help!


Karen

September 28, 2023 at 5:24 pm

I went through the different threads and saw the advice to re-download and then reinstall. I gave that a try and no luck.


Rio

  • Support Staff

September 28, 2023 at 7:56 pm

Can you send us all the stack trace please.

also, did you try to disconnect the paypal, then connect it again?
https://monosnap.com/file/pO6RvWHM99z8YPocZ0bqQcQYHwacl0

Can you tell us how to reproduce the problem? do we need to be in specific page? or we need to try to purchase?

thanks

Thanks


Tony

  • Support Staff

September 29, 2023 at 6:03 am

Hi Karen,

Something has happened within the Database on that site, when EE tries to create the above table in the database it checks if it already exists. So the database is showing the table doesn’t exist, EE is trying to recreate it and then the database is saying it already exists.

In your host’s control panel, does it show that you are out of space at all?


Karen

September 29, 2023 at 6:44 am

Thanks for responding Rio. The error is on the Admin page for the payment settings. That won’t come up at all, so I can’t disconnect and reconnect.


Karen

September 29, 2023 at 6:45 am

Hi Tony, I already checked with our webhost and we are fine on capacity, although they did increase some memory for us just in case.

We do have almost 2000 events (most have passed). Could that be a factor?


Tony

  • Support Staff

September 29, 2023 at 7:00 am

I already checked with our webhost and we are fine on capacity, although they did increase some memory for us just in case.

It’s not a memory issue, is a DB issue.

Did you give them the above error? Just curious as to what they said about it if so.

Do you keep regular database backups?

We do have almost 2000 events (most have passed). Could that be a factor?

That will have an impact on the size of your DB but if you have space, its fine. Its not the cause of the above issue in itself.


Karen

September 29, 2023 at 7:20 am

I gave them the same information that I gave you above. They also looked at the files themselves and nothing really jumped out at them. They told me to come over to you.


Karen

September 29, 2023 at 7:21 am

Sorry, and yes, we keep regular backups. I do delete old backups regularly so we don’t eat up space.


Karen

September 29, 2023 at 7:26 am

Here’s a thought… the person who manages our workshops/events has been uploading huge image files. They live on our regular media space, but EE has to “read” them. Could that be the culprit?


Tony

  • Support Staff

September 29, 2023 at 7:42 am

I gave them the same information that I gave you above. They also looked at the files themselves and nothing really jumped out at them. They told me to come over to you.

I don’t want to put you in the middle here, but this actually has very little to do with Event Espresso’s files. Event Espresso is ‘causing’ the error by trying to create a database table… but the Database has the issue, not EE itself.

Sorry, and yes, we keep regular backups. I do delete old backups regularly so we don’t eat up space.

Can you send me a copy of the database from before this happened so I can take a look?

Here’s a thought… the person who manages our workshops/events has been uploading huge image files. They live on our regular media space, but EE has to “read” them. Could that be the culprit?

No and I’ll explain.

The reason I asked about running out of space is because if you are close to running out of space and there’s a change which then takes you over the limit… then a DB command runs with no space to do what it wants and it throws the tables out of sync.

This isn’t a ‘you have stuff that is too big to load’ issue, something has gone wrong with the DB and a quick Google search shows it’s common when running low on space, e.g.:

https://stackoverflow.com/questions/15694168/error-tablespace-for-table-xxx-exists-please-discard-the-tablespace-before-imp

The database itself needs to be fixed to stop this error.

As this is on the server side I would expect your host would be able to fix it for you by dropping the .idb file for that table (details in the link above).

If you have a database base backup from before this happened I can check the tables within that and see if there is an issue there beforehand.


Karen

September 29, 2023 at 7:43 am

Gotcha, that makes sense. How would I show you the DB files?


Tony

  • Support Staff

September 29, 2023 at 7:59 am

How do you currently save your backups?


Karen

September 29, 2023 at 8:10 am

They’re saved on the webhost server.


Karen

September 29, 2023 at 2:01 pm

So, I have had no luck with my webhost and they’ve more or less kicked me back to you guys. Let me know what you need me to do to give you access to see what the problem is. What they ultimately said was:

“Dropping individual tables and working with specific tables within mysql this is something that we would recommend a mysql developer for. While the error may indeed be related to the database which is on the server, the mysql service as a whole is not an issue and the database checks are passing. If restoring from a backup is not an option , you will want to have a database developer look into the issue further. They also checked disk space and see no issue with disk space.”


Tony

  • Support Staff

October 2, 2023 at 5:27 am

This reply has been marked as private.


Karen

October 2, 2023 at 6:03 am

This reply has been marked as private.


Karen

October 2, 2023 at 1:26 pm

This reply has been marked as private.


Tony

  • Support Staff

October 2, 2023 at 2:52 pm

Ok, so as I suspected would happen here, there isn’t enough access to fix this with the credentials provided, in my experience it’s rare you would get the level of access required to the DB to be able to fix this.

If InMotion support can point out where the database files (specifically the .idb files) are accessible from within your account, I’ll happily copy that file to a backup and remove it (which should fix the problem) but as mentioned generally this is something the host would do themselves…. they don’t just hand out file level DB access and afaict you don’t have that level of access (which is expected).

The only command I could run from this end would be to attempt to get the MySQL to drop the table, using something like:

DROP TABLE wp_esp_currency_payment_method;
ALTER TABLE wp_esp_currency_payment_method DISCARD TABLESPACE;

From within the database itself.

However, considering that the check for the table is returning that it doesn’t exist (otherwise EE wouldn’t try to create it) I’m 99.99% that would fail anyway.

This is something your host needs to fix, each time I’ve seen this on a share server, it’s the host who has fixed it, not the end user (you) or the plugin dev (us).

If I’m wrong about the above I’m more than open to discussing how so and how it is that we (or any dev) would go about deleting an orphaned .idb file (which is what this looks like this issue is) on share hosting without full access.


Karen

October 2, 2023 at 5:10 pm

Thank you! I’ll take this back to them! This is a huge help. (And nice to know it’s not just me being a knucklehead.)

I’ll let you know how it turns out.


Karen

October 2, 2023 at 6:24 pm

This reply has been marked as private.


Tony

  • Support Staff

October 4, 2023 at 6:31 am

Sounds like I’ll need access, I can’t think of any other way around this.

If you can send login details using this form:

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

I’ll take a look.

Side note – because the host tried this and the file was instantly regenerated, the query creating it is obviously still running somewhere. So I may need to temporarily deactivate Event Espresso on the site to troubleshoot this.


Karen

October 9, 2023 at 6:41 am

Sorry for the delay, I just sent that info over to you.


Rio

  • Support Staff

October 9, 2023 at 11:54 pm

Thank you, we receive the information. But we also need your wordpress log-in. We will be waiting for your email.

thanks


Karen

October 10, 2023 at 6:19 am

It’s the same as last time. I just resent.


Karen

October 12, 2023 at 11:14 am

This reply has been marked as private.


Karen

October 19, 2023 at 7:54 am

We just updated the plugin to 2.1.1 and the issue is still there.

Viewing 25 reply threads

The support post ‘"Critical" Error on Payment Settings Page’ 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