Replies: 1
I couldn’t view my WordPress site – or even log in to admin. I looked at my PHP error logs and saw countless errors saying:
PHP Fatal error: require_once(): Failed opening required '/[path]/wp-content/plugins/foogallery/includes/constants.php' (include_path='.:/[path]/php71/lib/php') in /[path]/wp-content/plugins/foogallery/foogallery.php on line 28
This of course immediately implicated the FooGallery plugin, so I FTPd in and renamed the plugin folder.
Bingo – the site was once again visible and I could log in.
Looking at the foogallery.php file mentioned in the error logs I noticed that there were many non-standard characters, which my text editor BBEdit renders as upside-down question-marks.
The line 28 in the foogallery.php file is:
require_once FOOGALLERY_PATH . 'includes/constants.php';
… but there is no includes directory !
My site and login was working fine the other day so I have no idea what has happened to this plugin. All I do know is that it broke my site – badly!