• Resolved manjeet1

    (@manjeet1)


    Hi
    I did updates to the plugins on my site and givewp plugin is broken with below error messages:
    Could you hepl to resolve this issues? Thanks

    Deprecated: Required parameter $payment_id follows optional parameter $give_form_id in /public_html/wp-content/plugins/give/includes/forms/functions.php on line 378

    Deprecated: Required parameter $amount follows optional parameter $give_form_id in /public_html/wp-content/plugins/give/includes/forms/functions.php on line 472

    Deprecated: Required parameter $amount follows optional parameter $form_id in /public_html/wp-content/plugins/give/includes/forms/functions.php on line 494

    Deprecated: Required parameter $month_num follows optional parameter $day in /public_html/wp-content/plugins/give/includes/payments/functions.php on line 582
    ——-

    Let me know if you need any more information. I have disabled plugin for now and not above to activate again due to these errors.

    Thanks

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

    (@benmeredithgmailcom)

    Hi @manjeet1

    Those are not errors, so much as PHP deprecation notices. None of the notices there should affect the functionality of the plugin.

    What version of PHP is your site running on? I am not able to replicate those issues on a test site I have here running the very latest version of PHP.

    Also, those notices will only display when you’ve got WP_DEBUG mode set to display on the site. That’s not recommended. Instead, on production sites, it is best to set the notices not to display, and instead to log them into a log file.

    Here’s how to do that: in your site’s wp_config.php file (which is in the root directory of WordPress by default) look for the lines defining WP_DEBUG, and replace them with this:

    // Turn debugging on
    define('WP_DEBUG', true);
    
    // Tell WordPress to log everything to /wp-content/debug.log
    define('WP_DEBUG_LOG', true);
    
    // Turn off the display of error messages and notices on your site
    define('WP_DEBUG_DISPLAY', false);
    
    // Hide general PHP errors 
    @ini_set('display_errors', 0);
    

    Let us know if that resolves things (as far as the notices showing). We’ll still need to dig in a bit more deeply as to what is causing those notices, but in the short term getting those ugly messages to go away is a top priority.

    Plugin Contributor Ben Meredith

    (@benmeredithgmailcom)

    Note also that if you are running PHP 8, there are some known issues (not blocking donations, but having the notices issues you mention here) that our team will definitely address at some point. You can follow along on the feedback here: https://feedback.givewp.com/bug-reports/p/givewp-should-not-cause-deprecation-warnings-on-php8

    Thanks!

    Thread Starter manjeet1

    (@manjeet1)

    Hi Ben,

    I enabled debug true only to see which plugin is creating the errors.
    The site was broken due to givewp, so I disabled the plugin and upgraded other plugins/theme/wordpress etc.

    But now givewp plugin is not activating.

    Could you advise how to fix givewp plugin and activate it.

    Thanks

    Plugin Contributor Ben Meredith

    (@benmeredithgmailcom)

    Hi @manjeet1

    When you say ‘the site was broken’ what do you mean, exactly? Were donations not going through? Was something else happening?

    In the meantime, I’d suggest rolling back to PHP version 7.4 to see if that helps. Your web host should be able to help with that. PHP 7.4 is still fully supported and secure. We’re working to ensure that GiveWP is fully compatible with PHP 8, and so far have not been able to replicate any problems (other than the warnings/notices that you see here). The more context you can give us, the better.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin broken after the updates’ is closed to new replies.