Site logo

Archived topic

server error 500 inside wp-includes

10 replies · Started by Henry Bowman on September 15, 2018

Viewing posts 1–11 of 11

This is an ongoing problem we had noticed since we have started a daily close watch in Google search console. Every few months search console will throw us 50-80 500 server errors listed inside "wp-includes" The first few times we thought it was our server even though we could find nothing wrong and no programs or plugins were added or deleted. In a few days, normally after a wordpress, or another plugin like woocommerce had updates, we would see all the server errors disappear. We would ask google search console to re index and the whole process starts over again and each time there was no clear reason as to why the errors were there to begin with or how they were fixed.
We have attached a screen shot of one of the errors. It seems to be generally inside:
/wp-includes/widgets
/wp-includes/customize/
/wp-includes/SimplePie/

Has anyone seen this type of behavior and does it seem like it's related to the theme?
We are using Generate press Premium version 1.6.2

Hi there,

It looks server related to me. Your hosting should be able to investigate by looking into error_logs to find specific errors.

Unfortunately, we run the VPS up to the WHM level.
When we look at error logs in these directories, the only info was posted at the end of June Here is the error log for "simplepie":
[25-Jun-2018 16:10:41 UTC] PHP Fatal error: Class 'SimplePie' not found in /home/usanunch/public_html/wp-includes/SimplePie/Core.php on line 55
[26-Jun-2018 09:33:04 UTC] PHP Fatal error: Class 'SimplePie' not found in /home/usanunch/public_html/wp-includes/SimplePie/Core.php on line 55
[26-Jun-2018 11:23:16 UTC] PHP Fatal error: Class 'SimplePie' not found in /home/usanunch/public_html/wp-includes/SimplePie/Core.php on line 55
[26-Jun-2018 14:34:06 UTC] PHP Fatal error: Class 'SimplePie' not found in /home/usanunch/public_html/wp-includes/SimplePie/Core.php on line 55

Now, I must stress, I'm not a coder, but no changes have been made to any files manually, and if you go to the address above for "Core.php" on line 54-57 you see this:

class SimplePie_Core extends SimplePie
{

}

Right now we have PHP 7.0 running at 128M for the memory limit.

PS: this may be important. These errors only show up on the "smart phone" side of search console, not the normal desktop listing. We upped the memory limit to 256M but we are still getting these errors. We added the actual error be displayed on the page.

page: https://usanunchaku.com/wp-includes/customize/class-wp-customize-nav-menu-setting.php
error: Fatal error: Class 'WP_Customize_Setting' not found in /home/usanunch/public_html/wp-includes/customize/class-wp-customize-nav-menu-setting.php on line 21

WP_Customize_Setting was introduced in WP 3.4: https://developer.wordpress.org/reference/classes/wp_customize_setting/

If it's saying it's not found, your WordPress installation is incomplete. If it's not incomplete, it's failing to load the entire thing. This can happen when the memory limit is reached, but can also be other things. Unfortunately, I'm not a server expert, so I'm not much help when it comes to that.

Tom,
Thank you so much. Based on your latest info I was able to determine that it wasn't the WP install, or missing files, or the memory limit. What it turned out to be was some of the PHP ini settings in Aphache were set incorrectly when we migrated from PHP5.5 to PHP7. I discovered it when comparing older versions of PHP 5.5 to the latest we were running at PHP 7. I made the updates to the settings and all the errors have vanished.

Glad you found the issue :)

UPDATE: It turned out that the PHP upgrades did nothing but mask the error on Firefox and Edge, Google chrome was still showing the true problem. Here is what we discovered:
The directory indexing of the site was mistakenly set "open" or index-able at some point in the past. During that time a hacker scraped our site, and google search console tried to index all the contents of WordPress directories and files that are not meant to be placed on a browser page by themselves like "wp-includes" These pages or not meant to be "displayed and can not be without displaying throwing an error.
The solution was to of course turn off indexing. Shore up the robot.txt and .htaccess files and wait out google search console to stop looking for files it doesn't need to display our site.

Ahh - thanks for letting us know what was going on! Appreciate it :)

This archived topic is closed to new replies.