• Resolved conciseac

    (@conciseac)


    Every page I try and save I get an error 500.

    Here’s the error log.

    Any ideas how to fix?

    [client 58.123.123.123:58013] PHP Fatal error: Uncaught Error: Call to undefined function WpAssetCleanUp\\array_key_first() in /nas/content/live/name/wp-content/plugins/wp-asset-clean-up/classes/Misc.php:416\nStack trace:\n#0 /nas/content/live/name/wp-content/plugins/wp-asset-clean-up/classes/Main.php(1230): WpAssetCleanUp\\Misc::fetchActivePluginsIcons()\n#1 [internal function]: WpAssetCleanUp\\Main->ajaxFetchActivePluginsIcons(”)\n#2 /nas/content/live/name/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)\n#3 /nas/content/live/name/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)\n#4 /nas/content/live/name/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#5 /nas/content/live/name/wp-admin/admin-ajax.php(99): do_action(‘wp_ajax_wpasset…’)\n#6 {main}\n thrown in /nas/content/live/name/wp-content/plugins/wp-asset-clean-up/classes/Misc.php on line 416, referer: https://my-site.com/wp-admin/

    • This topic was modified 5 years, 9 months ago by conciseac.
Viewing 1 replies (of 1 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @conciseac As we discussed via email, the error was triggering because you used an older version of Asset CleanUp with PHP 5. array_key_first(), the function that is not recognized, it not available until PHP 7. The plugin was updated to support PHP 5 users too without getting any 500 errors anymore.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin causing an Error 500 with all pages (here’s error log)’ is closed to new replies.