• Resolved nicolaottomano

    (@nicolaottomano)


    Hi,
    with the last update I receive the following error:

    Fatal error: Uncaught Error: Call to undefined function WpAssetCleanUp\array_key_first() in /web/htdocs/www.mywebsite.it/home/wp-content/plugins/wp-asset-clean-up/classes/Misc.php:416
    Stack Trace
    thrown in /web/htdocs/www.mywebsite.it/home/wp-content/plugins/wp-asset-clean-up/classes/Misc.php on line 416
    1. WpAssetCleanUp\Misc::fetchActivePluginsIcons()/web/htdocs/www.mywebsite.it/home/wp-content/plugins/wp-asset-clean-up/classes/Main.php:1230
    2. WpAssetCleanUp\Main->ajaxFetchActivePluginsIcons(”)/web/htdocs/www.mywebsite.it/home/wp-includes/class-wp-hook.php:286
    3. WP_Hook->apply_filters(”, Array)/web/htdocs/www.mywebsite.it/home/wp-includes/class-wp-hook.php:310
    4. WP_Hook->do_action(Array)/web/htdocs/www.mywebsite.it/home/wp-includes/plugin.php:453
    5. do_action(‘wp_ajax_wpasset…’)/web/htdocs/www.mywebsite.it/home/wp-admin/admin-ajax.php:99
    6. {main}

    With previous versions all was fine

    Could you please help me?

    Thanks,

    Nicola

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

    (@gabelivan)

    @nicolaottomano thanks for reporting this. This shouldn’t affect the plugin’s functionality for your users in any way.

    The error which affects servers with PHP version lower than 7, is from a function that gets the plugins’ icons and shows them next to each plugin title when viewing the CSS & JS list if they are sorted by location (which is the default view since version 1.2.9.3). However, I understand that’s is annoying to get it in the Apache/Nginx’s logs and not to see the icons when you have a big list.

    My apologies for this inconvenience! I’ve released version 1.2.9.4 that fixes this. Please do the update whenever you have the chance and you won’t see that error again!

    Thread Starter nicolaottomano

    (@nicolaottomano)

    Dear @gabelivan
    thanks for your kind support.
    I installed the 1.2.9.4 and now it works as expected.

    Just to specify, my wordpress installation runs on PHP 7.1.12.

    Best regards,

    Nicola

    We are encountering this happening now as well, and are running on 1.2.9.5

    Below is what we are seeing when updating a product in admin.

    Fatal error: Uncaught Error: Call to undefined method WpAssetCleanUp\Settings::clearAllCache() in /home/xxxxxxxx/public_html/wp-content/plugins/wp-asset-clean-up/classes/Update.php:259 Stack trace: #0 /home/xxxxxxxxx/public_html/wp-includes/class-wp-hook.php(288): WpAssetCleanUp\Update->savePost(60830) #1 /home/xxxxxxxxx/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/xxxxxxxxx/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/xxxxxxxxx/public_html/wp-includes/post.php(3747): do_action(‘save_post’, 60830, Object(WP_Post), false) #4 /home/xxxxxxxxx/public_html/wp-includes/revision.php(300): wp_insert_post(Array) #5 /home/xxxxxxxx/public_html/wp-includes/revision.php(186): _wp_put_post_revision(Array) #6 /home/xxxxxxxxxx/public_html/wp-includes/class-wp-hook.php(288): wp_save_post_revision(40389) #7 /home/xxxxxxxxx/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #8 /home/xxxxxxxxx/public_html/wp-includes/plugin.php(453): WP_Hook- in /home/xxxxxxxxx/public_html/wp-content/plugins/wp-asset-clean-up/classes/Update.php on line 259

    Thank you,
    Chris

    • This reply was modified 5 years, 10 months ago by cnrwholesale.
    Plugin Author Gabe Livan

    (@gabelivan)

    @cnrwholesale I believe you’re encountering a different Fatal error, as I’ve just checked and array_key_first() is not used anymore. Can you copy and paste the error here (you can hide sensitive information such as the server path to the PHP file etc.)?

    Had to edit the post, sorry. It is there now.

    Plugin Author Gabe Livan

    (@gabelivan)

    I just checked and all looks good on the repository. Please delete the plugin (no worries, the settings will be preserved) and then install it again from the www.ads-software.com repository. Let me know how it goes! We’ll fix this, no worries ??

    Plugin Author Gabe Livan

    (@gabelivan)

    @cnrwholesale I’ve released a new tag 1.2.9.6 which will prompt you to update (within your Dashboard) as soon as possible. My apologies for the inconvenience!

    That did it, thank you so much for your help.. you are an asset to wp..

    Chris

    Plugin Author Gabe Livan

    (@gabelivan)

    @cnrwholesale that’s great! Always happy to fix things! Whenever you have a chance, if you found the plugin useful, please leave it a review as it would help me raise awareness to other members of the WordPress community.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal Error’ is closed to new replies.