Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » Customizing donation receipt Email causes critical error

  • Resolved Jan

    (@jangv)


    Hello

    I actually wanted to get started with GiveWP, but now there is already a critical error when customizing the text for the donation receipt. Every time I go to Settings > Emails > Donation Receipt and customize the default text, WordPress reports a critical error and I can’t get anywhere.

    Here is the beginning of the error message (anonymized):

    An error of type E_ERROR was caused on line 35 of the file /srv/www/htdocs/user/www.website.com/wp-content/plugins/give/src/Email/GlobalSettingValidator.php. Error message: Uncaught TypeError: array_filter(): argument #1 ($array) must be of type array, null given in /srv/www/htdocs/user/www.website.com /wp-content/plugins/give/src/Email/GlobalSettingValidator.php:35

    I hope this bug can be fixed relatively easily. Otherwise I would choose another donation tool after all.

    Many greetings

    Jan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ben Meredith

    (@benmeredithgmailcom)

    Hey Jan!

    Glad you reached out, here. I’d love to be able to replicate that behavior! I just tried on a few test sites here to replicate it with no luck yet.

    I have a feeling something about the text you are entering or your server settings (or both!) are different than mine.

    What version of PHP are you running on the site/server? (You can find that in the system info at Donations > Tools > System Info)

    Also, what type of modifications are you making to the default email? Are you adding any email tags like {amount} or similar?

    If I’m able to replicate a problem, we’ll be able to isolate and fix it. Right now, I’m not seeing a problem when I try to edit that text.

    Thanks!

    Thread Starter Jan

    (@jangv)

    Hey Ben!

    Thank you very much for your fast reply!

    This is our current software:

    WordPress-Version 5.8.2
    Astra-Theme Version 3.7.5
    Elementor Version 3.5.0
    Give Version 2.17.1
    Server uses PHP-Version 8.0.12

    “Also, what type of modifications are you making to the default email? Are you adding any email tags like {amount} or similar?”

    I modified the text a bit, but left the tags unchanged. Actually, that shouldn’t cause a problem. The same error occures, when I try to modify for example the donor note.

    Best,
    Jan

    Thread Starter Jan

    (@jangv)

    Could you figure out, what the problem is?

    Unfortunately, I still can’t customize the emails. We would love to use GiveWP – even in a paid version. However, it would be a prerequisite that the emails can be customized and that there is a perspective when GiveWP will be completely translatable.

    Plugin Support Rick Alday

    (@mrdaro)

    Hi @jangv,

    I was able to reproduce the issue and reported it here: https://feedback.givewp.com/bug-reports/p/editing-email-receipt-content-causes-a-fatal-erro-in-php8

    The workaround is to downgrade to PHP 7.4 if you can until this is fixed.

    Our feedback site is designed to be the single source for all updates on particular issues. If any movement has happened, it will be displayed there for both the public and our team internally.

    If specific feedback only has a handful of votes, that influences the priority we place on it. The more votes, the faster things get worked on!

    Thread Starter Jan

    (@jangv)

    Great, thanks a lot! After downgrading to PHP 7.4 it’s possible to customize the emails, now! šŸ™‚

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customizing donation receipt Email causes critical error’ is closed to new replies.