-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to a member function getFileInfo() on a non-object #11584
Comments
@hanspansen can you run the following SQL query: The first error in the log seems to imply that for some reason the files app has no "type" field. |
In deed it has NOT! ;) It's called "typeS<<<" By the way, using Apache 2.4 and PHP 5.5 let disappear the getFileInfo error, but WebDAV still do not work. |
Please apply this patch to resolve the first issue: #11634 Then let us know whether the FileInfo issue still appears, which might be another issue. |
Hello everyone, I posed the below question to my "go to" ownCloud resource and he referred me here. I am a real beginner, be gentle.. I wanted to make sure that this patch addresses the issue I describe? If so, what are the steps to apply this patch? I'm running Ubuntu server 14.04, Apache 2.4.7, and MySQL 5.5.40
|
@actyler555 has confirmed that the patch did not fix |
@icewind1991 can you take care of this ? |
#11091 makes some improvements to the loading of the filesystem. @actyler555 or @hanspansen can you try if that solves the issue |
Thanks for your response Robin. You’ll have to forgive me, total noob here. Vincent gave me these instructions for downloading suggested patches: If it is the same process for installing your suggested update, can you give me the https:// URL like below? Tried clicking in the post and got: https://github.com/owncloud/core/pull/11091/files.. Doesn’t look right to me. -Adam
|
@actyler555 looks like https://github.com/owncloud/core/pull/11091.patch (PR number + .patch) does the trick |
Thanks man! I will give it a go. -Adam From: Vincent Petry [mailto:notifications@github.com] @actyler555https://github.com/actyler555 looks like https://github.com/owncloud/core/pull/11091.patch (PR number + .patch) does the trick — IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, you should contact the sender and delete the message. Any unauthorized disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature. This email may be privileged and protected under applicable law as related to quality assurance. |
Hmm.. So I downloaded to the /var/www/owncloud folder and ran the patch command. Looks like there were some errors and now it is waiting for additional input of some kind. Sitting at a “File to patch:” prompt. What gets entered there? -Adam adminuser@OWNCLOUDSERVER:/var/www/owncloud$ sudo patch -p1 < 11091.patch The text leading up to this was:|diff --git a/tests/lib/files/cache/updaterlegacy.php b/tests/lib/files/cache/updaterlegacy.php |+++ b/tests/lib/files/cache/updaterlegacy.phpFile to patch: From: Vincent Petry [mailto:notifications@github.com] @actyler555https://github.com/actyler555 looks like https://github.com/owncloud/core/pull/11091.patch (PR number + .patch) does the trick — IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, you should contact the sender and delete the message. Any unauthorized disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature. This email may be privileged and protected under applicable law as related to quality assurance. |
Yes... the patch only applies against master, not against stable7 or OC 7. @icewind1991 can you try and provide a simpler fix ? |
Bummer! Doesn't look like 7.0.3 RC1 is ready for prime time just yet. I was really just looking to resolve this one issue by upgrading: owncloud-archive/apps#1947 (comment) Any way to apply a fix for this specific issue on the current stable release of ownCloud 7? |
do you guys still observe this issue? thx |
Steps to reproduce
3.
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
Server configuration
Operating system: Amazon Linux 2013.09
Web server: Apache 2.2.26
Database: MySQL 5.6.16
PHP version: 5.3.28
ownCloud version: 7.0.2.3 (daily 2014-10-14)
Updated from an older ownCloud or fresh install: Updated from 7.0.2 stable/official
List of activated apps: standard
The content of config/config.php: standard
Are you using external storage, if yes which one: Dropbox, GoogleDrive, WebDAV - preconfigured (but (still) not working) S3
Are you using encryption: no
Client configuration
Browser: irrelevant, same effect on all tested browsers and WebDAV clients.
Operating system: irrelevant, same effect on all tested browsers and WebDAV clients.
Logs
Web server error log
[Tue Oct 14 21:11:30 2014] [error] [client 213.209.77.185] PHP Fatal error: Call to a member function getFileInfo() on a non-object in /var/www/vhosts/owncloud/apps/files/appinfo/remote.php on line 50
ownCloud log (data/owncloud.log)
{"app":"PHP","message":"Illegal offset type in isset or empty at /var/www/vhosts/owncloud/lib/private/app.php#138","level":3,"time":"2014-10-14T20:42:39+00:00"}
{"app":"PHP","message":"Call to a member function getFileInfo() on a non-object at /var/www/vhosts/owncloud/apps/files/appinfo/remote.php#49","level":3,"time":"2014-10-14T20:42:48+00:00"}
...
{"app":"PHP","message":"Call to a member function getFileInfo() on a non-object at /var/www/vhosts/owncloud/apps/files/appinfo/remote.php#50","level":3,"time":"2014-10-14T21:11:30+00:00"}
The text was updated successfully, but these errors were encountered: