Skip to content

Theming broken after trying to enabling a second theme #31134

@patrickjahns

Description

@patrickjahns

After trying to activity another theme - ownCloud behaves strange

IMPORTANT NOTE this only broken when templateeditor is enabled

Steps to reproduce

Pre-Conidtion:

Have templateeditor 0.3 installed + enabled

First scenario - broken general section

  1. Take ownCloud 10.0.8RC1 with enterprise theme
  2. Go to Apps -> try to enable theme-example -> (Error Message theme-example can't be enabled until theme-enterprise is disabled. should be shown )
  3. Go browse to general section and see it blank:
    image

second scenario - "split theme brain"

  1. Take ownCloud 10.0.8RC1 with enterprise theme
  2. Go to Apps -> try to enable theme-example -> (Error Message theme-example can't be enabled until theme-enterprise is disabled. should be shown )
  3. Disable theme-enterprise
  4. browse to general section and see theme-example being used
    image

Expected behaviour

General section works as before trying to enable the theme.

Actual behaviour

broken general section

image

split theme

image

Logs

ownCloud log (data/owncloud.log)

{"reqId":"42azotaIYRMVldUbjbTm","level":3,"time":"2018-04-16T09:10:30+00:00","remoteAddr":"172.18.0.1","user":"admin","app":"core","method":"POST","url":"\/index.php\/settings\/ajax\/enableapp.php","message":"theme-example can't be enabled until theme-enterprise is disabled."}
{"reqId":"NsCi0SJGdiOh1fccNUTJ","level":3,"time":"2018-04-16T09:10:38+00:00","remoteAddr":"172.18.0.1","user":"admin","app":"PHP","method":"GET","url":"\/settings\/admin?sectionid=general","message":"Cannot declare class OC_Theme, because the name is already in use at \/var\/www\/owncloud\/apps\/theme-example\/defaults.php#21"}
{"reqId":"TYevcho3daWp4Axqdu9C","level":3,"time":"2018-04-16T09:10:42+00:00","remoteAddr":"172.18.0.1","user":"admin","app":"PHP","method":"GET","url":"\/settings\/admin?sectionid=general","message":"Cannot declare class OC_Theme, because the name is already in use at \/var\/www\/owncloud\/apps\/theme-example\/defaults.php#21"}
{"reqId":"QqRiDA4QclY51j3tJReh","level":3,"time":"2018-04-16T09:11:13+00:00","remoteAddr":"172.18.0.1","user":"admin","app":"PHP","method":"GET","url":"\/settings\/admin?sectionid=general","message":"Cannot declare class OC_Theme, because the name is already in use at \/var\/www\/owncloud\/apps\/theme-example\/defaults.php#21"}
{"reqId":"tVkTCLg9u4BRGGd7msPx","level":3,"time":"2018-04-16T09:14:20+00:00","remoteAddr":"172.18.0.1","user":"admin","app":"PHP","method":"GET","url":"\/settings\/admin?sectionid=general","message":"Cannot declare class OC_Theme, because the name is already in use at \/var\/www\/owncloud\/apps\/theme-example\/defaults.php#21"}

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions