• Resolved mars29dr

    (@mars29dr)


    I test PHP8 for the site https://new.choeurpolycantus.fr which is the test for the site above. I have plenty of warnings in the file debug.log. But with classic Editor, when I want to create or modify, I have a fatal error : [04-Mar-2023 13:36:35 UTC] PHP Fatal error:? Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /homepages/6/d737435129/htdocs/clickandbuilds/PolycantusNew/wp-includes/class-wp-user-query.php:479

    It is in the core file “class-wp-user-query.php” at line 479; and the tab “view” is empty; only the tab “text” is ful filled. But it runs with Gutenberg. Do you intend to correct it ? The web-hosts require us to migrate to PHP 8

    Thank you for your response. Will Classic Editor die with PHP 8 ? That is the question

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • But with classic Editor, when I want to create or modify, I have a fatal error :

    It is in the core file “class-wp-user-query.php” at line 479; and the tab “view” is empty; only the tab “text” is ful filled. But it runs with Gutenberg.

    Hi @mars29dr your debug log is showing fatal errors for the Classic Editor and warnings for the Gutenberg plugin. Is that the case?

    This may be a plugin or theme conflict. Please attempt to disable all other plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your problems

    Any composer with php 8+ I get the following error:

    uncaught Error: array_filter(): Argument #1 ($array) must be of type array, null given
    wp-includes/class-wp-user-query.php:479

    I have no idea why?

    Thread Starter mars29dr

    (@mars29dr)

    My fatal error is corrected and classic editor runs now with POHP 8.1. There are always warning and “deprecated”. The problem is that I have roles in my members. Somme roles were corrupted. I have to delete them and rebuild them and I use the plugin . Below the process that I was given by a developer of the plugin Wicked folders, and I thank him very much for his help.

    1. Install and activate PublishPress Capabilities plugin
    2. In your WordPress admin, go to Capabilities > Capabilities
    3. In the roles dropdown near the upper-left area of the screen, select the first role
    4. Click the Save Changes button
    5. Repeat this for all roles (i.e. select a role and then click Save Changes)
    6. Once you’ve saved all roles, you can deactivate the PublishPress Capabilities plugin
    Moderator Kathryn Presner

    (@zoonini)

    @quiethero1 – could you please start your own thread, as your issue is not the same. Thanks!

    @mars29dr – glad you got to the bottom of the problem. Thanks for providing the solution in case it helps anyone else in the future. I’m marking this as resolved.

    Thread Starter mars29dr

    (@mars29dr)

    The response I gave is available in my context of the use of roles. In other contexts, I do not know

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Classic Editor and PHP 8’ is closed to new replies.