Announcement

  •  » Themes
  •  » Weird behaviour when selection my theme (Found the bug)

#1 2019-11-09 19:23:49

Djelle
Member
2019-10-09
14

Weird behaviour when selection my theme (Found the bug)

I am working on a theme (Let's call it MyTheme). Sylvia theme was used as a base for this. I have been working on this while it being the default theme. So I never noticed the following problem until now:

If I set another theme as default theme, I can not set my user's theme (in customize) to MyTheme. If I do, it will not take. And the theme is instead set to whatever is the default theme. I can select and set other themes for my user. Just not MyTheme. Though I can still set MyTheme as default, and it will work fine.

Have any experienced this behavior before? And know what is wrong? I have tried SO much to locate the problem. But to no avail.

/Djelle


Piwigo version: 2.10.1
PHP version: 7.2.23
MySQL version: 5.5.5-10.3.17-MariaDB-1:10.3.17
Piwigo URL: https://photoalbum2.djelle.dk

Last edited by Djelle (2019-11-13 16:39:23)

Offline

 

#2 2019-11-10 08:29:22

executive
Member
2017-08-16
1214

Re: Weird behaviour when selection my theme (Found the bug)

Do you have the Admin Tools plugin enabled?

Last edited by executive (2019-11-10 08:29:50)

Offline

 

#3 2019-11-10 11:32:37

Djelle
Member
2019-10-09
14

Re: Weird behaviour when selection my theme (Found the bug)

I do not. Can that help me?

/Djelle

Offline

 

#4 2019-11-11 19:47:24

Djelle
Member
2019-10-09
14

Re: Weird behaviour when selection my theme (Found the bug)

I tried a test of cloning the Sylvia theme. So I copied it to a new dir named: sylviatest. And I edited the themeconf.inc.php, simply changing the name and dir's (see below).

This did not work either. I can select Sylvia as my theme, but not SylviaTEST. Am I doing something wrong? Should this not work?

/Djelle


Theme Name: SylviaTEST
Version: 2.9.5
Description: Dark background, flora and pink decorations.
Theme URI: http://piwigo.org/ext/extension_view.php?eid=368
Author: Piwigo team
Author URI: http://piwigo.org
*/
$themeconf = array(
  'name'         => 'SylviaTEST',
  'parent'        => 'default',
  'icon_dir'      => 'themes/sylviatest/icon',
  'mime_icon_dir' => 'themes/sylviatest/icon/mimetypes/',
);
---SNIP---

Offline

 

#5 2019-11-13 16:10:59

Djelle
Member
2019-10-09
14

Re: Weird behaviour when selection my theme (Found the bug)

I have reuploaded all files of Piwigo. No change in problem.

I have tried to download a few themes from here. I can set none of them as my personal theme. Though I can set them as default theme.

I have looked in the DataBase, and confirmed that the theme name is actually saved under my user. (But Piwigo is not showing the set theme).
EDIT: Additionally: When going to customize, It displays the default theme in the dropdown as the set theme. Even though the DB is set to something else.

Adding info here, in hope that someone will see it and know what is wrong :)

/Djelle

Last edited by Djelle (2019-11-13 16:22:47)

Offline

 

#6 2019-11-13 16:37:50

Djelle
Member
2019-10-09
14

Re: Weird behaviour when selection my theme (Found the bug)

Finally found out what was wrong.

The dir was named "mytheme" (Example name). All small letter, which is a good behavior (as far as I know) to prevent some servers from misreading the name.

And in themeconf.inc.php I had put "Theme Name: MyTheme" as that is it's display name.

After changing these to have the same capitalization, it all worked as it should.

I see this as a bug. And would like to report it as such. Not sure if this thread is enough for reporting. But I don't see anywhere else to do it on the Piwigo web-pages.

Offline

 
  •  » Themes
  •  » Weird behaviour when selection my theme (Found the bug)

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact