core icon indicating copy to clipboard operation
core copied to clipboard

Server 5.0 [error] PHP Fatal error: Call to a member function getRoot() on a non-object in /owncloud/lib/files/filesystem.php on line 318, referer: http://owncloud/index.php

Open Wikinaut opened this issue 13 years ago • 25 comments

After a fresh installation of version 5.0 on a fresh "Raspian" (Debian on Raspberry) system

OC 5.0 as such does work; I am reporting just the incident in the error log file to improve code quality. As mentioned. fresh installation. Using MySQL.

server error log file

[error] PHP Fatal error: Call to a member function getRoot() on a non-object in /owncloud/lib/files/filesystem.php on line 318, referer: http://owncloud/index.php

Wikinaut avatar Mar 17 '13 09:03 Wikinaut

Same error message as #2116 and #2327

\cc @icewind1991

LukasReschke avatar Mar 17 '13 10:03 LukasReschke

Additional infos:

  • I am not using cron. Just a plain fresh installed oc.
  • /owncloud/data directory outside the web-accessible path

Wikinaut avatar Mar 17 '13 10:03 Wikinaut

Hi,

I have same message on ubuntu 12.04, owncloud 5.0 fresh install with Mysql : mod_fcgid: stderr: PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/clients/client8/web28/web/lib/files/filesystem.php on line 318

Each time my cron task are executed, two lines of this error are write.

genohunter avatar Mar 19 '13 09:03 genohunter

Same - fresh install from scratch (data directory is symlinked from outside owncloud dir). Cron starts spamming errors, try by running hand and get same:

root@cloud:/var/www# php5 ./cron.php PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/lib/files/filesystem.php on line 318 Unexpected error!

Switched to AJAX for now under admin settings.

zeugmatis avatar Mar 21 '13 00:03 zeugmatis

Hey

the same here.

apache2/error.log --> PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud5/lib/files/filesystem.php on line 318, referer: https://xxx/index.php

and in owncloud.log --> {"app":"PHP","message":"Call to a member function getRoot() on a non-object at /var/www/owncloud5/lib/files/filesystem.php#318","level":4,"time":1363843215}

Erik8219 avatar Mar 21 '13 05:03 Erik8219

I have the same (line 313) : [Wed Mar 20 14:18:29 2013] [error] [client ip.ip.ip.ip] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 313, referer: https://myserver/owncloud/index.php

heaven988 avatar Mar 21 '13 09:03 heaven988

I have the same error. [Thu Mar 21 23:30:28 2013] [error] [client ip.ip.ip.ip] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 313, referer: http://homeserver/owncloud/

Same as Issue 2478 and more. All close but I could not find the solution in those postings......

Langzaam avatar Mar 21 '13 22:03 Langzaam

any solution/workaround to this issue?

lcx avatar Mar 23 '13 11:03 lcx

Same problem for me on a fresh install of version 5.0 on a Mac OS X Server. Line 318 for me.

netman49 avatar Mar 25 '13 15:03 netman49

Same error message with version 5.0.

PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch

fungiboletus avatar Mar 25 '13 15:03 fungiboletus

I can confirm the same issue on a freshly installed 5.0 on debian squeeze.

martinhoefling avatar Mar 25 '13 20:03 martinhoefling

I can also confirm this, fresh 5.0 install on Centos 6.4 x64 with PHP 5.3.3:

[Tue Mar 26 14:27:17 2013] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/html/owncloud/lib/files/filesystem.php on line 318, referer: https://owncloud.xxxxx.co.uk:5000/public.php?service=files&t=ecc7cdd49a08bb6a192a0ee44347908d

Occurs while trying to load an image up by an external client that's been shared.

wantastic avatar Mar 26 '13 14:03 wantastic

This happens for me, when uploading an already existing file and replacing it.

csware avatar Mar 31 '13 01:03 csware

I'd hate to be yet another person describing this issue --- but what I've noticed is that it's really rendered the versioning system dysfunctional in my case. Since upgrading to Owncloud 5 (previous build was 4.5.7), there are no versions for any file I've uploaded in the system files or the web interface. I've uploaded duplicate files numerous times and attempted to add them using the upload button, drag and drop, webdav. and to top that it doesn't even put the files in the trashbin for me to restore anywhere but rather gets rid of the file completely.

@Raydiation are you going to close this issue and link to other issue numbers which you have also closed? It's kind of circular and it leaves anything related to this closed.

naderatrec avatar Mar 31 '13 17:03 naderatrec

THe latest source from git (stable5 branch) fixes this for me.

csware avatar Mar 31 '13 19:03 csware

@csware were you able to successfully replace files and get versions?

naderatrec avatar Mar 31 '13 19:03 naderatrec

@naderatrec Just do a full clone of the core repo, checkout stable5 and do the same with the apps repo (as described there).

csware avatar Mar 31 '13 19:03 csware

The last update solved it to me. Couldn't find any errors yet.

Erik8219 avatar Apr 05 '13 09:04 Erik8219

@Erik8219 - Great to hear! What's the best way to upgrade to the newest version? Just copy all the files over the existing ones?

In my Admin panel the HTML code is showed under Updater. Is that normal :-) Schermafbeelding 2013-04-05 om 11 40 20

netman49 avatar Apr 05 '13 09:04 netman49

@netman49 https://github.com/owncloud/apps/issues/939

VicDeo avatar Apr 05 '13 09:04 VicDeo