• Resolved lorenzocp

    (@lorenzocp)


    From a few days i cannot receive donations from my site: when somebody tries to click on Dona (donate), he receive an error message.

    From the debug of the site I received this output concerning GiveWp plugin:

    Deprecated: Give\Framework\Routes\RouteListener::isValid(): Implicitly marking parameter $validation as nullable is deprecated, the explicit nullable type must be used instead in /web/htdocs/www.sangabriele.org/home/wp-content/plugins/give/src/Framework/Routes/RouteListener.php on line 25

    It seems that the code is using an obsolete (deprecated) PHP syntax in modern versions of PHP.

    Actually, I’m using the last version of wp, the last update of the plugin and php 8.4.16 (the last one offered by my host is 8.5.x).

    Can please help me to fix this problem?

    thanks for your support

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ginger Coolidge

    (@gscoolidge)

    Hello @lorenzocp ,

    Glad you reached out, happy to help!

    The Deprecated entry you shared is not an error, decrepactions and warnings won’t prevent donations from going through. Those are from the elevated PHP 8.4.x or 8.5.x versions active on your website that are still in beta. The higher the PHP version that is active, the more of these entries you will see in your debug log from various plugins and themes (not just GiveWP). The reason for this is WordPress core itself is only now recommending 8.3.x so I would not suggest to go higher than that at this time.

    You can review the status of WordPress versions and what PHP version is supported in each one is viewable here:

    https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/#supported-version-chart

    Regarding the donation error, I just received this error when attempting a donation on one of your forms (translated):

    The following error occurred while submitting the form: Something went wrong. Please try again or contact support.

    When you receive donation form errors like that, the best place to check for more details in the form log.

    Every time a donation is made on your site – or attempted, GiveWP creates a new entry in the logs section that gives us further information on what is happening. The error logs can be found in  GiveWP > Tools > Logs. Locate an entry for one of these donation attempts, and when found, click on the “eyeball” icon on the right of the log to expand and view the contents.

    If, in the form log you see the donor email was flagged as spam, this is coming from the Akismet plugin, and the GiveWP setting in GiveWP > Settings > Advanced – Akismet SPAM Protection. If the email address(s) in the form logs do not appear to be spam emails, you can go ahead and turn that setting off in that settings page.

    As to why it does that, the Akismet plugin has it’s own algorithm and it can sometimes be a bit overzealous.

    If, however, the form log shows a different message, please copy/paste the complete log and add it to your reply back to us please. (Note: a screenshot will not show us enough information. Here’s a screencast on how to get the error log content for us: https://screencast-o-matic.com/watch/c3eD0AVFgVG.

    Let us know after you’ve reviewed and tested the above! 🙂

    Thread Starter lorenzocp

    (@lorenzocp)

    Okay, thanks for your prompt response.

    We’re seeing two types of errors.

    The most common is an email marked as spam (but I don’t know how to mark it as valid). For now, I’ve disabled Akismet and it’s working again. However, I’d appreciate it if you could explain how to prevent similar issues in the future while keeping Akismet enabled.

    The second concerns the payment gateway. This is the error log:

    { “routeSignature”: “9e294dff85d59dc7ded033df3d6ef897”, “signature”: { “Object Class”: “Give\DonationForms\Routes\DonateRouteSignature”, “\u0000Give\DonationForms\Routes\DonateRouteSignature\u0000signature”: “givewp-donate|1738869037”, “expiration”: “1738869037” }, “signatureString”: “givewp-donate|1738869037”, “signatureHash”: “9e294dff85d59dc7ded033df3d6ef897”, “signatureExpiration”: “1738869037” }

    Plugin Support Ginger Coolidge

    (@gscoolidge)

    Hello @lorenzocp ,

    Regarding the emails marked as Spam, if you decide to leave Akismet enabled, you can whitelist the emails in the settings page I had shared here: GiveWP > Settings > Advanced – Akismet SPAM Protection. However, if it continues with emails that appear legitimate, you’ll need to disable that setting. I had shared that the Akismet plugin has its own algorithm and it can sometimes be a bit overzealous in tagging emails.

    On the second form log, I’ll need to see a screenshot of the full log to see the details at the top please.

    Thanks in advance! Looking forward to getting this solved 👍🏻

    Plugin Support Ginger Coolidge

    (@gscoolidge)

    It’s been a while since we’ve heard back, so we’re marking this topic as resolved for now, but if you still have questions, you can reply right here, and I’ll be happy to hop back in.

    Have a great day! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.