Deactivated theme plugins show up in drop-down menu

  • Application Version
    OJS 3.2.1.2 updated from 3.1.2.1
    I have updated all themes from the web interface.
  • Description of issue
    I have several theme plugins on the server. All are visible under the plugins tab. However some are shown in the dropdown on appearance without being activated in the plugins tab. and some does not show up even though it is activated.
    These are hidden in dropdown when not activated (as it should be):
    *Default
    *Classic
    *Bootstrap 3
    These does not show up in dropdown:
    *Homemade child theme to parent Classic.
    These are not hidden even if it is deactivated:
    *All home made child themes made for OJS 3.1
    *Manuscript child theme v. 1.0.3,0
    *Old Gregg theme v. 2.1.0.0
  • Steps you took leading up to the issue
  • What you tried to resolve the issue
    I have tried to update the website with Ctrl+F5
  • Error log messages if applicable
    There are no fatal errors on server or in the web browser.

Thank you for help!

Merry Christmas

@eddoff

Hello @eddoff,

Can you share a screenshot of what your plugins page looks like and how it is displaying the themes as being de-activated?

-Roger

Hi @rcgillis

Here is what it looks like in plugins tab - only default is activated:
image

However on the appearance tab some of the deactivated plugins are vislible in the drop-down:
image

Hi @eddoff,

Hmm… I see what you mean. I tested this and it worked fine for me. Do you have the ability (admin privileges) to be able to clear the data and template caches? I’m wondering if that might make a difference… (Docs on how to do that here: Site Administration)

-Roger

Dear @rcgillis,
I have now cleared both data and template caches and it does not help!
I have also cleared the browser cache (ctrl + F5).

@eddoff

I have sometimes run into issues like this. @eddoff, can you try enabling and then disabling the theme plugins again from the plugin list? Sometimes the status (enabled/disabled) seems to get out of sync or something.

@NateWr

That does not help either!
I have as I said above a homemade child theme that does not show up. Can that cause any problem for the other themes?

I’ve reviewed this issue where the problem was identified and addressed. It looks like this should have been fixed when upgrading to (or past) 3.2.1.

In the past, the issue was related to the lazyLoad value in a theme’s version.xml file. I’d suggest checking your child theme’s version.xml file and setting lazyLoad to 1. If the other themes have not been updated, you may need to update them, then try to disable/enable the themes again to see if that kicks it into gear.

Thank you @NateWr !

However, it still does not help!
I have changed all lazy-load to 1, including the Manuscript child theme. The themes that show up even if not activated have in common that they are written for OJS 3.1. There is something else wrong in the code, but I cannot understand what!

Can you run the following SQL query on your database and show the results?

select * from versions where product_type="plugins.themes";

Here is the results:

MariaDB [ojs_db]> select * from versions where product_type="plugins.themes";
+-------+-------+----------+-------+---------------------+---------+----------------+-------------------+-----------------------------------+-----------+-   ---------+
| major | minor | revision | build | date_installed      | current | product_type   | product           | product_class_name                | lazy_load |    sitewide |
+-------+-------+----------+-------+---------------------+---------+----------------+-------------------+-----------------------------------+-----------+-   ---------+
|     1 |     0 |        0 |     0 | 2020-03-19 12:11:17 |       1 | plugins.themes | atena-theme       | AtenaThemePlugin                  |         0 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | blueSteel         |                                   |         1 |           0 |
|     1 |     1 |        2 |     0 | 2018-05-04 09:11:38 |       0 | plugins.themes | bootstrap3        | BootstrapThreeThemePlugin         |         1 |           0 |
|     1 |     1 |        4 |     0 | 2018-08-13 13:20:02 |       0 | plugins.themes | bootstrap3        | BootstrapThreeThemePlugin         |         1 |           0 |
|     3 |     1 |        2 |     5 | 2019-07-31 15:54:15 |       0 | plugins.themes | bootstrap3        | BootstrapThreeThemePlugin         |         0 |           0 |
|     3 |     2 |        0 |     2 | 2020-12-01 10:53:08 |       1 | plugins.themes | bootstrap3        | BootstrapThreeThemePlugin         |         1 |           0 |
|     1 |     0 |        0 |     0 | 2018-08-13 16:03:10 |       0 | plugins.themes | classic           | ClassicThemePlugin                |         1 |           0 |
|     1 |     0 |        1 |     0 | 2019-07-31 15:54:26 |       0 | plugins.themes | classic           | ClassicThemePlugin                |         0 |           0 |
|     1 |     0 |        4 |     0 | 2020-12-01 10:59:06 |       1 | plugins.themes | classic           | ClassicThemePlugin                |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | classicBlue       |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | classicBrown      |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | classicGreen      |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | classicNavy       |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | classicRed        |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | custom            |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2018-03-01 08:59:07 |       1 | plugins.themes | default           | DefaultThemePlugin                |         1 |           0 |
|     1 |     0 |        0 |     0 | 2018-06-11 18:10:43 |       1 | plugins.themes | default-child     | VSThemePlugin                     |         1 |           0 |
|     1 |     0 |        2 |     0 | 2018-06-07 08:19:31 |       0 | plugins.themes | defaultManuscript | DefaultManuscriptChildThemePlugin |         0 |           0 |
|     1 |     0 |        3 |     0 | 2020-12-01 10:59:41 |       1 | plugins.themes | defaultManuscript | DefaultManuscriptChildThemePlugin |         0 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | desert            |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2018-06-05 11:52:39 |       0 | plugins.themes | healthSciences    | HealthSciencesThemePlugin         |         1 |           0 |
|     1 |     0 |        2 |     0 | 2018-08-13 13:18:46 |       0 | plugins.themes | healthSciences    | HealthSciencesThemePlugin         |         1 |           0 |
|     1 |     0 |        4 |     0 | 2019-07-31 15:54:37 |       0 | plugins.themes | healthSciences    | HealthSciencesThemePlugin         |         0 |           0 |
|     1 |     0 |        7 |     0 | 2020-12-01 10:59:25 |       1 | plugins.themes | healthSciences    | HealthSciencesThemePlugin         |         1 |           0 |
|     1 |     0 |        0 |     0 | 2019-10-29 08:36:05 |       1 | plugins.themes | ijal-boot3        | IJALPlugin                        |         0 |           0 |
|     1 |     0 |        0 |     0 | 2019-08-27 13:11:46 |       1 | plugins.themes | ijal-theme        | IJALThemePlugin                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2019-10-29 09:17:39 |       1 | plugins.themes | jair              | JairThemePlugin                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | lilac             |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | night             |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2019-11-26 09:47:24 |       1 | plugins.themes | njvet-theme       | NJVETThemePlugin                  |         0 |           0 |
|     1 |     1 |        1 |     0 | 2019-07-31 15:57:50 |       1 | plugins.themes | oldGregg          | OldGreggThemePlugin               |         0 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | redbar            |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2019-09-25 08:07:13 |       1 | plugins.themes | sensorium-theme   | SENSThemePlugin                   |         0 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | steel             |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | uncommon          |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2016-01-15 09:51:19 |       1 | plugins.themes | vanilla           |                                   |         1 |           0 |
|     1 |     0 |        0 |     0 | 2019-10-04 14:11:52 |       1 | plugins.themes | venue-theme       | VenueThemePlugin                  |         0 |           0 |
|     1 |     0 |        0 |     0 | 2018-06-11 18:17:04 |       1 | plugins.themes | vs-theme          | VSThemePlugin                     |         0 |           0 |
+-------+-------+----------+-------+---------------------+---------+----------------+-------------------+-----------------------------------+-----------+-   ---------+
38 rows in set (0.00 sec)

Try running:

update versions set lazy_load=1 where product_type="plugins.themes";

Bingo! Thank you! Now it works!

1 Like