NC 10.0 Can't change Logo with module "Theming"

Hello,

Since NC10.0 it seem i can’t change logo with module “Theming” it say “save” and nothing happend
Change background work well
If someone have an idea

Please provide more information. What type of image have you used? Which size? Can you link us an image that doesn’t work for you (must not be your actual logo, it only must fail on your system)? Can you have a look into your logfiles (Nextcloud/webserver/browser log)?

Thank for your answer, i’ve made a manuel update from NC 9.0.52

Its a simple png file 85ko, maybe i can test with a fresh install NC 10.0

Log File:

{“reqId”:“sxrmLpPskUeA6hKgiOIt”,“remoteAddr”:“10.2.3.7”,“app”:“index”,“message”:“Exception:
{“Exception”:“OCP\\Files\\NotPermittedException”,“Message”:”",“Code”:0,“Trace”:"#0
\/var\/www\/nextcloud-10.0.0\/apps\/theming\/lib\/Controller\/ThemingController.php(179):
OC\\Files\\Node\\File->fopen(‘w’)\n#1 [internal function]:
OCA\\Theming\\Controller\\ThemingController->updateLogo()\n#2
\/var\/www\/nextcloud-10.0.0\/lib\/private\/AppFramework\/Http\/Dispatcher.php(160):
call_user_func_array(Array, Array)\n#3
\/var\/www\/nextcloud-10.0.0\/lib\/private\/AppFramework\/Http\/Dispatcher.php(90):
OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Theming\\Controller\\ThemingController),
‘updateLogo’)\n#4
\/var\/www\/nextcloud-10.0.0\/lib\/private\/AppFramework\/App.php(111):
OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Theming\\Controller\\ThemingController),
‘updateLogo’)\n#5
\/var\/www\/nextcloud-10.0.0\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47):
OC\\AppFramework\\App::main(‘ThemingControll…’, ‘updateLogo’,
Object(OC\\AppFramework\\DependencyInjection\\DIContainer),
Array)\n#6 [internal function]:
OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#7
\/var\/www\/nextcloud-10.0.0\/lib\/private\/Route\/Router.php(293):
call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler),
Array)\n#8 \/var\/www\/nextcloud-10.0.0\/lib\/base.php(967):
OC\\Route\\Router->match(’\/apps\/theming\/a…’)\n#9
\/var\/www\/nextcloud-10.0.0\/index.php(48):
OC::handleRequest()\n#10
{main}",“File”:"\/var\/www\/nextcloud-10.0.0\/lib\/private\/Files\/Node\/File.php",“Line”:98}",“level”:3,“time”:“2016-09-12T08:19:00+00:00”,“method”:“POST”,“url”:"/index.php/apps/theming/ajax/updateLogo",“user”:“admin”}

@nickvergessen Can you help out interpreting this logfile? Are there permissions missing at some point?

[SOLVED]
After a chown -R www-data on my NC Folder WORKING

Thank for your help!

Yeah, pretty much: OCP\\Files\\NotPermittedException on fopen('w') looks like missing write permissions for the webserver on that folder.

Since NC 11 have a similar issue.

{“reqId”:"<…>",“remoteAddr”:"",“app”:“index”,“message”:“Exception: {“Exception”:“InvalidArgumentException”,“Message”:”$absolutePath must be relative to \“files\”",“Code”:0,“Trace”:"#0 \/var\/www\/nextcloud\/lib\/private\/Files\/View.php(1900): OC\\Files\\View->getPathRelativeToFiles(’\/themedinstance…’)\n#1 \/var\/www\/nextcloud\/lib\/private\/Files\/View.php(1997): OC\\Files\\View->lockPath(’\/themedinstance…’, 1, false)\n#2 \/var\/www\/nextcloud\/lib\/private\/Files\/View.php(1110): OC\\Files\\View->lockFile(’\/themedinstance…’, 1)\n#3 \/var\/www\/nextcloud\/lib\/private\/Files\/View.php(967): OC\\Files\\View->basicOperation(‘fopen’, ‘\/themedinstance…’, Array, ‘w’)\n#4 \/var\/www\/nextcloud\/lib\/private\/Files\/Node\/File.php(94): OC\\Files\\View->fopen(’\/themedinstance…’, ‘w’)\n#5 \/var\/www\/nextcloud\/apps\/theming\/lib\/Controller\/ThemingController.php(189): OC\\Files\\Node\\File->fopen(‘w’)\n#6 [internal function]: OCA\\Theming\\Controller\\ThemingController->updateLogo()\n#7 \/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(160): call_user_func_array(Array, Array)\n#8 \/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(90): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Theming\\Controller\\ThemingController), ‘updateLogo’)\n#9 \/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php(114): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Theming\\Controller\\ThemingController), ‘updateLogo’)\n#10 \/var\/www\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\\AppFramework\\App::main(‘ThemingControll…’, ‘updateLogo’, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#11 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#12 \/var\/www\/nextcloud\/lib\/private\/Route\/Router.php(299): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)\n#13 \/var\/www\/nextcloud\/lib\/base.php(1010): OC\\Route\\Router->match(’\/apps\/theming\/a…’)\n#14 \/var\/www\/nextcloud\/index.php(40): OC::handleRequest()\n#15 {main}",“File”:"\/var\/www\/nextcloud\/lib\/private\/Files\/View.php",“Line”:2068}",“level”:3,“time”:“December 16, 2016 00:01:38”,“method”:“POST”,“url”:"/index.php/apps/theming/ajax/updateLogo",“user”:“admin”,“version”:“11.0.0.10”}

PS: have set the owner to www-data. Logs like an other problem:
$absolutePath must be relative to \“files\”",“Code”:0,“Trace”:"#0 \\

Any ideas?