Support » Plugin: GiveWP Donation Widgets for Elementor » Parse error: syntax error, unexpected end of file in give_receipt.php on line 3

  • Resolved davidmarek

    (@davidmarek)


    When I activate GiveWP Donation Widgets for Elementor I get a WordPress error when trying to view any page on the site:

    “Parse error: syntax error, unexpected end of file in /var/www/vhosts/undermywing.org.uk/give.undermywing.org.uk/wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/give_receipt.php on line 359
    There has been a critical error on your website.”

    I have GiveWP 2.6.2 installed with Elementor 2.9.7, Elementor Pro 2.8.3 – parent theme is Astra free – site health looks OK.

    I can email over a full system report or give you admin access to take a look if that’s easier?

    I’ve deactivated the plugin for now but can re-activate and send over logs if needed.

    • This topic was modified 2 years, 3 months ago by davidmarek.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi there!

    Can you provide your System Info? That’s in “Donations > Tools > System Info”. That would help us replicate the issue to find the source.

    Thanks!

    Thread Starter davidmarek

    (@davidmarek)

    Sure, here it is:
    ### WordPress Environment ###

    Home URL: https://give.undermywing.org.uk
    Site URL: https://give.undermywing.org.uk
    WP Version: 5.4.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_GB
    Permalink Structure: /%postname%/
    Show on Front: page
    Page on Front: Home (#5)
    Page for Posts: Unset
    Table Prefix Length: L6f7J_
    Table Prefix Length: 6
    Table Prefix Status: Acceptable
    Admin AJAX: Accessible
    Registered Post Statuses: 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 Environment ###

    Hosting Provider: DBH: localhost:3306, SRV: give.undermywing.org.uk
    TLS Connection: Connection uses TLS 1.2
    TLS Connection: Probably Okay
    Server Info: Apache
    PHP Version: 7.3.17
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    PHP Max Upload Size: 2 MB
    cURL Version: ❌ 7.29.0, NSS/3.44 – We recommend a minimum cURL version of 7.40.
    SUHOSIN Installed: –
    MySQL Version: 5.7.30
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    gzip: ✔
    GD Graphics Library: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### GiveWP Configuration ###

    GiveWP Version: 2.6.2
    GiveWP Cache: Enabled
    Database Updates: All DB Updates Completed.
    Database Tables: ✔ L6f7J_give_donors – 1.0✔ L6f7J_give_donormeta – 1.0✔ L6f7J_give_comments – 1.0✔ L6f7J_give_commentmeta – 1.0✔ L6f7J_give_sessions – 1.0✔ L6f7J_give_logs – 1.0✔ L6f7J_give_logmeta – 1.0✔ L6f7J_give_formmeta – 1.0✔ L6f7J_give_sequential_ordering – 1.0✔ L6f7J_give_donationmeta – 1.0
    GiveWP Cache: Enabled
    GiveWP Cache: ✔New Donation✔Donation Receipt❌New Offline Donation❌Offline Donation Instructions✔New User Registration✔User Registration Information✔Donation Note✔Email access
    Upgraded From: 2.6.0
    Test Mode: Enabled
    Currency Code: GBP
    Currency Position: Before
    Decimal Separator: .
    Thousands Separator: ,
    Success Page: https://give.undermywing.org.uk/donate/donation-confirmation/
    Failure Page: https://give.undermywing.org.uk/donation-failed/
    Donation History Page: https://give.undermywing.org.uk/donation-history/
    GiveWP Forms Slug: /donations/
    Enabled Payment Gateways: Stripe – Credit Card, PayPal Standard
    Default Payment Gateway: Stripe – Credit Card
    PayPal IPN Verification: Enabled
    PayPal IPN Notifications: IPN received for #20888 ( 47U438337E903884A ) on 04/27/2020 at 21:28. Status VERIFIED
    Donor Email Access: Enabled
    Stripe Webhook Notifications: 30th April, 2020 11:55 am

    ### Active GiveWP Add-ons ###

    ### Other Active Plugins ###

    Elementor: by Elementor.com – 2.9.8
    Elementor Pro: by Elementor.com – 2.9.3
    Health Check & Troubleshooting: by The WordPress.org community – 1.4.4

    ### Inactive Plugins ###

    Advanced Custom Fields: by Elliot Condon – 5.8.9
    BHWT: by Guava Design Ltd – 1.4.0
    Central Color Palette: by Daniel Menzies – 1.14.7
    Classic Editor: by WordPress Contributors – 1.5
    Code Snippets: by Code Snippets Pro – 2.14.0
    Custom Post Type UI: by WebDevStudios – 1.7.4
    Ele Custom Skin: by Dudaster.com – 2.0.2
    GDPR Cookie Consent: by WebToffee – 1.8.7
    Give – Fee Recovery: by GiveWP – 1.7.7
    Give – Form Field Manager: by GiveWP – 1.4.4
    Give – Gift Aid: by GiveWP – 1.2.3
    Give – GoCardless Gateway: by GiveWP – 1.3.5
    Give – Google Analytics Donation Tracking: by GiveWP – 1.2.4
    Give – Per Form Gateways: by GiveWP – 1.0.2
    Give – Recurring Donations: by GiveWP – 1.10.1
    Give – Stripe Gateway: by GiveWP – 2.2.5
    Give – Tributes: by GiveWP – 1.5.6
    GiveWP Donation Widgets for Elementor: by GiveWP – 1.0
    Really Simple SSL: by Rogier Lankhorst, Mark Wolters – 3.3.1
    SendGrid: by SendGrid – 1.11.8
    Sucuri Security – Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.24
    User Role Editor: by Vladimir Garagulya – 4.53.1
    WPFront Scroll Top: by Syam Mohan – 2.0.2
    WP Mail Logging: by MailPoet – 1.9.5

    ### Active MU Plugins ###

    Health Check Troubleshooting Mode: by – 1.7.1
    installatron_hide_status_test.php: by –

    ### Theme ###

    Name: Twenty Twenty
    Version: 1.2
    Author URL: https://en-gb.wordpress.org/
    Child Theme: No – If you’re modifying GiveWP on a parent theme you didn’t build personally, then we recommend using a child theme. See: How to Create a Child Theme

    Thread Starter davidmarek

    (@davidmarek)

    Using Health Check Troubleshooting with a base theme (2020 or Astra) and only Give Core + Elementor, the error happens as soon as I activate the GiveWP Donation Widgets for Elementor – no other plugins were running.

    You will see that line 357 of give_receipt.php is displayed as:

    <? }

    It is highly likely that you have short tags disable in your PHP.ini.

    That said, the RFC for PHP states that it proposed that this short tag format for PHP is deprecated in a future release.

    The developers really should therefore have this coded as

    <?php }

    Hope this helps.

    Thread Starter davidmarek

    (@davidmarek)

    @denspad Thank you! I made the change to the file and it works!

    @webdevmattcrom Are you able to apply this change to the next release?

    Thanks!

    Thread Starter davidmarek

    (@davidmarek)

    @denspad You’re right – checked the PHP settings and short_open_tag was OFF. Thanks again.

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Thank you @denspad for sleuthing that! That explains why I couldn’t replicate the problem.

    @davidmarek — I just pushed out version 1.1 which fixes this issue. It also adds support for previewing the PDF Receipt row on the donation receipt table, and adds the give_subscriptions shortcode if you have Recurring Donations added.

    Enjoy!

    Thread Starter davidmarek

    (@davidmarek)

    @webdevmattcrom Thanks Matt. Plugin’s great and makes it a lot easier to add GiveWP components. Do you have plans to add styling options for these?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Parse error: syntax error, unexpected end of file in give_receipt.php on line 3’ is closed to new replies.