Cant enable theme

Hey there,
im trying to enable the theme example from there:

i do everything but it still says: mynewtheme not found
i changed everything id … but it will still doesnt work

had anyone the same problems?

Thanks for ur help

Hello Chris,

can you post a “ls -la” on your apps folder?

Best Regards

Dmitry

drwxrwxrwx 54 www-data www-data 4096 Jun 2 10:17 .
drwxr-xr-x 14 www-data www-data 4096 Jun 2 10:14 …
drwxr-xr-x 9 www-data www-data 4096 Jun 21 2021 activity
drwxr-xr-x 5 www-data www-data 4096 Jun 17 2021 admin_audit
drwxr-xr-x 9 www-data www-data 4096 Jun 18 2021 announcementcenter
drwxr-xr-x 7 www-data www-data 4096 Jan 12 14:29 comments
drwxr-xr-x 6 www-data www-data 4096 Apr 16 2019 configreport
drwxr-xr-x 9 www-data www-data 4096 Jun 24 2021 customgroups
drwxr-xr-x 6 www-data www-data 4096 Jan 12 14:29 dav
drwxr-xr-x 9 www-data www-data 4096 May 28 2021 encryption
drwxr-xr-x 4 www-data www-data 4096 Jul 23 2020 enterprise_key
drwxr-xr-x 10 www-data www-data 4096 Apr 16 2019 external
drwxr-xr-x 9 www-data www-data 4096 Jan 12 14:29 federatedfilesharing
drwxr-xr-x 9 www-data www-data 4096 Jan 12 14:29 federation
drwxr-xr-x 10 www-data www-data 4096 Jan 12 14:29 files
drwxr-xr-x 9 www-data www-data 4096 May 31 2021 files_antivirus
drwxr-xr-x 10 www-data www-data 4096 Apr 27 2021 files_classifier
drwxr-xr-x 11 www-data www-data 4096 Jan 12 14:29 files_external
drwxr-xr-x 7 www-data www-data 4096 Dec 6 2019 files_external_dropbox
drwxr-xr-x 5 www-data www-data 4096 Dec 11 2018 files_external_ftp
drwxr-xr-x 10 www-data www-data 4096 Jun 8 2020 files_ldap_home
drwxr-xr-x 10 www-data www-data 4096 Jun 23 2021 files_lifecycle
drwxr-xr-x 6 www-data www-data 4096 Nov 9 2021 files_mediaviewer
drwxr-xr-x 9 www-data www-data 4096 Oct 5 2021 files_pdfviewer
drwxr-xr-x 10 www-data www-data 4096 Jan 12 14:29 files_sharing
drwxr-xr-x 8 www-data www-data 4096 Oct 12 2021 files_texteditor
drwxr-xr-x 10 www-data www-data 4096 Jan 12 14:29 files_trashbin
drwxr-xr-x 8 www-data www-data 4096 Jan 12 14:29 files_versions
drwxr-xr-x 12 www-data www-data 4096 Jun 23 2021 firewall
drwxr-xr-x 10 www-data www-data 4096 Apr 16 2019 firstrunwizard
drwxr-xr-x 6 www-data www-data 4096 Dec 10 2020 graphapi
drwxr-xr-x 7 www-data www-data 4096 Sep 9 2021 guests
drwxr-xr-x 8 www-data www-data 4096 Dec 28 15:10 market
drwxr-xr-x 9 www-data www-data 4096 Mar 16 2021 metrics
-rw-rw-r-- 1 www-data www-data 170066 Jun 2 10:17 mynewtheme
drwxrwxr-x 4 www-data www-data 4096 Jun 2 09:31 mynewtheme1
drwxr-xr-x 9 www-data www-data 4096 Jun 30 2021 notifications
drwxr-xr-x 10 www-data www-data 4096 Nov 2 2021 oauth2
drwxr-xr-x 6 www-data www-data 4096 Nov 17 2021 openidconnect
drwxr-xr-x 9 www-data www-data 4096 Jul 5 2021 password_policy
drwxr-xr-x 5 www-data www-data 4096 Jan 12 14:29 provisioning_api
drwxr-xr-x 8 www-data www-data 4096 Jun 18 2020 ransomware_protection
drwxr-xr-x 11 www-data www-data 4096 Jun 5 2020 sharepoint
drwxr-xr-x 9 www-data www-data 4096 Jan 12 14:29 systemtags
drwxr-xr-x 9 www-data www-data 4096 Jul 7 2020 systemtags_management
drwxr-xr-x 9 www-data www-data 4096 Nov 29 2018 templateeditor
drwxr-xr-x 5 www-data www-data 4096 Jul 5 2021 theme-enterprise
drwxr-xr-x 7 www-data www-data 4096 Jan 12 14:29 updatenotification
drwxr-xr-x 5 www-data www-data 4096 Nov 28 2019 user_external
www-data@srv01:~/owncloud/apps$
drwxr-xr-x 12 www-data www-data 4096 Jun 18 2020 user_shibboleth
drwxr-xr-x 8 www-data www-data 4096 Dec 28 15:57 web
drwxr-xr-x 10 www-data www-data 4096 Oct 28 2021 windows_network_drive
drwxr-xr-x 10 www-data www-data 4096 Oct 5 2021 wopi
drwxr-xr-x 9 www-data www-data 4096 Jul 13 2021 workflow

Can you try to execute:

chown -R --reference=metrics mynewtheme1
chmod -R --reference=metrics mynewtheme1
occ a:en mynewtheme1

www-data@srv01:~/owncloud/apps$ chown -R --reference=metrics mynewtheme1
www-data@srv01:~/owncloud/apps$ chmod -R --reference=metrics mynewtheme1
www-data@srv01:~/owncloud/apps$ occ a:en mynewtheme1
www-data is not in the sudoers file. This incident will be reported.
www-data@srv01:~/owncloud/apps$ cd /var/www/owncloud/
www-data@srv01:~/owncloud$ occ a:en mynewtheme1
www-data is not in the sudoers file. This incident will be reported.

Okay, you have to enable it how you tried to enable it last time :slight_smile:

Apparently your wrapper script is not correctly configured.

Can you do a cat on the occ file?

It should be in /usr/local/bin/occ

hi dimitry,
here the cat.

www-data@srv01:/usr/local/bin$ cat occ
#! /bin/bash
cd /var/www/owncloud
sudo -E -u www-data /usr/bin/php /var/www/owncloud/occ “$@”

i tried it to enable. still doesnt work

please write down your command with the output.

also - please do a cat on the info.xml inside your app

how i need to do it.
i open the info.xml with nano in powersheel
where and how i need to write the cat?

info.xml is on your server, for linux every file is just a text file, so you can “cat info.xml” and you get the output of the file on your commandline.

ok i do it. now i see the whole info.xml inside my powershell
what now?

Can you post (copy) the output in here as you did with the occ script?

hey dmitry,
its to long for posting it here.
Did u need all lines or just a few for the importand informations?

The info.xml for a theme? Maybe you’re talking about something else. My info.xml is only 16 lines.

yeah when i open the info.xml normal on my desktop its just a few lines
but when i opened it in powershell its long af

thats hte direct file when i opened it on my pc:

File seems to be correct.

I would log in as root and try again with occ.

so my user has now full root Access .
now i tryd it but still got mynewtheme1 not found -.-

why is it so complicated to do a theme at owncloud -.-

It isn’t complicated at all. Installing the sample theme is done within a minute. But there is something weird with your system.

hey now i tried it again and hey it works
dont now why :smiley:
but it works.
thx

1 Like