Can’t use functions defined in functions.php
-
I’ve taken over development of a WordPress system not originally done by me and have run into a couple of niggles. One is to do with problems with logging, which I’ve mentioned in a separate post. Another is that for some reason I cannot use custom functions which I have defined in functions.php in a page I am working on – when I make a request to the page it results in a 500 error. If I define the function within the page it works fine, but not if defined in functions.php (or in another file called with ‘require_once’). I would have hoped that the reason for the 500 error would be written to a log somewhere but it doesn’t appear in the nginx error.log, nor in /var/log/php7.4-fpm.log, so I don’t know where it is being written, if anywhere (maybe it would be written to debug.log, but that isn’t showin, as mentioned in my other post).
- The topic ‘Can’t use functions defined in functions.php’ is closed to new replies.