D
P
0
← All articles

Topic

WordPress & PHP in Production

The most painful WordPress bugs rarely show up in the error log: a filter that runs but renders nothing, one setting stored under two option keys, a PHP 8 fatal masquerading as out-of-memory. These are real incidents from client sites, from a functions.php edit that locked out wp-admin to a second WP_Query clobbering a reserved global. Read this if you maintain custom themes or plugins and something in production 'makes no sense'.

23 articles

Start here

Adding a require_once to a Live functions.php Locked Me Out of wp-admin, and the Recovery Tool With It

I uploaded a functions.php that require_once'd a new inc/*.php file, but I hadn't uploaded the new file yet. The result: a fatal error, 'critical error on this website', and the File Manager plugin I deploy with went down too. Here's how to prevent and recover from it.

Read More