• Resolved DODO Internet

    (@studioviv)


    I get the following errors when I update the PHP version to 8.1:

    Deprecated: Constant WP_MainWP_Stream\FILTER_SANITIZE_STRING is deprecated in /public_html/wp-content/plugins/mainwp-child-reports/classes/class-filter-input.php on line 94
    
    Deprecated: Optional parameter $context declared before required parameter $alert is implicitly treated as a required parameter in /public_html/wp-content/plugins/mainwp-child-reports/alerts/class-alert-trigger-author.php on line 165
    
    Deprecated: Optional parameter $context declared before required parameter $alert is implicitly treated as a required parameter in /public_html/wp-content/plugins/mainwp-child-reports/classes/class-alert-trigger.php on line 87
    
    Deprecated: Optional parameter $context declared before required parameter $alert is implicitly treated as a required parameter in /public_html/wp-content/plugins/mainwp-child-reports/alerts/class-alert-trigger-context.php on line 209
    
    Deprecated: Optional parameter $context declared before required parameter $alert is implicitly treated as a required parameter in /public_html/wp-content/plugins/mainwp-child-reports/alerts/class-alert-trigger-action.php on line 174

    Can you fix these errors?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Bojan Katusic

    (@bojankatusic)

    Hi @studioviv

    MainWP is currently not fully compatible with PHP 8.1. In fact, even the WordPress core is not quite there yet with full compatibility.

    We are working towards the goal of said PHP 8.1 compatibility and will improve it as soon as possible.

    At the moment, we recommend rolling back to PHP 8.0.

    We understand that there’s a similar issue occurring with 8.0 as well, and our development team is working on resolving it. I will update the other thread relating to 8.0 when we have more information.

    Thread Starter DODO Internet

    (@studioviv)

    Alright! I look forward to the fix

    Plugin Support Bojan Katusic

    (@bojankatusic)

    The issue for PHP 8 has been fixed. Just to reiterate, MainWP is not yet fully compatible with PHP 8.1.

    The new version of MainWP Child Reports will be released soon.

    Thank you again for reporting this to us.

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