Posted: June 5, 2020 at 2:04 pm
|
Hi – when you go to checkout for our bootcamp events, there is an error that pops up saying A database error has occurred. Turn on wp_debug for more information. The transaction and charge goes through, but the error is making folks contact us. I think the issue might be that the proceed to Finalize Registration button is visible before you pay, so how would we fix this? |
Hi there, Are you comfortable editing PHP files? What I would do here is enable WP_DEBUG mode to see what the error being thrown actually is, to do that you edit your sites https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug That enabled WP_Debug mode and logs the errors to /wp-content/debug.log You may need to create a test event and run through a registration to trigger the error again (or wait for another user to trigger it) so that you can view the full error. If you can post that error we can investigate further to see what is going on. |
|
|
Hi Tony – Below is the log. Please let us know next steps. [17-Jun-2020 13:28:24 UTC] PHP Notice: WPDB Error “” while running wpdb method “insert” with arguments [“wpeos_esp_message”,{“MSG_token”:”da22a3f77a2a704d288e915f46bdcee2″,”GRP_ID”:24,”TXN_ID”:830,”MSG_messenger”:”email”,”MSG_message_type”:”payment”,”MSG_context”:”admin”,”MSG_recipient_ID”:547,”MSG_recipient_type”:”WP_User”,”MSG_content”:””,”MSG_to”:”abaird@eosworldwide.com, lhofmann@eosworldwide.com, jsedick@eosworldwide.com, byeakey@eosworldwide.com, kmosher@eosworldwide.com, jmcnellis@eosworldwide.com, msimpson@eosworldwide.com, jdiamond@eosworldwide.com, abaird@eosworldwide.com, lhofmann@eosworldwide.com, jsedick@eosworldwide.com, byeakey@eosworldwide.com, kmosher@eosworldwide.com, jmcnellis@eosworldwide.com, msimpson@eosworldwide.com, jdiamond@eosworldwide.com”,”MSG_subject”:””,”MSG_priority”:10,”STS_ID”:”MIC”,”MSG_created”:”2020-06-17 13:28:23″,”MSG_modified”:”2020-06-17 13:28:23″},[“%s”,”%d”,”%d”,”%s”,”%s”,”%s”,”%d”,”%s”,”%s”,”%s”,”%s”,”%d”,”%s”,”%s”,”%s”]]. Automatically attempting to fix EE Core DB in /nas/content/live/eos7/wp-content/plugins/event-espresso-core-reg/core/db_models/EEM_Base.model.php on line 2377 |
|
Actually I have an attached log file, Can I have an email to send the attachment? |
No need for an additional error log, the above gives me (just) enough information to see the problem, which is the number of email addresses you currently have sent in the ‘To’ field of the Event Admin context.
I tested this locally and can see that you can set a value in the message template field that is greater than what EE can currently use, that’s something we’ll need to fix but it may simply mean we limit the field rather than adjusting the database field. So right now, for the event admin email to function you’ll need to remove some of those email addresses from the To field of your event admin context(s). The message shown above is for a ‘payment’ email so I assume that’s your ‘Payment Received’ message type, but if you’ve set that many email addresses in other messages you’ll also need to remove those. Rather than including all of the emails in the to field I recommend setting up an alias within your mail provider, for example, create info@domain.com and then add all of the above emails into that alias. You then set one single email address in the message template to send. |
|
|
Ahhhh got it. Is the CC field also 255 characters only? |
CC should actually allow for more, its an extra_meta field of type text which allows up to 64KB. |
|
|
Hi Tony – Perfect. Thank you, we are all set. We have tested it all is good. |
Great! Whilst using the CC field is fine, I should note that I still recommend creating an alias/group email for this and then using that single email in EE. There are a few benefits to doing it but the main one is that once you start editing multiple templates to add edit those emails it gets much harder to track. For example, say one of those admins leaves or their email is no longer valid. You need to edit each template it is used on to fix it. Creating an alias and including them all in that means you simply edit the alias. Either way, the choice is yours and I’m glad you have a working solution. |
|
The support post ‘Error at checkout on Bootcamp Events’ 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.