I am trying to:
Update my website to PHP 8.1, as security support is ending with my hosting for PHP 8.0 and older versions. They will automatically update sites to PHP 8.1 on February 29.
When updating to PHP 8.1, links that use rewrite in custom post types do not work. Does not work from frontend or backend - clicking "view" under competitions post type (for example) in dashboard, will not take me to the page. The link displays "this page does not exist" even though the link from backend WordPress dashboard is this link.
Link to a page where the issue can be seen:
Link is for the staging website - hidden link
Use server protection details to access staging site.
I expected to see:
Links to function.
Instead, I got:
Links do not function, breaking website.
Ok I think troubleshooting actually fixed it! Unless you guys did something behind the scenes so please let me know whether you did anything before I close the thread.