• Resolved Peter Smits

    (@psmits1567)


    Hi,
    The latest version of your plugin fails to update
    Fatal error: Uncaught Error: Call to undefined function set_time_limit() in /www/wp-admin/includes/class-wp-upgrader.php:471 Stack trace: #0 /www/wp-admin/includes/class-wp-upgrader.php(797): WP_Upgrader->install_package(Array) #1 /www/wp-admin/includes/class-plugin-upgrader.php(137): WP_Upgrader->run(Array) #2 /www/wp-admin/update.php(171): Plugin_Upgrader->install(‘/www/wp-content…’, Array) #3 {main} thrown in /www/wp-admin/includes/class-wp-upgrader.php on line 471
    Would you be so kind to investigate this please
    WordPress 5.7 gebruikt thema: Avant Portfolio.
    PHP version 8.0
    Regards,
    Peter

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Peter Smits

    (@psmits1567)

    Hi,

    Just to let you know that I could fix this problem by disabling the indicated line within the script.
    /www/wp-admin/includes/class-wp-upgrader.php on line 471
    Seems to be a WordPress version problem
    Regards,
    Peter

    No problems here. Updated fine and also runs backups ok.

    I’m running the latest version of everything, WP included, except php. For that I’m on 7.4. I think php 8 still has some teething and compatibility problems because it is still a very new and very different version.

    Thread Starter Peter Smits

    (@psmits1567)

    Thanks Sean

    I will see if I can find the cause of this problem. But in my opinion a function call not present is strange.
    Regards,
    Peter

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    > But in my opinion a function call not present is strange.

    On PHP 8.0, if your web host disables a function, then any code (such as the WP updater, apparently) that calls that code does not simply pass over it: it throws a fatal error. See: https://php.watch/versions/8.0/disable_functions-redeclare

    So, to update plugins, you could either define that function (e.g. in an mu-plugin) or hand-edit WP to remove that line, or ask your web hosting company to not disable it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Update of plugin fails’ is closed to new replies.