• Resolved Franky

    (@liedekef)


    These are php notices reported with the latest version, please do get those fixed:

    [03-Nov-2021 07:50:42 UTC] PHP Deprecated:  Required parameter $archiveFormat follows optional parameter $verifyCertificate in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-db.php on line 1303
    [03-Nov-2021 07:50:42 UTC] PHP Deprecated:  Required parameter $disableChecking follows optional parameter $verifyCertificate in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-db.php on line 1303
    [03-Nov-2021 07:50:42 UTC] PHP Deprecated:  Required parameter $checkInterval follows optional parameter $verifyCertificate in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-db.php on line 1303
    [03-Nov-2021 07:50:42 UTC] PHP Deprecated:  Required parameter $disableHealthChecking follows optional parameter $verifyCertificate in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-db.php on line 1303
    [03-Nov-2021 07:50:42 UTC] PHP Deprecated:  Required parameter $healthThreshold follows optional parameter $verifyCertificate in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-db.php on line 1303
    [03-Nov-2021 07:50:42 UTC] PHP Deprecated:  Required parameter $cap follows optional parameter $cap_type in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-system.php on line 530
    [03-Nov-2021 07:50:42 UTC] PHP Deprecated:  Required parameter $which follows optional parameter $siteId in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-utility.php on line 952
    [03-Nov-2021 07:50:42 UTC] PHP Deprecated:  Required parameter $handler follows optional parameter $params in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-connect.php on line 483
    [03-Nov-2021 07:50:42 UTC] PHP Deprecated:  Required parameter $output follows optional parameter $params in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-connect.php on line 483
    [03-Nov-2021 07:54:34 UTC] PHP Deprecated:  Required parameter $website follows optional parameter $fields in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-notification-settings.php on line 534
    [03-Nov-2021 07:54:34 UTC] PHP Deprecated:  Required parameter $body follows optional parameter $to_email in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-format.php on line 185
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Bogdan Rapaic

    (@bogdanrapaic)

    Hi @liedekef,

    What is the PHP version on your MainWP Dashboard?

    Thread Starter Franky

    (@liedekef)

    Good point … apparently I switched to version 8 without noticing it when I upgraded to the latest fedora version on my box.
    But I took a look at the code, and in fact it is related to the definition of the function “update_website” which defines optional function arguments (by giving them a default value) followed by other arguments that are not optional (by not giving them a default value). It would thus be impossible for php to know which arguments are being used if not all are present … even in php 7.x this would be a problem.
    Since the function is indeed only called once in the code (with all arguments present), the fix is easy: remove the default values from the function definition and the depecrated notices will be gone.

    Plugin Support Bogdan Rapaic

    (@bogdanrapaic)

    Hi @liedekef,

    Thanks for getting back to us. I will make sure our dev team checks this.

    Plugin Support Bogdan Rapaic

    (@bogdanrapaic)

    Just wanted to update here and confirm that the problem will be addressed in the next release.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notices’ is closed to new replies.