Skip to content

PHP Deprecated: strncmp(): Passing null to parameter #1 #44792

Closed

Description

@uuroveits

Description

I´m using Gutenberg 14.2.0
WordPress is creating a log-file (https://www.abu-sgbu.de/wp-content/debug.log)
There occurs concerning Gutenberg:
PHP Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type string is deprecated in /is/htdocs/wp12019806_ZQF75OIS9W/www/abusgbu/wp-content/plugins/gutenberg/lib/compat/wordpress-6.1/class-wp-theme-json-6-1.php on line 1064
Question: is this a bug of WP RSS Aggregator or can I as user of WP RSS Aggregator solve this problem?
Reg
Jochen

Step-by-step reproduction instructions

  1. Using Gutenberg
  2. error-message in https://www.abu-sgbu.de/wp-content/debug.log

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

  1. added
    Needs Testing
    Global Styles
    on Oct 9, 2022
  2. added
    [Type] Bug
    and removed
    Needs Testing
    on Oct 10, 2022
  3. talldan commented on Oct 10, 2022

    @talldan
    Contributor

    Thanks for creating the ticket. I believe this code needs to be updated in Gutenberg to meet PHP compatibility standards. I also noticed the warnings when trying to get the Gutenberg unit tests running on PHP 8.1 - #44566.

  4. added
    [Type] Code Quality
    and removed
    [Type] Bug
    on Oct 10, 2022
  5. added
    [Status] In Progress
    on Oct 10, 2022
  6. removed
    [Status] In Progress
    on Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Global Styles[Type] Code Quality

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions