PHP Error 500 on Feed URLs
-
The page generates the proper XML, however, PHP (7.1) throws an error 500. Looks like the plugin assumes the Tag passed to getElementsByTagName() is valid and let’s PHP generate the error if it’s not a valid tag.
[12-Feb-2019 13:46:41 UTC] PHP Warning: DOMDocument::loadHTML(): Tag wfw:commentrss invalid in Entity, line: 195 in /var/www/example/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/CombineCss.php on line 83
[12-Feb-2019 13:46:41 UTC] PHP Warning: DOMDocument::loadHTML(): Tag slash:comments invalid in Entity, line: 196 in /var/www/example/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/CombineCss.php on line 83
[12-Feb-2019 13:46:41 UTC] PHP Fatal error: Uncaught Error: Call to a member function getElementsByTagName() on null in /var/www/example/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/CombineCss.php:90
Stack trace:
#0 [internal function]: WpAssetCleanUp\OptimiseAssets\CombineCss->WpAssetCleanUp\OptimiseAssets\{closure}(‘<?xml version=”…’, 9)
#1 /var/www/example/wp-includes/functions.php(3813): ob_end_flush()
#2 /var/www/example/wp-includes/class-wp-hook.php(286): wp_ob_end_flush_all(”)
#3 /var/www/example/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#4 /var/www/example/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#5 /var/www/example/wp-includes/load.php(684): do_action(‘shutdown’)
#6 [internal function]: shutdown_action_hook()
#7 {main}
thrown in /var/www/example/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/CombineCss.php on line 90
[12-Feb-2019 13:46:43 UTC] PHP Warning: filemtime(): stat failed for /var/www/example/wp-content/cache/asset-cleanup/_storage/www.example.com/feed/css-combined.json in /var/www/example/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/CombineCommon.php on line 225The page I need help with: [log in to see the link]
The topic ‘PHP Error 500 on Feed URLs’ is closed to new replies.