core icon indicating copy to clipboard operation
core copied to clipboard

Unable to upload files 5.0 RC1

Open cnccld opened this issue 13 years ago • 37 comments

Expected behaviour

Upload a file or create a directory

Actual behaviour

There isn't upload button

Steps to reproduce

  1. Fresh install
  2. Try to upload a file or to create a dir

Server configuration

Operating system: Ubuntu server 12.04

Web server: Apache/2.2.14 (Ubuntu) Server

PHP version: PHP Version 5.3.2-1ubuntu4.18

ownCloud version: 5.0 RC1

Client configuration

Browser: All

Operating system: All

With a fresh install there isn't the button to upload a file or to create a directory On te same server the 4.5.7 works good. In the apache vhost config there is already Allowoverride All

Schermata 2013-03-01 alle 13 22 18 Schermata 2013-03-01 alle 13 22 31

cnccld avatar Mar 01 '13 12:03 cnccld

please double check if the web server user has write access to the folders/subfolders.

Upload will be disabled if there are not enough rights

https://github.com/owncloud/core/issues/2001#issuecomment-14278009

DeepDiver1975 avatar Mar 01 '13 12:03 DeepDiver1975

the permissions seem good:

/var/www/owncloud drwxr-xr-x 14 www-data www-data 4096 2013-03-01 13:13 owncloud

/var/www/owcloud/data drwxrwx--- 3 www-data www-data 4096 2013-03-01 13:14 data

/var/www/owncloud/data/admin drwxr-xr-x 3 www-data www-data 4096 2013-03-01 13:13 admin

/var/www/owncloud/data/admin/files drwxr-xr-x 2 www-data www-data 4096 2013-03-01 13:13 files

Also with a chmod -R 777 not work.

cnccld avatar Mar 01 '13 13:03 cnccld

Some logs:

{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"PHP","message":"Undefined index: size at /var/www/owncloud/lib/helper.php#804","level":2,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024} {"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148024} {"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148024} {"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148024} {"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148024} {"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148024} {"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148025} {"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148025} {"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148025} {"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148025} {"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at /var/www/owncloud/lib/hook.php#72","level":2,"time":1362148025}

cnccld avatar Mar 01 '13 14:03 cnccld

Ouch!

@icewind1991 any idea? THX

DeepDiver1975 avatar Mar 01 '13 14:03 DeepDiver1975

On a fresh install of ubuntu work good

cnccld avatar Mar 01 '13 17:03 cnccld

Same Problem

im1981 avatar Mar 01 '13 19:03 im1981

so this is an upgrade issue?

BernhardPosselt avatar Mar 01 '13 22:03 BernhardPosselt

I had done a fresh install. On Ubuntu.

im1981 avatar Mar 01 '13 23:03 im1981

can you try the latest master version on git? I can create textfiles just fine

BernhardPosselt avatar Mar 01 '13 23:03 BernhardPosselt

I had tried the latest version from github, last time pulled this afternoon.

My System: PHP Version 5.3.2-1ubuntu4.18

ownCloud version: 5.0 RC1

im1981 avatar Mar 01 '13 23:03 im1981

Can't reproduce here with PHP 5.4.10 on OS X 10.8

LukasReschke avatar Mar 01 '13 23:03 LukasReschke

which apps do you use?

BernhardPosselt avatar Mar 01 '13 23:03 BernhardPosselt

To minimize error vector i disabled all apps except calendar, contacts and files. Exactly as ccianciulli described 4.5.7 works good.

im1981 avatar Mar 02 '13 00:03 im1981

Enabled the same apps as you, still cant reproduce. In that case i need a more detailed description how i can reproduce it.

BernhardPosselt avatar Mar 02 '13 09:03 BernhardPosselt

@Raydiation which PHP Version do you use, which OS?

Mine is: PHP Version 5.3.2-1ubuntu4.18 the same as @ccianciulli uses.

im1981 avatar Mar 02 '13 16:03 im1981

@im1981 PHP 5.4.12 archlinux

BernhardPosselt avatar Mar 02 '13 16:03 BernhardPosselt

@im1981 starting from a new installation of Ubuntu (ubuntu-12.04.2-server-amd64.iso), upgrading the distro and installing owncloud 5.0 RC1 there aren't problem. The only edit needed is the AllowOverride All in /etc/apache2/sites-avaiable/default for the /var/www/ directory.

cnccld avatar Mar 02 '13 16:03 cnccld

@ccianciulli is this documented :D? in the admin manual. Because if this is needed, it should be

BernhardPosselt avatar Mar 02 '13 16:03 BernhardPosselt

Distro upgrade is not an option in my case. My System meets all oc requirements.

im1981 avatar Mar 02 '13 16:03 im1981

Very strange that the local storage class is not found. Can you confirm that the file /lib/files/storage/local.php exists?

MTGap avatar Mar 02 '13 19:03 MTGap