Fatal Error: timezone database is corrupt after PHP upgrade
-
Test site using Ubuntu 20.04 WordPress 6.6.1 PHP Version 8.3
Two days ago there was an upgrade to PHP to version 8.3.11-1. Now when I try to access the site, I get the dreaded “Fatal Error: timezone database is corrupt” error. This occurred right after the PHP updates were installed. Other non-wordpress parts of the site using PHP work fine, and they are using the PHP datetime class and setting the timezone.
I am a programmer, and so I have no problem messing about with PHP code, and the system. There are suggestions that this can be caused by the timezone database directories and files having the wrong privileges, but this isn’t the case as far as I can tell. /usr/share/zoneinfo directories and files are owned by root, and everyone has read access.
Fortunately this isn’t the production site, so it isn’t urgent, but I would like to get it solved.
Any suggestions?
The topic ‘Fatal Error: timezone database is corrupt after PHP upgrade’ is closed to new replies.