• Resolved canis54

    (@canis54)


    Dear Sir or Madam,
    we have now noticed that the donor confirmation page no longer works after a donation. The donation itself works. After activated debugging, the following DB errors appear in the debug.log:

    [27-Jan-2023 15:18:25 UTC] WordPress database error Unknown column 'gm.post_id' in 'on clause' for query 
    SELECT wp_posts.ID FROM wp_posts  INNER JOIN  wp_give_formmeta ON ( wp_posts.ID = wp_give_formmeta.form_id ) LEFT JOIN  wp_give_formmeta gm ON (wp_posts.ID = gm.post_id AND gm.meta_key='_sku')WHERE 1=1 AND (( wp_give_formmeta.meta_key = '_give_goal_option' AND wp_give_formmeta.meta_value = 'enabled' )) AND wp_posts.post_type = 'give_forms' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY wp_posts.post_title ASC LIMIT 0, 30
    made by require_once('wp-admin/admin.php'), do_action('admin_init'), WP_Hook->do_action, WP_Hook->apply_filters, Give_Shortcode_Generator->init, Give_Shortcode_Generator->get_fields, Give_Shortcode_Generator->generate_fields, Give_Shortcode_Generator->generate_post, get_posts, WP_Query->query, WP_Query->get_posts
    
    [27-Jan-2023 15:18:26 UTC] WordPress database error Unknown column 'mt2.post_id' in 'on clause' for query 
    SELECT   wp_posts.* FROM wp_posts  INNER JOIN  wp_give_donationmeta ON ( wp_posts.ID = wp_give_donationmeta.donation_id )  INNER JOIN  wp_give_donationmeta AS mt1 ON ( wp_posts.ID = mt1.donation_id )  INNER JOIN  wp_give_donationmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN  wp_give_donationmeta gm ON (wp_posts.ID = gm.post_id AND gm.meta_key='_sku')WHERE 1=1  AND (( wp_posts.post_date >= '2023-01-19 00:00:00' AND wp_posts.post_date <= '2023-01-20 00:00:00' )) AND wp_posts.post_parent = 0  AND (( wp_give_donationmeta.meta_key = '_give_payment_currency' AND wp_give_donationmeta.meta_value = 'EUR' ) AND ( mt1.meta_key = '_give_payment_mode' AND mt1.meta_value = 'live' )AND ( mt2.meta_key = '_give_payment_gateway' AND mt2.meta_value IN 'offline','stripe','stripe_checkout','stripe_sepa','stripe_becs','paypal','paypal-commerce'))) AND wp_posts.post_type = 'give_payment' AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'pending' OR wp_posts.post_status = 'refunded' OR wp_posts.post_status = 'failed' OR wp_posts.post_status = 'revoked' OR wp_posts.post_status = 'cancelled' OR wp_posts.post_status = 'abandoned' OR wp_posts.post_status = 'processing' OR wp_posts.post_status = 'preapproval'))GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC
    made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Give\API\Endpoints\Reports\Endpoint->handleRequest, Give\API\Endpoints\Reports\TotalIncome->getReport, Give\API\Endpoints\Reports\TotalIncome->get_data, Give\API\Endpoints\Reports\TotalIncome->get_income, Give\API\Endpoints\Reports\Endpoint->getPayments, Give_Payments_Query->get_payments, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
    

    Unfortunately, we cannot say exactly when the error first appeared, so it may be related to an update of WordPress itself or the plugin. We know for sure that it was still working in August 22. The following setup is running on the server:

    WordPress: 6.1.1
    PHP: 7.4.33
    cURL: 7.74.0
    MariaDB: 10.10.2
    Webserver: nginx 1.22.1

    Do you have a hint for our troubleshooting? Many thanks and greetings! Canis

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @canis54,
    Glad you reached out. I’ve been running some tests to see if I can replicate the errors you are seeing, but I haven’t been successful.

    I’d like to gather a bit more information. First, send along your full system information. You can do this by navigating to Donations > Tools > System Info (tab) and click the button to “Get System Report” and copy/paste that in your reply here.

    In the meantime, double check to make sure you have a Donation Confirmation page set up in Donations > Settings > General > Success Page.

    Once I have a bit more context, I should be able to hop on in. Let me know if you have questions in the meantime, I’m happy to help.

    Hi @canis54,
    It’s been a bit since we’ve heard back, and I know troubleshooting can need a little extra time. If you still have questions you can create a new ticket right here and we’ll be happy to give things a look. Have a great day!

    Thread Starter canis54

    (@canis54)

    Dear Stephanie,
    many thanks for the support. Yes, we have a success page: https://kirchenbau.org/spenden-bestaetigung/ The system report follows. Best regards!
    Canis WordPress-Umgebung
    Home URL: https://kirchenbau.org
    Site URL: https://kirchenbau.org
    WP-Version: 6.1.1
    WP-Netzwerk: –
    WP Memory Limit: 512 MB
    WP-Debug-Modus:
    WP-Cron: –
    Sprache: de_DE
    Permalinkstruktur: /%year%/%monthnum%/%day%/%postname%/
    Auf Startseite anzeigen: page
    Startseite: Startseite (#849)
    Seite für Beiträge: Nicht festgelegt
    Tabellen-Prefix: wp_
    Tabellen-Präfix Länge: 3
    Tabellen-Präfix Status: Acceptable
    Admin AJAX: Verfügbar
    Registrierte Beitrags-Status: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, refunded, failed, revoked, cancelled, abandoned, processing, preapproval
    Server-Umgebung
    Hosting-Anbieter: DBH: localhost:/var/run/mysqld/mysqld.sock, SRV: kirchenbau.org
    TLS Anschluss: Verbindung verwendet
    TLS Bewertung:
    Server-Information: nginx/1.22.1
    PHP-Version: 7.4.33
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    PHP Max Upload Size: 6 MB
    cURL-Version: 7.74.0, OpenSSL/1.1.1n
    SUHOSIN installiert: –
    Standardzeitzone ist UTC:
    fsockopen/cURL:
    SoapClient:
    DOMDocument:
    gzip:
    GD Graphics Library:
    Multibyte String:
    Remote Post:
    Remote Get:
    GiveWP Configuration
    GiveWP Version: 2.24.1
    GiveWP Cache: Aktiviert
    Datenbank Updates: Alle Datenbank-Updates erfolgreich abgeschlossen.
    Database Migrations: All Database Migrations Completed.
    Datenbanktabellen:
    wp_give_donors
    wp_give_donormeta
    wp_give_comments
    wp_give_commentmeta
    wp_give_sessions
    wp_give_formmeta
    wp_give_sequential_ordering
    wp_give_donationmeta
    wp_give_revenue
    wp_give_migrations
    wp_give_log
    GiveWP Cache: Aktiviert
    GiveWP Emails:
    Neue Spende
    Spendenquittung
    Donation Processing Receipt
    Neue Offline-Spende
    Anweisung für Überweisungen
    Neue Benutzerregistrierung
    Informationen zur Benutzerregistrierung
    Donation Note
    E-Mail-Zugang
    Aktualisiert von: 2.23.2
    Testmodus: Deaktiviert
    Währungscode: EUR
    Position Währungssymbol: Nachher
    Dezimaltrennzeichen: ,
    Tausender Trennzeichen: .
    Erfolgsseite: https://kirchenbau.org/spenden-bestaetigung/
    Fehlerseite: https://kirchenbau.org/spende-gescheitert/
    Spendenverlaufsseite: https://kirchenbau.org/donor-dashboard/
    GiveWP Forms Slug: /donations/
    Aktivierte Zahlungs-Gateways: Stripe - Credit Card, Stripe - SEPA Direct Debit, Überweisung, PayPal-Spenden
    Standard-Zahlungs-Gateway: Stripe - Credit Card
    PayPal IPN Mitteilungen: N/A
    Spender-E-Mail-Zugriff: Deaktiviert
    Stripe Webhook Notifications: 27. Januar 2023 17:15
    Active GiveWP Add-ons
    Andere aktive Plugins
    Advanced Cron Manager von BracketSpace – 2.5.0
    Cloudflare von Cloudflare, Inc. – 4.11.0
    Cookie Notice & Compliance for GDPR / CCPA von Hu-manity.co – 2.4.6
    hCaptcha for WordPress von hCaptcha – 2.4.0
    Health Check & Troubleshooting von The ww.wp.xz.cn community – 1.5.1
    Limit Login Attempts Reloaded von Limit Login Attempts Reloaded – 2.25.11
    Simple History von Pär Thernström – 3.3.1
    Slider Revolution von ThemePunch – 6.6.7
    TheGem Blocks von Codex Themes – 1.1.5
    TheGem Theme Elements (for WPBakery) von Codex Themes – 5.7.1
    User Login History von Er Faiyaz Alam – 2.1.0
    User Role Editor von Vladimir Garagulya – 4.63.2
    WordPress Page Widgets von CodeAndMore – 3.9
    WP-Matomo Integration von André Bräkling – 1.0.27
    wp-Typography von Peter Putzer – 5.9.1
    WPBakery Page Builder von Michael M - WPBakery.com – 6.10.0
    WP Mail SMTP von WPForms – 3.7.0
    Inaktive Plugins
    Theme
    Name: Kirchenbau Hell
    Version: 1.0
    Autor-URL: http://kirchenbau.org
    Child-Theme: Ja
    Eltern-Theme-Name: TheGem
    Eltern-Theme-Version: 5.7.1
    Eltern-Theme-Autor-URL:
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Database error Unknown column’ is closed to new replies.