[Owncloud] \OC\Files\Filesystem::getPath($fileId);

Tharindu Dhananjaya Galappaththi tdgalappaththi at gmail.com
Thu Jul 4 07:01:39 UTC 2013


could you please tell me how to initialize it by hand? I tried, but failed.
I have been asking this question several times but no help. If you can
please help me.
Thank You


On Thu, Jul 4, 2013 at 12:26 PM, Jakob Sack <mail at jakobsack.de> wrote:

> Hello,
>
> the Filesystem gets set up once the user logs in.
> On a guest page there is no known user, you have to initialize the
> filesystem by hand:
>
> OC\Files\Filesystem::init($**user, $root)
>
> Hope that helps,
>
> Jakob
>
> Am 04.07.2013 07:37, schrieb Tharindu Dhananjaya Galappaththi:
>
>> Im trying to call "OCFilesFilesystem::getPath($**fileId);" method from a
>>
>> guest page. But it gives me this error.
>>
>> PHP Fatal error:  Call to a member function getPath() on a non-object
>> in /var/www/owncloud5/lib/files/**filesystem.php on line 638,
>>
>> Since the guest page is loaded with out a user being logged in, this
>> error occurs.
>> when a user is logged in to the ownCloud, this error doesnt happen.
>>
>> Please help.
>>  Thank You
>>
>
> ______________________________**_________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130704/97fd0e9a/attachment.html>


More information about the Owncloud mailing list