Need to update my Twenty Eleven theme to work with PHP 8.0

[ad_1]

Needed to update my Twenty Eleven theme to work with PHP 8.0

​

I am upgraded to WP v6.1.1 running on PHP7.4

​

Hosting plan is currently on PHP 7.4 and is forcing an update to PHP8

So, I upgraded my hosting plan to PHP 8.2

​

Currently running theme “Twenty Eleven”, which is not compatible with PHP 8 (only PHP 7)

I can’t recall the error/crash, but it occurred in the theme code.

​

So, I needed to update my theme.

I updated my theme to Twenty Twenty, and this works with PHP8.2

​

So, now I am on WP v6.1.1, PHP8.2, and theme 2020.

And the site is working!

​

Now, I just need to carry over my category exclusion code from functions.php

​

Does it seem like I did things correctly?

If so, this post may help the next guy.

​

[ad_2]
1 Comment
  1. Twenty-Eleven is a core theme, it work with PHP 8.2 just like WP core. Did you directly modify the theme’s template files?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer