• mwoodpatrick

    (@mwoodpatrick)


    I’m seeing a whole bunch of errors of the form:

    Deprecated: Creation of dynamic property wpdb::$categories is deprecated in /shared/httpd/wp-main/htdocs/wp-includes/wp-db.php on line 760
    Creation of dynamic property Yoast\WP\SEO\Main::$classes is deprecated in /shared/httpd/wp-main/htdocs/wp-content/plugins/wordpress-seo/lib/abstract-main.php on line 65 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /shared/httpd/wp-main/htdocs/wp-includes/formatting.php on line 2761
    
    These only show up when running with PHP 8.2 runs fine with 7.4.
    
    Anyone know why or have any suggestions on how to fix/debug
Viewing 3 replies - 1 through 3 (of 3 total)
  • Guido

    (@guido07111975)

    Hi,

    Support for PHP 8.2 is not common yet. PHP 7.4 is, and most themes and plugins also support PHP 8.0 already.

    And this error is caused by Yoast:

    
    Creation of dynamic property Yoast\WP\SEO
    

    Guido

    Dion

    (@diondesigns)

    PHP 8.2 does not exist. Do you mean 8.1.2?

    WordPress core doesn’t use the wpdb->__set() function and wpdb->categories is not defined in wp-db.php, so the first deprecation notice is coming from your theme or from a plugin.

    The second deprecation notice is clearly coming from the WordPress SEO plugin.

    The solution is to use PHP 7.4 or 8.0 until all your plugins support PHP 8.1.

    Moderator t-p

    (@t-p)

    Are you using the latest WP version 5.9?

    If so, please see WordPress 5.9 and PHP 8.0-8.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Seeing bunch of errors when running with PHP 8,2’ is closed to new replies.