changing background image not possible #315
Description
Has anyone an idea?
i try to set an Custom Background image. The Backend say "saved" but to Stock Image is already there.
Steps to reproduce
- open the Admin settings
- try to upload an picture
Actual behaviour
the image it´s not saved. After sing out from Nextcloud you see the old image.
Server configuration
Operating system:
Ubuntu 14.04 LTS
Web server:
Apache2 2.4.7
Database:
mysql
PHP version:
PHP 7.07
Nextcloud version: (see Nextcloud admin page)
9.0.52 (daily) Build:2016-07-05T09:09:27+00:00 6d9809e
Updated from an older Nextcloud/ownCloud or fresh install:
updated from 9.0.51
Where did you install Nextcloud from:
nextcloud.com
Signing status (Nextcloud 9.0 and above):
Signing status
No errors have been found.
List of activated apps:
App list
Enabled:
- activity: 2.2.1
- admin_audit: 1.0.0
- bookmarks: 0.7
- calendar: 1.2.2
- comments: 0.2
- contacts: 1.3.1.0
- dav: 0.1.6
- documents: 0.12.0
- fbsync: 1.8.2
- federatedfilesharing: 0.1.0
- federation: 0.0.4
- files: 1.4.4
- files_external: 0.5.2
- files_mv: 0.8.2
- files_pdfviewer: 0.8.1
- files_sharing: 0.9.1
- files_texteditor: 2.1
- files_trashbin: 0.8.0
- files_versions: 1.2.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 14.5.0
- libreonline: 0.1
- mail: 0.5.2
- music: true
- news: true
- notifications: 0.2.3
- ocdownloader: 1.5
- password_policy: 1.0.0
- provisioning_api: 0.4.1
- systemtags: 0.2
- tasks: true
- templateeditor: 0.1
- theming: 0.1.0
- updatenotification: 0.1.0
Disabled:
- encryption
- external
- galleryplus
- richdocuments
- user_external
- user_ldap
- user_saml
The content of config/config.php:
Config report
{
"system": {
"updatechecker": true,
"instanceid": "ocernowp783d",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud-surfer.eu"
],
"datadirectory": "\/mnt\/owncloud\/data",
"overwrite.cli.url": "https:\/\/cloud-surfer.eu",
"dbtype": "mysql",
"version": "9.0.52.0",
"logtimezone": "Europe\/Berlin",
"installed": true,
"maintenance": false,
"dbname": "owncloud2",
"dbhost": "127.0.0.1",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "lars",
"mail_smtpmode": "php",
"mail_domain": "cloud-surfer.eu",
"loglevel": 3,
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "localhost",
"port": 6379
},
"appstore.experimental.enabled": true,
"htaccess.RewriteBase": "\/",
"updater.server.url": "https:\/\/updates.nextcloud.org\/updater_server\/",
"updater.secret": "***REMOVED SENSITIVE VALUE***",
"theme": "",
"updater.release.channel": "daily"
}
}
Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: yes/no
no
Client configuration
Browser:
Chrome Browser
Operating system:
Windows 10
Logs
Web server error log
Web server error log
2016-07-05 20:50:09 Error 151.252.219.4 404 GET /apps/theming/styles.css?v=57 HTTP/1.1
Nextcloud log
Error: Call to undefined method OC\Server::getThemingDefaults() at /var/www/vhosts/cloud-surfer.eu/httpdocs/nextcloud/apps/theming/settings/settings-admin.php#29
Browser log
Browser Log:
GET https://cloud-surfer.eu/apps/theming/styles.css?v=57 (failed to load response data)
Activity
LukasReschke commentedon Jul 5, 2016
The generated link on your domain is
<link rel="stylesheet" href="/apps/theming/styles.css?v=58"/> </head>When performing a cURL request:
Please check back with your server config why a 404 is generated here, this seems very likely to be caused by it. It works fine with mod_rewrite enabled here and index.php-less URLs on my instance.
Happyfeet01 commentedon Jul 5, 2016
When I perform this curl command, I have this output
LukasReschke commentedon Jul 5, 2016
That's very likely because your cURL version is outdated. Update cURL to a version that supports the ciphers and protocols that your server uses.
hitam4450 commentedon Jul 6, 2016
Changing background picture works fine for me! (Web upgrade from 9.0.50 --> 9.0.52)
regards, hitam4450
Happyfeet01 commentedon Jul 6, 2016
I try to update the CURL version.
ctlui commentedon Jul 6, 2016
Got the same error (404) to load css (https://domain.ndd/apps/theming/styles.css?v=18)
after modding using theming apps.
Using Debian 8 / php 5.6
Thanks - Eric
Happyfeet01 commentedon Jul 8, 2016
It's not easy to update my curl version. :( Plesk is getting me crazy.
LukasReschke commentedon Jul 8, 2016
This has nothing to do with your installed cURL version but with your web server configuration.
Unless somebody comes up with reliable and easy steps to reproduce this you are likely on your own.
(easy steps = Download this Dockerfile and access Nextcloud)
savely-krasovsky commentedon Jul 9, 2016
I use nginx and solved problem by adding this:
So @LukasReschke was right. The problem is related with rewrite.
Bugsbane commentedon Jul 9, 2016
Yeah, I'm on Nginx with 9.0.52 and PHP 7.0.2 and I don't see this issue at all.
oparoz commentedon Jul 11, 2016
For me, this line is the one which is creating problems:
RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$which makes sense since it creates a special condition for css files.
In my opinion, it's a bad idea to name the route styles.css, if I name it just styles, then everything works.
LukasReschke commentedon Jul 11, 2016
Strange. That works just quite fine here, I suspect that your Apache and OS version interprets that ruleset then differently and just assumes the file might exists locally.
Anyways, good point. Let's change that to
/stylefor the next release then. 🚀LukasReschke commentedon Jul 11, 2016
@oparoz If you still have the branch locally a PR is welcome, otherwise I'm happy to do it as well :-)
oparoz commentedon Jul 11, 2016
Strange indeed. Probably an extra Apache directive enforcing that behaviour.
I was just tinkering, but that's a good excuse to set up a local server dev env :)
Make theming work with pretty URLs
oparoz commentedon Jul 11, 2016
PR with the fix is in #361
Make theming work with pretty URLs
savely-krasovsky commentedon Jul 12, 2016
Thanks for fix! Just updated some php-files, and deleted rewrite from nginx.conf and it still works pretty good.
fix(ui): correct update of image_pull and init progress in test deploy (