<div dir="ltr">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.<br>Thank You</div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Thu, Jul 4, 2013 at 12:26 PM, Jakob Sack <span dir="ltr"><<a href="mailto:mail@jakobsack.de" target="_blank">mail@jakobsack.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
the Filesystem gets set up once the user logs in.<br>
On a guest page there is no known user, you have to initialize the filesystem by hand:<br>
<br>
OC\Files\Filesystem::init($<u></u>user, $root)<br>
<br>
Hope that helps,<br>
<br>
Jakob<br>
<br>
Am 04.07.2013 07:37, schrieb Tharindu Dhananjaya Galappaththi:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Im trying to call "OCFilesFilesystem::getPath($<u></u>fileId);" method from a<div class="im"><br>
guest page. But it gives me this error.<br>
<br>
PHP Fatal error: Call to a member function getPath() on a non-object<br>
in /var/www/owncloud5/lib/files/<u></u>filesystem.php on line 638, <br>
<br>
Since the guest page is loaded with out a user being logged in, this<br>
error occurs. <br></div>
when a user is logged in to the ownCloud, this error doesnt happen. <br>
<br>
Please help.<br>
Thank You<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/owncloud</a><br>
</blockquote></div><br></div>