Forum Replies Created
Kahuna updated today and it looks like this has now been fixed.
Same issue here. I did post about it a few weeks ago but my post hasn’t appeared. Kahuna theme for me.
@zed Seems this is still an issue, for Kahuna at least. I’ve held off PHP 8 but no longer can as my host won’t support PHP 7 any more.
“Warning: Trying to access array offset on value of type null in /[path]/wp-content/themes/kahuna/includes/loop.php on line 295”
Any chance this bug is going to be fixed? I can’t really use galleries any more!
Works fine in Twenty Twenty One here as well. It also used to work fine in Kahuna. I don’t have any optimisation plugins or anything that affects the styling, and disabling as many plugins as I can makes no difference.
Having the same issue here with the Kahuna theme:
I’ve just noticed I get a similar error. If I search my site, and a blog post without a Featured Image is found, this error comes up:
Warning: Trying to access array offset on value of type null in /[path-to-wp-removed]/wp-content/themes/kahuna/includes/loop.php on line 295
I’ve found that the server is running PHP 8.1, and if I change it to 7.4 then the error goes away.
I think this is because in PHP 7 if you try to get the contents of an empty (or non-existent, perhaps) array you get a response of “null”, whereas in PHP 8 you get *nothing*, and so an error. Willing to bet your errors are for the same reason, and if you can change your server to PHP 7.4 it’ll fix it for now until Kahuna gets updated to work with PHP 8+ fully.
OK, thanks. So long as it’s more by design and not because it’s broken, I can live with that!