• hey
    I updated to PHP 8.1, but I’m getting these errors when opening the customizer:

    Warning: Attempt to read property "items" on null in /home_pr5/i/n/industria.ch/htdocs/dev.mysite.com/wp-content/themes/sydney/inc/customizer/controls/typography/class_sydney_typography.php on line 150
    
    Warning: foreach() argument must be of type array|object, null given in /home_pr5/i/n/mysite.com/htdocs/dev.mysite.com/wp-content/themes/sydney/inc/customizer/controls/typography/class_sydney_typography.php on line 128
    
    Warning: Attempt to read property "items" on null in /home_pr5/i/n/mysite.com/htdocs/dev.mysite.com/wp-content/themes/sydney/inc/customizer/controls/typography/class_sydney_typography.php on line 150
    
    Warning: foreach() argument must be of type array|object, null given in /home_pr5/i/n/mysite.com/htdocs/dev.mysite.com/wp-content/themes/sydney/inc/customizer/controls/typography/class_sydney_typography.php on line 128

    Do you have any ideas on how to fix that?
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @gwertul,

    I did checking with my test site running the latest version of WordPress (6.0.1). And I couldn’t replicate the same issue.

    Which version of your WordPress are you running? Is it the latest?

    Thread Starter gwertul

    (@gwertul)

    Hi @kharisblank
    Thanks for your reply. Yes, I’m using WP 6.0.1.
    I already deactivated most of my plugins, so it’s difficult for me to understand what happened.

    Thread Starter gwertul

    (@gwertul)

    btw, I just tested again in troubleshooting mode, but the error persists.

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