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 <[email protected]> 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 > [email protected] > https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud> >
_______________________________________________ Owncloud mailing list [email protected] https://mail.kde.org/mailman/listinfo/owncloud
