• Resolved mgargiullo

    (@mgargiullo)


    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 225

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @mgargiullo I’ve noticed this issue weeks ago and quickly released a fix and everything was fine on my tests. Didn’t know that it could be like this in PHP 7.1. Thanks for reporting it! I will double check it and immediately release an update. Feed URLs must always work! Can you send me on private ( to gabe @ bitrepository .dot com ) your “System Info” from “Tools” (plugin’s menu)?

    PS: Can you update Asset CleanUp to the latest version and let me know if you still have this issue? You made reference to CombineCss.php which is a file belonging to an older version of the plugin.

    • This reply was modified 7 years, 3 months ago by Gabe Livan.
    Plugin Author Gabe Livan

    (@gabelivan)

    Update: Just tested this in PHP 7.1 and everything looks good as feed URLs and any URLs without any stylesheet tags are excluded from the CSS combination feature (the PHP code that does the processing is not triggered). Consider updating to the latest version: 1.1.1.3.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Error 500 on Feed URLs’ is closed to new replies.