The line numbers in that error suggest that you have a rather old UD version – please can you update UD and try again?
Hey @davidanderson
I am using the latest UpdraftPlus 1.22.19 version. please help me to fix this problem.
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.wordpress.org/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
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.
> , 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.
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; } }