Theming app broken after Wordpress install

Hey, after installing wordpres on the same php fpm socket i first encountered this issue. My default background would not load anymore. I got some php issue regarding a openbase_dir restrction i nerver saw before. After some research i could not figure out what was wrong. I created a new fpm socket for both nextcloud and wordpress but it still did not work. After more research and some permission errors i just chmod 766 the appdata folder in my data dir. Still nothing. I would reinstall the theming app but its a system app so nothing again. My last try was deleting the theming folder and now i can not upload any background without the following error: "Could not create path “/appdata_ocpqi314ikas/theming/global/images/background”. Nginx throws errors about “upstream prematurely closed FastCGI request while reading upstream”.

My nextcloud logs(just repeats around 200 times):

{"reqId":"AyEyVOMRemZK8qiP6ntb","level":3,"time":"2024-02-17T18:58:36+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"PHP","method":"GET","url":"/apps/theming/image/logoheader?v=18","message":"file_get_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/logoheader): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#327","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"AyEyVOMRemZK8qiP6ntb","level":3,"time":"2024-02-17T18:58:36+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"index","method":"GET","url":"/apps/theming/image/logoheader?v=18","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":70,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":241,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"KTosvLnSJkU5zgPrQIfv","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"PHP","method":"GET","url":"/apps/theming/image/logoheader?v=18","message":"file_get_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/logoheader): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#327","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"KTosvLnSJkU5zgPrQIfv","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"index","method":"GET","url":"/apps/theming/image/logoheader?v=18","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":70,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":241,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"aiLkRq59BEe7LIcMgJE2","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"--","app":"PHP","method":"GET","url":"/apps/theming/image/logoheader?v=18","message":"file_get_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/logoheader): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#327","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"aiLkRq59BEe7LIcMgJE2","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"--","app":"index","method":"GET","url":"/apps/theming/image/logoheader?v=18","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":70,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":241,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"0ZghQ9unRpiHBPHnMqP7","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"--","app":"PHP","method":"GET","url":"/apps/theming/image/logo?v=18","message":"file_get_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/logo): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#327","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"0ZghQ9unRpiHBPHnMqP7","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"--","app":"index","method":"GET","url":"/apps/theming/image/logo?v=18","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":70,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":241,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"whLrilDMqrLjq3rl6kZk","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"--","app":"PHP","method":"GET","url":"/apps/theming/image/favicon?v=18","message":"file_get_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/favicon): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#327","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"whLrilDMqrLjq3rl6kZk","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"--","app":"index","method":"GET","url":"/apps/theming/image/favicon?v=18","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":70,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":241,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"HW6gAkUgmjMRKu7R0wa1","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"PHP","method":"GET","url":"/apps/theming/favicon/settings?v=04a059a0","message":"file_get_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/favicon.png): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#327","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"HW6gAkUgmjMRKu7R0wa1","level":3,"time":"2024-02-17T18:58:41+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"index","method":"GET","url":"/apps/theming/favicon/settings?v=04a059a0","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":70,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":241,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"mjTn9porMs2Jh0lOuJwr","level":3,"time":"2024-02-17T18:58:42+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"PHP","method":"GET","url":"/apps/theming/image/favicon?v=18","message":"file_get_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/favicon): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#327","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"0qO3BOsDfv66c3l6wSq0","level":3,"time":"2024-02-17T18:58:42+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"PHP","method":"GET","url":"/apps/theming/image/logo?v=18","message":"file_get_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/logo): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#327","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"mjTn9porMs2Jh0lOuJwr","level":3,"time":"2024-02-17T18:58:42+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"index","method":"GET","url":"/apps/theming/image/favicon?v=18","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":70,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":241,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"0qO3BOsDfv66c3l6wSq0","level":3,"time":"2024-02-17T18:58:42+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"index","method":"GET","url":"/apps/theming/image/logo?v=18","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":70,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":241,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"X8JFlZEUuLavlzm5PVir","level":3,"time":"2024-02-17T18:58:42+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"PHP","method":"GET","url":"/apps/theming/image/logoheader?v=18","message":"file_get_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/logoheader): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#327","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"X8JFlZEUuLavlzm5PVir","level":3,"time":"2024-02-17T18:58:42+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"index","method":"GET","url":"/apps/theming/image/logoheader?v=18","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":70,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":241,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"WIjakej1TMC2u2QMA2fb","level":3,"time":"2024-02-17T18:59:11+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"PHP","method":"POST","url":"/apps/theming/ajax/uploadImage","message":"file_put_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/background): Failed to open stream: Is a directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#335","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"j77b85lN3svFXObJPXcp","level":3,"time":"2024-02-17T19:08:02+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"PHP","method":"POST","url":"/apps/theming/ajax/uploadImage","message":"file_put_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/background): Failed to open stream: Is a directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#335","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"xD8vBMLr18ENtfhdAts9","level":3,"time":"2024-02-17T19:13:03+00:00","remoteAddr":"79.253.143.6","user":"finn","app":"index","method":"GET","url":"/apps/theming/favicon/dashboard?v=e82dcd64","message":"Could not create folder \"/appdata_ocpqi314ikas/theming/global/21\"","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\NotPermittedException","Message":"Could not create folder \"/appdata_ocpqi314ikas/theming/global/21\"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php","line":105,"function":"newFolder","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ImageManager.php","line":159,"function":"newFolder","class":"OC\\Files\\SimpleFS\\SimpleFolder","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ImageManager.php","line":174,"function":"getCacheFolder","class":"OCA\\Theming\\ImageManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/Controller/IconController.php","line":138,"function":"getCachedImage","class":"OCA\\Theming\\ImageManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getFavicon","class":"OCA\\Theming\\Controller\\IconController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","Line":162,"message":"Could not create folder \"/appdata_ocpqi314ikas/theming/global/21\"","exception":{},"CustomMessage":"Could not create folder \"/appdata_ocpqi314ikas/theming/global/21\""}}

...```

The github referred my to here so i hope i get any answers ._.

For the sake of stability, you should create an fpm pool for each of Nextcloud and Wordpress.

The default pool is defined in the file

  • /etc/php/<version>/fpm/pool.d/www.conf

… in the [www] section

You can simply copy that file as

  • /etc/php/<version>/fpm/pool.d/wordpress.conf

… and rename the [www] into [wordpress]

and/or

  • /etc/php/<version>/fpm/pool.d/nextcloud.conf

… with a corresponding [nextcloud] section

There you can define an own socket for each pool.

That will ensure that no nextcloud code gets into Wordpress and vice versa no Wordpress code gets into nextcloud.


I’m afraid that this error is a result of mixing both servers, but if you have removed WordPress or separated it cleanly, then you could try to fix it with

./occ  files:scan-app-data theming

These are just my 2 cents.


Much and good luck,
ernolf

1 Like

Hello ernolf,
firstly thanks for your quick answer. I already separated my two services and I used your command. It said it found 5 folders and 6 files and I re-applied the 755 permission for security reasons. Still I can’t not set any background picture. Every time I upload some PNG file I get the following error displayed on the web interface: “Could not create path “/appdata_ocpqi314ikas/theming/global/images/background” and the following in the log file: “{“reqId”:“fyATyjWr7D1aQk5VItDQ”,“level”:3,“time”:“2024-02-17T23:29:42+00:00”,“remoteAddr”:“79.253.143.6”,“user”:“finn”,“app”:“PHP”,“method”:“POST”,“url”:”/apps/theming/ajax/uploadImage”,“message”:“file_put_contents(/nextcloud-data/appdata_ocpqi314ikas/theming/global/images/background): Failed to open stream: Is a directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#335”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Safari/605.1.15”,“version”:“28.0.2.5”,“data”:{“app”:“PHP”}}" and at least nothing in my Nginx log. I think this issue started while I was debugging my first problem. Somewhere in this forum I read that I should delete the theming folder. It somehow got recreated and a 21 folder with some files is preset. I just do not know what I should try next, because I don’t want to reinstall everything again

Thos is the cli output of my approach to set the imagine manually:

root@gve-cloud:/# sudo -u www-data php --define apc.enable_cli=1 -f /var/www/nextcloud/occ theming:config background /nextcloud-data/background.png 

In Folder.php line 193:
                                                                                  
  Could not create path "/appdata_ocpqi314ikas/theming/global/images/background"  
                                                                                  

theming:config [-r|--reset] [--] [<key> [<value>]]

root@gve-cloud:/# 

My data folder is /nextcloud-data just for context

Hey little update: It’s working now. I recreated all folders and I can now finally set my wallpaper again. Really strange how this all began and even occurred. Thanks ernolf :slight_smile:

1 Like