• We tried upgrading to PHP8, but encountered problems.

    [client 1.2.3.4:57920] mod_fcgid: stderr: PHP Fatal error: Uncaught
    Error: Class “WP_Customize_Image_Control” not found in
    /home/user/domain.com/wp-includes/customize/class-wp-custom
    ize-header-image-control.php:17,
    referer: https://domain.com/wp-includes/customize/
    [Sat Apr 29 07:00:14.744572 2023] [fcgid:warn] [pid 65307:tid 3370827716352]
    [client 1.2.3.4:57920] mod_fcgid: stderr: Stack trace:, referer:
    https://domain.com/wp-includes/customize/
    [Sat Apr 29 07:00:14.744589 2023] [fcgid:warn] [pid 65307:tid 3370827716352]
    [client 1.2.3.4:57920] mod_fcgid: stderr: #0 {main}, referer:
    https://domain.com/wp-includes/customize/
    [Sat Apr 29 07:00:14.744604 2023] [fcgid:warn] [pid 65307:tid
    3370827716352] [client 1.2.3.4:57920] mod_fcgid: stderr: thrown
    in
    /home/user/domain.com/wp-includes/customize/class-wp-custom
    ize-header-image-control.php
    on line 17, referer: https://domain.com/wp-includes/customize/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    WordPress itself is compatible with PHP 8, so the problem may be a plugin or theme conflict. Please attempt to deactivate all plugins and switch to the default Twenty Twenty-One theme. If the problem goes away, re-activate them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to deactivate all plugins and change the theme for you while you’re still logged in without affecting normal visitors to your site.

    Thread Starter jassing

    (@jassing)

    Sure, i can do that; but how do I then upgrade PHP w/o affecting the rest of the site?

    Moderator James Huff

    (@macmanx)

    Oh, if you can’t access the Dashboard, then leave it on PHP 8 and try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).

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