Uncaught database exception
-
Hello,
I haven’t updated the plugin for a while and have now updated to the latest version.I can still make a donation, but the process does not go all the way through.
In the backend, the following is displayed in the ‘Logs’ area:
- Beschreibung:Database Query
- Category:Uncaught database exception
- Source:Give Core
- Date & Time:2024-05-26 09:02:36
Error details:
{ "Query": "SELECT id, user_id AS userId, email, phone, name, purchase_value AS totalAmountDonated, purchase_count AS totalNumberOfDonations, payment_ids AS paymentIds, date_created AS createdAt, token, verify_key AS verifyKey, verify_throttle AS verifyThrottle, give_donormeta_attach_meta_firstName.meta_value AS firstName, give_donormeta_attach_meta_lastName.meta_value AS lastName, give_donormeta_attach_meta_prefix.meta_value AS prefix FROM wp_give_donors LEFT JOIN wp_give_donormeta give_donormeta_attach_meta_firstName ON ID = give_donormeta_attach_meta_firstName.donor_id AND give_donormeta_attach_meta_firstName.meta_key = '_give_donor_first_name' LEFT JOIN wp_give_donormeta give_donormeta_attach_meta_lastName ON ID = give_donormeta_attach_meta_lastName.donor_id AND give_donormeta_attach_meta_lastName.meta_key = '_give_donor_last_name' LEFT JOIN wp_give_donormeta give_donormeta_attach_meta_prefix ON ID = give_donormeta_attach_meta_prefix.donor_id AND give_donormeta_attach_meta_prefix.meta_key = '_give_donor_title_prefix' ORDER BY id DESC LIMIT 30", "Query Errors": { "db_delta_error": [ "Unknown column 'phone' in 'field list'" ] } }
I have also received an email from my WordPress instance with the following error message:
Wenn du Hilfe bei diesem Problem suchst, wirst du m?glicherweise nach einigen der folgenden Informationen gefragt: WordPress-Version 6.5.3 Aktives Theme: Soledad Child Theme (Version 1.0) Aktuelles Plugin: Give - Donation Plugin (Version 3.12.0) PHP-Version 8.2.19
Fehler-Details ============== Ein Fehler vom Typ E_ERROR wurde in der Zeile 155 der Datei /var/www/html/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php verursacht. Fehlermeldung: Uncaught TypeError: Give\Framework\Support\ValueObjects\Money::fromDecimal(): Argument #2 ($currency) must be of type string, null given, called in /var/www/html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php on line 158 and defined in /var/www/html/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php:155 Stack trace: #0 /var/www/html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php(158): Give\Framework\Support\ValueObjects\Money::fromDecimal(NULL, NULL) #1 /var/www/html/wp-content/plugins/give/src/Donations/Models/Donation.php(281): Give\Donations\DataTransferObjects\DonationQueryData::fromObject(Object(stdClass)) #2 /var/www/html/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(130): Give\Donations\Models\Donation::fromQueryBuilderObject(Object(stdClass)) #3 /var/www/html/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(86): Give\Framework\Models\ModelQueryBuilder->getRowAsModel(Object(stdClass)) #4 /var/www/html/wp-content/plugins/give/src/Donations/Repositories/DonationRepository.php(556): Give\Framework\Models\ModelQueryBuilder->get() #5 /var/www/html/wp-content/plugins/give/includes/admin/tools/views/html-admin-page-exports.php(83): Give\Donations\Repositories\DonationRepository->getFirstDonation() #6 /var/www/html/wp-content/plugins/give/includes/admin/tools/class-settings-export.php(100): include_once('/var/www/html/w...') #7 /var/www/html/wp-includes/class-wp-hook.php(324): Give_Settings_Export::render_export_field(Array, '') #8 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #9 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /var/www/html/wp-content/plugins/give/includes/admin/class-admin-settings.php(1016): do_action('give_admin_fiel...', Array, '') #11 /var/www/html/wp-content/plugins/give/includes/admin/class-admin-settings.php(439): Give_Admin_Settings::prepare_settings_field(Array, 'give_settings') #12 /var/www/html/wp-content/plugins/give/includes/admin/abstract-admin-settings-page.php(242): Give_Admin_Settings::output_fields(Array, 'give_settings') #13 /var/www/html/wp-includes/class-wp-hook.php(324): Give_Settings_Page->output('') #14 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #15 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #16 /var/www/html/wp-content/plugins/give/includes/admin/views/html-admin-settings.php(172): do_action('give-tools_sett...') #17 /var/www/html/wp-content/plugins/give/includes/admin/class-admin-settings.php(264): include('/var/www/html/w...') #18 /var/www/html/wp-includes/class-wp-hook.php(324): Give_Admin_Settings::output('') #19 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #20 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #21 /var/www/html/wp-admin/admin.php(259): do_action('give_forms_page...') #22 /var/www/html/wp-admin/edit.php(10): require_once('/var/www/html/w...') #23 {main} thrown
What am I doing wrong?
Best regards
Christian
- The topic ‘Uncaught database exception’ is closed to new replies.