Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic Aurora

 AfterLogic Forum : AfterLogic Aurora
Subject Topic: Error message while moving files. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 194
Posted: 16 April 2026 at 8:44am | IP Logged Quote solkmaaker

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 View solkmaaker's Profile Search for other posts by solkmaaker
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide