| Author |
|
solkmaaker Senior Member

Joined: 28 June 2020
Online Status: Offline Posts: 194
|
| Posted: 16 April 2026 at 8:44am | IP Logged
|
|
|
Version 9.8.4
When moving files (to folder or to trash) ui displays error: Data transfer has failed, probably due to server error. Please contact system administrator.
Debug log says:
Code:
[15:10:53.26][ddab8c98] PHP[NOTICE]: /var/www/vendor/afterlogic/dav/lib/DAV/FS/PropertyStorageTrait.php [line:179, code:8192]
[15:10:53.26][ddab8c98] PHP[NOTICE]: Error: Automatic conversion of false to array is deprecated
|
|
|
I have: error_reporting = E_ALL
If i set it to be error_reporting = E_ALL & ~E_DEPRECATED then error message does not appear.
Is following "fix" ok or does it create problems somewhere else?
Or is it better to set error_reporting = E_ALL & ~E_DEPRECATED
Code:
public function putResourceData(array $newData)
{
$path = $this->getResourceInfoPath();
$data = $this->readResourceData($path);
// FIX - ensure $data is always an array
if (!is_array($data)) {
$data = [];
}
$handle2 = fopen($path, 'w');
$data[$this->getName()] = $newData;
rewind($handle2);
fwrite($handle2, json_encode($data));
fclose($handle2);
}
|
|
|
|
| Back to Top |
|
| |