[Owncloud] updater.php error: Access to undeclared static property: OC::$APPSROOT

Victor Dubiniuk victor.dubiniuk at gmail.com
Wed Nov 14 22:08:07 UTC 2012


Hi Günter,

Sorry for that.
It's already fixed in a new version that is shipped with 4.5.2. The
simplest way to proceed is to change line #37 in *updater/appinfo/app.php:*

- 'apps' => \OC::$APPSROOT . DIRECTORY_SEPARATOR . 'apps',

+ 'apps' => \OC::APPSROOTS[0]['path'] . DIRECTORY_SEPARATOR . 'apps',



Alternatively you can upload the recent Updater. It doesn't require to
delete the temporary directory as well.
I pushed it here https://github.com/VicDeo/updater-025


[Wed Nov 14 21:44:39 2012] [error] [client xx.xxx.xxx.xx] client denied
> by server configuration: /srv/www/xxxxx.xxxxx.net/data/htaccesstest.txt
> which came from the server-ip as client itself.


it's ok. This location should not be accessible from the web. There is a
self-check implemented to prevent the user data from being compromised and
your log says that your data directory is safe.

---
Victor


On Wed, Nov 14, 2012 at 11:54 PM, chymian <chymian at gmx.net> wrote:

> hi,
> trying to update to 4.5.2 with the updater.php it threw me an error first:
> Unable to fetch package.
>
>
> the apache error-logs stated:
>
>  Wed Nov 14 21:31:55 2012] [error] [client 178.14.134.80] PHP Warning:
> mkdir(): File exists in
> /srv/www/xxxxx.xxxxx.net/apps/updater/lib/downloader.php on line 45,
> referer: https://xxxxx.xxxxx.net/settings/admin.php
>
> found out that it was trying to create the "backup/..." directory, which
> did exist, as leftover from a former update attempt.
>
> after moving that out of the way, I got the following error:
>
>
> [Wed Nov 14 21:37:20 2012] [error] [client 178.14.134.80] PHP Fatal
> error:  Access to undeclared static property: OC::$APPSROOT in
> /srv/www/xxxxx.xxxxx.net/apps/updater/appinfo/app.php on line 37,
> referer: https://xxxxxx.xxxxxx.net/settings/admin.php
>
> and the updater was staying on "Update in Progress", not doing anything
> else.
>
> reloading the page and started updater again, and it went back to the
> first error.
>
> so, what to do?
>
>
> don't know, whether the error further up in the apache log has anything
> to do with it:
>
> [Wed Nov 14 21:44:39 2012] [error] [client xx.xxx.xxx.xx] client denied
> by server configuration: /srv/www/xxxxx.xxxxx.net/data/htaccesstest.txt
>
> which came from the server-ip as client itself.
>
>
> TIA
> günter
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20121115/14d9a635/attachment.html>


More information about the Owncloud mailing list