• Resolved bassquake

    (@bassquake)


    I updated WordPress to 6.8 which went ok. Then I had to change the php version from 7.3 to 8.3 on the server. Now I get errors. I’m assuming something is out of date.

    This is the log I see when adding to wp-config.php:

    // Enable WP_DEBUG mode
    define( ‘WP_DEBUG’, true );
    // Enable Debug logging to the /wp-content/debug.log file
    define( ‘WP_DEBUG_LOG’, true );

    Debug log info:

    ————————-

    [28-Apr-2025 10:12:32 UTC] PHP Deprecated: Creation of dynamic property W3TC\PgCache_ContentGrabber::$_late_caching is deprecated in /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 159
    [28-Apr-2025 10:12:32 UTC] PHP Deprecated: Creation of dynamic property W3TC\PgCache_ContentGrabber::$_nginx_memcached is deprecated in /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 163
    [28-Apr-2025 10:12:32 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_kses() in /homepages/35/d106865815/htdocs/wp-includes/functions.php:6105
    Stack trace: 0 /homepages/35/d106865815/htdocs/wp-includes/functions.php(5831): wp_trigger_error() 1 /homepages/35/d106865815/htdocs/wp-includes/wp-db.php(13): _deprecated_file() 2 /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/DbCache_WpdbBase.php(4): require_once(‘/homepages/35/d…’) 3 /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/w3-total-cache-api.php(157): require(‘/homepages/35/d…’) 4 /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/DbCache_Wpdb.php(8): w3tc_class_autoload() 5 /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/w3-total-cache-api.php(157): require(‘/homepages/35/d…’) 6 /homepages/35/d106865815/htdocs/wp-content/db.php(41): w3tc_class_autoload() 7 /homepages/35/d106865815/htdocs/wp-includes/load.php(708): require_once(‘/homepages/35/d…’) 8 /homepages/35/d106865815/htdocs/wp-settings.php(134): require_wp_db() 9 /homepages/35/d106865815/htdocs/wp-config.php(88): require_once(‘/homepages/35/d…’) 10 /homepages/35/d106865815/htdocs/wp-load.php(50): require_once(‘/homepages/35/d…’) 11 /homepages/35/d106865815/htdocs/wp-admin/admin.php(35): require_once(‘/homepages/35/d…’) 12 /homepages/35/d106865815/htdocs/wp-admin/index.php(10): require_once(‘/homepages/35/d…’) 13 {main}

    thrown in /homepages/35/d106865815/htdocs/wp-includes/functions.php on line 6105
    [28-Apr-2025 10:12:32 UTC] PHP Deprecated: Creation of dynamic property W3TC\PgCache_ContentGrabber::$_late_caching is deprecated in /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 159
    [28-Apr-2025 10:12:32 UTC] PHP Deprecated: Creation of dynamic property W3TC\PgCache_ContentGrabber::$_nginx_memcached is deprecated in /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 163
    [28-Apr-2025 10:12:32 UTC] PHP Deprecated: Creation of dynamic property W3TC\PgCache_ContentGrabber::$_page_group is deprecated in /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 347
    [28-Apr-2025 10:12:32 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_kses() in /homepages/35/d106865815/htdocs/wp-includes/functions.php:6105
    Stack trace: 0 /homepages/35/d106865815/htdocs/wp-includes/functions.php(5831): wp_trigger_error() 1 /homepages/35/d106865815/htdocs/wp-includes/wp-db.php(13): _deprecated_file() 2 /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/DbCache_WpdbBase.php(4): require_once(‘/homepages/35/d…’) 3 /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/w3-total-cache-api.php(157): require(‘/homepages/35/d…’) 4 /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/DbCache_Wpdb.php(8): w3tc_class_autoload() 5 /homepages/35/d106865815/htdocs/wp-content/plugins/w3-total-cache/w3-total-cache-api.php(157): require(‘/homepages/35/d…’) 6 /homepages/35/d106865815/htdocs/wp-content/db.php(41): w3tc_class_autoload() 7 /homepages/35/d106865815/htdocs/wp-includes/load.php(708): require_once(‘/homepages/35/d…’) 8 /homepages/35/d106865815/htdocs/wp-settings.php(134): require_wp_db() 9 /homepages/35/d106865815/htdocs/wp-config.php(88): require_once(‘/homepages/35/d…’) 10 /homepages/35/d106865815/htdocs/wp-load.php(50): require_once(‘/homepages/35/d…’) 11 /homepages/35/d106865815/htdocs/wp-blog-header.php(13): require_once(‘/homepages/35/d…’) 12 /homepages/35/d106865815/htdocs/index.php(17): require(‘/homepages/35/d…’) 13 {main}

    thrown in /homepages/35/d106865815/htdocs/wp-includes/functions.php on line 6105

    ———————

    If I rename plugins folder so they dont load I get these errors:

    ———————

    [28-Apr-2025 10:29:49 UTC] PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /homepages/35/d106865815/htdocs/wp-content/themes/hiero/inc/widgets/widget-preview-post.php:12
    Stack trace: 0 /homepages/35/d106865815/htdocs/wp-content/themes/hiero/inc/custom-widgets.php(50): require() 1 /homepages/35/d106865815/htdocs/wp-content/themes/hiero/functions.php(223): require(‘/homepages/35/d…’) 2 /homepages/35/d106865815/htdocs/wp-settings.php(695): include(‘/homepages/35/d…’) 3 /homepages/35/d106865815/htdocs/wp-config.php(88): require_once(‘/homepages/35/d…’) 4 /homepages/35/d106865815/htdocs/wp-load.php(50): require_once(‘/homepages/35/d…’) 5 /homepages/35/d106865815/htdocs/wp-admin/admin.php(35): require_once(‘/homepages/35/d…’) 6 /homepages/35/d106865815/htdocs/wp-admin/index.php(10): require_once(‘/homepages/35/d…’) 7 {main}

    thrown in /homepages/35/d106865815/htdocs/wp-content/themes/hiero/inc/widgets/widget-preview-post.php on line 12

    ————————–

    Help appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator threadi

    (@threadi)

    The errors occur in the plugins you are using. These do not seem to be compatible with PHP 8.3 in the version you have installed.

    You have several possible solutions:

    • Switch back to PHP 7.3 or 7.4 and update all plugins and themes there first, then change the PHP version again.
    • You could also manually install the latest versions of the plugins. This could be done via FTP. I.e. you download the ZIP files of the plugins from their plugin page and upload them unzipped via FTP to the respective plugin directory under /wp-content/plugins/. Your hoster’s support team can tell you how to connect via FTP.
    • You could also simply delete the affected plugins. You would also have to do this via FTP.

    As far as I can see, the affected plugin is W3TotalCache, but it cannot be ruled out that others are affected. Also the theme “hiero” you are using does not seem to be compatible with PHP newer than 8.0. The same applies here as with the plugins.

    Thread Starter bassquake

    (@bassquake)

    Ok thanks! Seem to be getting somewhere now:

    • Reverted on server to php 7.3.
    • Renamed w3-total-cache folder to stop errors and could then finally login to the sites wordpress admin.
    • Then updated all the plugins.
    • Changed PHP to 8.3.
    • Update any remaining plugins.

    But it seems the Hiero theme is causing final issue so I have the site using a basic theme called Twenty-Twenty-Five.

    There doesnt seem to be a Hiero anymore on WordPress, probably been taken down or outdated. https://wordpress.org/themes/hiero/

    This is the error i get when attempting to use it:

    ——————-

    Fatal error: Uncaught Error: Call to undefined function create_function() in /homepages/35/d106865815/htdocs/wp-content/themes/hiero/inc/widgets/widget-preview-post.php:12 Stack trace: #0 /homepages/35/d106865815/htdocs/wp-content/themes/hiero/inc/custom-widgets.php(50): require() #1 /homepages/35/d106865815/htdocs/wp-content/themes/hiero/functions.php(223): require(‘/homepages/35/d…’) #2 /homepages/35/d106865815/htdocs/wp-settings.php(695): include(‘/homepages/35/d…’) #3 /homepages/35/d106865815/htdocs/wp-config.php(88): require_once(‘/homepages/35/d…’) #4 /homepages/35/d106865815/htdocs/wp-load.php(50): require_once(‘/homepages/35/d…’) #5 /homepages/35/d106865815/htdocs/wp-admin/admin.php(35): require_once(‘/homepages/35/d…’) #6 /homepages/35/d106865815/htdocs/wp-admin/customize.php(13): require_once(‘/homepages/35/d…’) #7 {main} thrown in /homepages/35/d106865815/htdocs/wp-content/themes/hiero/inc/widgets/widget-preview-post.php on line 12

    There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

    Learn more about troubleshooting WordPress.

    ———————

    I would like to continue using the theme as its a good one so any pointers would be helpful!

    • This reply was modified 11 months ago by bassquake. Reason: spelling
    Shubham Patil

    (@iamshubhamsp)

    Hi @bassquake
    Yes, in this case you are facing issue with the theme because your theme is not up to date with the latest php version codes. So, you need to check if your theme is having update or either if you are using paid theme then you need to contact with the theme support.

    Thread Starter bassquake

    (@bassquake)

    I managed to find a v 1.8.4 whichs seems to work! Yay! Previous broken ones tried were 1.8.2 and 1.8.3.

    Pasting link to themes files on the wordpress site in case anyone needs it: https://themes.trac.wordpress.org/changeset/137518/

    Download the zip archive at the bottom of the page.

    Moderator threadi

    (@threadi)

    I’m glad you were able to solve it. However, it’s only a matter of time before the theme becomes a problem again. In that case, you’ll have to decide whether to ask someone to customize it for you or to use a new one. You can find someone to do this here, for example: https://jobs.wordpress.net/

    Once the issue has been resolved for you, you are welcome to set it to solved.

    Thread Starter bassquake

    (@bassquake)

    Yes youre right. Itll probably break when have to switch to php 8.4 next year!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Updated PHP and now site doesnt work’ is closed to new replies.