Wordpress and php 8.1

admin2025-01-07  5

I am trying to run wordpress 6.7.1 on ubuntu 24.04 with nginx and php8.1-fpm. This is a fresh wordpress install with theme Twenty Twenty-Five and no plugins installed. I also disabled any cache.

I am noticing very unstable behavior. Pages are displayed incorrectly or only partially. Is wordpress really running with php8.1?

I am trying to run wordpress 6.7.1 on ubuntu 24.04 with nginx and php8.1-fpm. This is a fresh wordpress install with theme Twenty Twenty-Five and no plugins installed. I also disabled any cache.

I am noticing very unstable behavior. Pages are displayed incorrectly or only partially. Is wordpress really running with php8.1?

Share Improve this question asked Dec 14, 2024 at 11:20 Thomas AichingerThomas Aichinger 1496 bronze badges 6
  • Yes, with minor caveats which would not explain the described behaviors. There is likely some configuration issue with your hosting environment or installation – bosco Commented Dec 14, 2024 at 19:05
  • Yes, I know the published statements by Automattic very well. But the reality is different. It's very simple. Take an Ubuntu 22.04 with a standard installation of Apache and PHP and you will find that it does not work. The statement that it is due to the configuration is irrelevant because if it takes 100 hours for this unusual installation, it is as good as if it does not work. And by the way, nobody has been able to show me a working Wordpress site with PHP 8 yet. – Thomas Aichinger Commented Dec 15, 2024 at 9:36
  • 1 56.7% of WordPress sites phoning home to .org are running on top of PHP 8. I just failed to reproduce the described behaviors on a barebones LAMP with WP 6.7.1 and PHP 8.1.2 on an Ubuntu 24.04 DO Droplet with 1 gig of RAM - everything loads and operates as expected. Snappier than I remember, even. If you still believe WP to be the culprit you could file a Trac ticket - I would have myself, had I managed to reproduce the behaviors. Short of that, I suggest asking in a more general community, and including more details. – bosco Commented Dec 16, 2024 at 7:18
  • That doesn't help me at all. I don't want WordPress hosted on DigitalOcean, and I assume most WordPress users don't either. For me, at least, WordPress does not work with PHP 8.0, 8.1, or 8.2 when using the PHP repository ppa.launchpadcontent.net/ondrej/php/ubuntu. I've tried this multiple times with different ubuntu and wordpress versions, and as soon as I switch to PHP 7.4, everything works without any issues. – Thomas Aichinger Commented Dec 16, 2024 at 11:39
  • All I am saying is that I spent an hour trying to reproduce your issue as you described it by setting up a LAMP stack on a VPS from scratch and I could not. I did not change any of Ubuntu's package repositories and cannot divine why your situation would be different. There isn't enough information here for anyone else to guess at a solution either - though hosting and environment configuration issues are off-topic here, anyway. I wish you the best of luck in resolving the matter - I've never seen it before and have no idea what it could be. – bosco Commented Dec 16, 2024 at 14:29
 |  Show 1 more comment

1 Answer 1

Reset to default 1

After hours of investigation and heavy testing I found the reason. Uninstall the php-extension php8.1-uopz changed everything.

It seems uopz will break every wordpress. I hope this information will help others not to install it.

Thanks to Bosco, he made me take a closer look at this issue.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736259432a588.html

最新回复(0)