• Resolved Shivam Pandey

    (@wikihelp360)


    Hello UpdraftPlus Team,

    I am getting this Fatal error: Uncaught Error: Call to undefined function disk_free_space() while restoring the backup. You can see the image below and please help me to fix this problem.

    UpdraftPlus Error.png

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Anderson

    (@davidanderson)

    The line numbers in that error suggest that you have a rather old UD version – please can you update UD and try again?

    Thread Starter Shivam Pandey

    (@wikihelp360)

    Hey @davidanderson

    I am using the latest UpdraftPlus 1.22.19 version. please help me to fix this problem.

    Plugin Author David Anderson

    (@davidanderson)

    The above error message says that disk_free_space is on line 1111 of admin.php.

    But in version 1.22.19 it is on line 1228 – https://plugins.trac.www.ads-software.com/browser/updraftplus/tags/1.22.19/admin.php .

    Analysing our release archive, the last time that that was on line 1111 was version 1.16.22, released February 2020. Can you post a screenshot of your UpdraftPlus screen where it shows the version number?

    David

    Thread Starter Shivam Pandey

    (@wikihelp360)

    I created a complete backup of my website with UpdraftPlus a week ago, after that, I installed a new WordPress website and restored my backup with the latest UpdraftPlus 1.22.19 version. But I am getting this error so please help me to fix this error.

    Plugin Author David Anderson

    (@davidanderson)

    > , I installed a new WordPress website and restored my backup with the latest UpdraftPlus 1.22.19 version.

    This means that the version of UpdraftPlus you now have installed is whatever was in the backup: restoring a backup replaces all your plugins, including UpdraftPlus.

    You should update again to the latest version. The issue you are facing was mitigated in an intervening version, so you won’t experience it if you update.

    Plugin Author David Anderson

    (@davidanderson)

    Alternatively you can do either of these:

    1) ask your web hosting company to stop disabling the PHP function disk_free_space(), which is the cause of the error.

    2) or, in your wp-config.php file, add this after the opening line:

    
    if (!function_exists('disk_free_space')) { function disk_free_space() { return false; } }
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error: Uncaught Error: Call to undefined function disk_free_space()’ is closed to new replies.