Plugin Support
wfphil
(@wfphil)
Hello,
After installing a fresh copy of Wordfence are you still receiving the 500 error response code?
Also can you add the debugging code below to your wp-config.php file. If you have re-named the Wordfence plugin can you change it back to activate the Plugin so that we can debug your issue.
The results will be in your /wp-content/debug.log file. If you would prefer to share the results privately then I will provide an email address for you to send the results. Please let me know.
You must insert the code below BEFORE /* That's all, stop editing! Happy blogging. */ in the wp-config.php file
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );
-
This reply was modified 9 years ago by
wfphil. Reason: Fixed code typo
Thanks. I added this to my config and re-instated the renamed WordFence plugin folder.
I’m not seeing a debug.log. I did a find via the shell to make sure it wasn’t ending up in an alternate directory.
They *do* have a non-standard content folder, defined (in config) with
define( ‘WP_CONTENT_DIR’, ‘/home/redacted/webapps/wp/content’ );
(I was sure to check that /wp/content folder for debug, but did not see a file there)
Plugin Support
wfphil
(@wfphil)
Hello,
One possibility is that running Wordfence on PHP 5.2 could be causing the 500 internal server error status code.
Our official recommendation for which version of PHP to use is below:
System Requirements – PHP Version Recommendation
Wordfence can function on older versions of PHP but upgrading to a newer version of PHP may solve your problem.
Also contact the hosting provider and see if they can offer any insights.
Plugin Support
wfphil
(@wfphil)
Hello,
As you haven’t replied to the instructions that I provided I will assume that the instructions did solve your issue and I will now mark this topic as resolved.
If however, for whatever reason, you are still experiencing this issue and it is not resolved please respond to the post, which moves it back up the queue, and mark this topic as “not resolved”.
Thank you.
Yes. Sorry I forgot to return. The solution for me was to update the PHP version I was using. For the reference of others, I did this by adding the following to my .htaccess
<FilesMatch \.php$>
SetHandler php54-cgi
</FilesMatch>
This may be different depending on host.
Plugin Support
wfphil
(@wfphil)
Hello,
Thank you very much for letting us know how you resolved your problem. It helps us and the Wordfence community in general when they are searching this forum.