Posted: June 11, 2015 at 4:10 pm
|
We’re experiencing the exact same issue as the support topic I’ve duplicated below. https://eventespresso.com/topic/database-crash-from-event-espresso-table/
|
Hi Jonathan, here is that information: 1) Login to the cpanel / hosting panel or directly to PHPMyAdmin 2) Towards the top, there is a database section. Click on PHPMyAdmin: http://cl.ly/image/1F3k01322a0Z 3) This opens a new browser tab and you can click on the database for your site. 4) Once you are viewing the live site, you’ll see a SQL tab along the top. Click on that and you’ll see a text box. Copy and paste this entry and then run it: delete t from wp_esp_transaction t LEFT JOIN wp_esp_registration r ON t.TXN_ID=r.TXN_ID WHERE r.REG_ID IS NULL Allow it to complete. 5) Then click on the SQL tab again and you’ll see the text box again. delete li from wp_esp_line_item li LEFT JOIN wp_esp_transaction t ON t.TXN_ID=li.TXN_ID WHERE t.TXN_ID IS NULL That should clear the entries. Thanks! — |
|
|
Thank you. Those queries were helpful for removing the excess records. Is there a way to prevent the records from being created in the first place? Our line items table is accumulating around 250k records per day. Is a cronjob the ‘fix’? |
Hi Jonathan, You might try installing a few plugins like Bad Block Queries and Bad Behavior, the ticket selector on your site appears to be getting hit by some spam bots with that many records. |
|
ya jonathan a cron task isn’t the best solution ever, but it will help until we get the ideal solution in place (which is to prevent these spam registrations in the first place). |
|
|
For the record, when we first encountered this issue, we added an index to the LIN_parent field on wp_esp_line_item. This ‘saved’ the database/database for the time being. With an index, the queries on these hundreds of thousand records completed reasonable quickly. Having an index on the foreign key field is a good practice, and should probably be folded into the core regardless of this bug. |
Hi Jonathan, This idea has merit and will be discussed. Thanks for the feedback. |
|
Hi Jonathan, A little update on a few things: 1) Event Espresso 4.7.2 adds an automatic cron for deleting spam line items. |
|
Hello again, I wanted to share some updated information on this issue as it could be helpful to members that have not yet upgraded to a current version of Event Espresso. In Event Espresso 4.7.x we introduced a clean up feature that runs on its own to remove these junk transactions. In Event Espresso 4.8.x, we introduced a bot trap which should minimize registration attempts from bots. If you are using an older version of Event Espresso (e.g. Event Espresso 4.6.x) than one mentioned above, then you won’t have the combined protection of the features above. The recommended solution is to manually remove the junk transactions as described here: https://eventespresso.com/topic/slow-data-migration-to-4-7-0/#post-172280 …and then backup your WordPress site upgrade to the current version of Event Espresso: https://eventespresso.com/wiki/ee4-changelog/ Thanks — |
|
The support post ‘Database crash from event espresso table (2)’ 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.