Fatal Error: Query failed in database
-
My client has this error, is it caused in 2.9.4? I see an existing bug filed on feedback.givewp.com already, but specifically want to know if I can roll back the plugin to resolve this. They are manually adding then changing the donor on a donation to log phone or postal mail donations it seems.
In this case, WordPress caught an error with one of your plugins, Give – Donation Plugin.
First, visit your website (https://clientdomain.com/) and check for any visible issues. Next, visit the page where the error was caught (https://clientdomain.com/wp-admin/edit.php?post_type=give_forms&page=give-payment-history&give-action=delete_payment&purchase_id=xyz&_wpnonce=xyz) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
https://clientdomain.com/wp-login.php?action=enter_recovery_mode&rm_token=xyz&rm_key=xyz
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.5.3
Current theme: Bethlehem (version 1.4.10)
Current plugin: Give – Donation Plugin (version 2.9.4)
PHP version 7.3.23Error Details
=============
An error of type E_ERROR was caused in line 32 of the file /home/user/public_html/wp-content/plugins/give/src/Framework/Database/Exceptions/DatabaseQueryException.php. Error message: Uncaught Give\Framework\Database\Exceptions\DatabaseQueryException: Query failed in database in /home/user/public_html/wp-content/plugins/give/src/Framework/Database/Exceptions/DatabaseQueryException.php:32
Stack trace:
#0 /home/user/public_html/wp-content/plugins/give/src/Framework/Database/DB.php(79): Give\Framework\Database\Exceptions\DatabaseQueryException::create(Array)
#1 /home/user/public_html/wp-content/plugins/give/src/Framework/Database/DB.php(49): Give\Framework\Database\DB::runQueryWithErrorChecking(Object(Closure))
#2 /home/user/public_html/wp-content/plugins/give/src/Revenue/Repositories/Revenue.php(62): Give\Framework\Database\DB::delete(‘wp_25057242_giv…’, Array, Array)
#3 /home/user/public_html/wp-content/plugins/give/src/Revenue/Listeners/DeleteRevenueWhenDonationDeleted.php(39): Give\Revenue\Repositories\Revenue->deleteByDonationId(30502)
#4 [internal function]: Give\Revenue\Listeners\DeleteRevenueWhenDonationDeleted->__invoke(30502)
#5 /home/user/public_html/wp-co- This topic was modified 4 years ago by . Reason: Did not mean to link to xxx.com was just redacting client domain, revised
The page I need help with: [log in to see the link]
- The topic ‘Fatal Error: Query failed in database’ is closed to new replies.