[OJS 3.1.2] Custom Blocks may get 'doubled'

Hi! Testing 3.1.2 we’ve noticed some custom blocks may get ‘doubled’ in the left panel.
There were no such problems in 3.1.1-4. And there seems to be nothing in the custom block’s code that might cause this:

image

Hi @Ph_We,

Hmm, I’m not able to duplicate that behavior with a fresh 3.1.2 install. I’d suggest trying to narrow down the conditions a little more, e.g. any extra plugins, themes or modifications that you’re working with.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher, thank you. I tried really hard narrowing them down. I reproduced almost everything in the test journal, however could not reproduce that behavior.
The only thing helps: deleting the block entirely and recreating it from scratch :frowning:

Hi @Ph_We,

Can you try dumping the database entries for these, both before and after the problem is resolved?

mysql> select * from plugin_settings where plugin_name = 'customblockmanagerplugin' and setting_name='blocks';
+--------------------------+------------+--------------+------------------------------------+--------------+
| plugin_name              | context_id | setting_name | setting_value                      | setting_type |
+--------------------------+------------+--------------+------------------------------------+--------------+
| customblockmanagerplugin |          1 | blocks       | a:2:{i:0;s:3:"one";i:1;s:3:"two";} | object       |
+--------------------------+------------+--------------+------------------------------------+--------------+
1 row in set (0.00 sec)

…and then, including all the names in the above result…

mysql> select * from plugin_settings where plugin_name in ('one', 'two');
+-------------+------------+--------------+--------------------------------------+--------------+
| plugin_name | context_id | setting_name | setting_value                        | setting_type |
+-------------+------------+--------------+--------------------------------------+--------------+
| one         |          1 | blockContent | a:1:{s:5:"en_US";s:10:"<p>one</p>";} | object       |
| one         |          1 | context      | 1                                    | int          |
| one         |          1 | enabled      | 1                                    | bool         |
| two         |          1 | blockContent | a:1:{s:5:"en_US";s:10:"<p>two</p>";} | object       |
| two         |          1 | context      | 1                                    | int          |
| two         |          1 | enabled      | 1                                    | bool         |
+-------------+------------+--------------+--------------------------------------+--------------+
6 rows in set (0.00 sec)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
Unfortunately, we have a lot of journals with many custom blocks configured. May we narrow this down to the context_id where the problems occurred?

Hi @Ph_We,

Yes, that’s fine.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Here is what we got. The problem was located in context_id=10. Two blocks out of three got ‘doubled’ after upgrading to 3.1.2. Their names were ‘1’ and ‘2’. The block ‘3’ was OK. So here is what we have in 3.1.1-4 (production):

mysql> select * from plugin_settings where plugin_name = 'customblockmanagerplugin' and setting_name='blocks';
+--------------------------+------------+--------------+---------------------------------------------------------------------------+--------------+
| plugin_name              | context_id | setting_name | setting_value                                                             | setting_type |
+--------------------------+------------+--------------+---------------------------------------------------------------------------+--------------+
| customblockmanagerplugin |          3 | blocks       | a:3:{i:1;s:1:"2";i:2;s:10:"FirstBlock";i:3;s:11:"SecondBlock";}           | object       |
| customblockmanagerplugin |          6 | blocks       | a:1:{i:0;s:5:"Index";}                                                    | object       |
| customblockmanagerplugin |          7 | blocks       | a:1:{i:0;s:6:"review";}                                                   | object       |
| customblockmanagerplugin |          9 | blocks       | a:2:{i:0;s:5:"About";i:1;s:4:"Logo";}                                     | object       |
| customblockmanagerplugin |         10 | blocks       | a:5:{i:0;s:1:"1";i:1;s:1:"1";i:2;s:1:"2";i:3;s:1:"2";i:4;s:1:"3";}        | object       |
| customblockmanagerplugin |         11 | blocks       | a:1:{i:0;s:12:"custom_block";}                                            | object       |
| customblockmanagerplugin |         12 | blocks       | a:2:{i:0;s:10:"Newsletter";i:1;s:4:"HERB";}                               | object       |
| customblockmanagerplugin |         15 | blocks       | a:2:{i:0;s:11:"Information";i:1;s:8:"Contacts";}                          | object       |
| customblockmanagerplugin |         16 | blocks       | a:3:{i:0;s:16:"AuthorGuidelines";i:1;s:9:"IndexedIn";i:3;s:8:"Partners";} | object       |
| customblockmanagerplugin |         18 | blocks       | a:1:{i:0;s:11:"Information";}                                             | object       |
| customblockmanagerplugin |         19 | blocks       | a:2:{i:0;s:7:"banners";i:1;s:10:"Conditions";}                            | object       |
| customblockmanagerplugin |         20 | blocks       | a:1:{i:0;s:4:"Menu";}                                                     | object       |
| customblockmanagerplugin |         21 | blocks       | a:2:{i:0;s:5:"Index";i:1;s:1:"1";}                                        | object       |
+--------------------------+------------+--------------+---------------------------------------------------------------------------+--------------+
13 rows in set (0.00 sec)

Now, here are the results for 3.1.2 (test). (The block ‘2’ was recreated right after the upgrade, the block ‘1’ stayed intact):

+--------------------------+------------+--------------+---------------------------------------------------------------------------+--------------+
| plugin_name              | context_id | setting_name | setting_value                                                             | setting_type |
+--------------------------+------------+--------------+---------------------------------------------------------------------------+--------------+
| customblockmanagerplugin |          3 | blocks       | a:3:{i:1;s:1:"2";i:2;s:10:"FirstBlock";i:3;s:11:"SecondBlock";}           | object       |
| customblockmanagerplugin |          6 | blocks       | a:1:{i:0;s:5:"Index";}                                                    | object       |
| customblockmanagerplugin |          7 | blocks       | a:1:{i:0;s:6:"review";}                                                   | object       |
| customblockmanagerplugin |          9 | blocks       | a:2:{i:0;s:5:"About";i:1;s:4:"Logo";}                                     | object       |
| customblockmanagerplugin |         10 | blocks       | a:4:{i:0;s:1:"1";i:1;s:1:"1";i:4;s:1:"3";i:5;s:1:"2";}                    | object       |
| customblockmanagerplugin |         11 | blocks       | a:1:{i:0;s:12:"custom_block";}                                            | object       |
| customblockmanagerplugin |         12 | blocks       | a:2:{i:0;s:10:"Newsletter";i:1;s:4:"HERB";}                               | object       |
| customblockmanagerplugin |         15 | blocks       | a:2:{i:0;s:11:"Information";i:1;s:8:"Contacts";}                          | object       |
| customblockmanagerplugin |         16 | blocks       | a:3:{i:0;s:16:"AuthorGuidelines";i:1;s:9:"IndexedIn";i:3;s:8:"Partners";} | object       |
| customblockmanagerplugin |         18 | blocks       | a:1:{i:0;s:11:"Information";}                                             | object       |
| customblockmanagerplugin |         19 | blocks       | a:2:{i:0;s:7:"banners";i:1;s:10:"Conditions";}                            | object       |
| customblockmanagerplugin |         20 | blocks       | a:1:{i:0;s:4:"Menu";}                                                     | object       |
| customblockmanagerplugin |         21 | blocks       | a:4:{i:1;s:1:"1";i:2;s:1:"2";i:3;s:1:"3";i:4;s:6:"4_test";}               | object       |
+--------------------------+------------+--------------+---------------------------------------------------------------------------+--------------+
13 rows in set (0.00 sec)

mysql>  select * from plugin_settings where context_id=10 and plugin_name in ("1", "2", "3");
+-------------+------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+
| plugin_name | context_id | setting_name | setting_value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | setting_type |
+-------------+------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+
| 1           |         10 | blockContent | a:2:{s:5:"en_US";s:654:"<p style="text-align: center;"><img style="display: block; margin-left: auto; margin-right: auto;" src="/public/site/images/kreshetnikov/open_access1.jpg">&nbsp;<a href="https://demreview.hse.ru/Open_Access">Open Access and Copyright Notice</a></p>
<p style="text-align: center;"><a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="license"><img style="border-width: 0;" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" alt="Creative Commons License"></a><br>This work is licensed under a <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="license">Creative Commons Attribution-ShareAlike 4.0 International License</a>.</p>";s:5:"ru_RU";s:656:"<p style="text-align: center;">&nbsp;<img src="/public/site/images/kreshetnikov/open_access.jpg"><a href="https://demreview.hse.ru/Open_Access"><br>Открытый доступ<br> и авторские права</a></p>
<p style="text-align: center;"><a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="license"><img style="border-width: 0;" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" alt="Creative Commons License"></a><br>Контент доступен под лицензией <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="license">Creative Commons Attribution-ShareAlike 4.0 International License</a>.</p>";} | object       |
| 1           |         10 | context      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
| 1           |         10 | enabled      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | bool         |
| 1           |         10 | seq          | 3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
| 2           |         10 | blockContent | a:2:{s:5:"en_US";s:306:"<hr align="center" noshade="noshade" size="1" width="80%">
<h2><a href="http://demoscope.ru" target="_blank" rel="&quot;noopener">Demoscope Weekly</a></h2>
<h2><a href="https://ojs.hse.ru/index.php/demreview/zakroma"><br>Demoscope Bins</a></h2>
<hr align="center" noshade="noshade" size="1" width="80%">";s:5:"ru_RU";s:326:"<hr align="center" noshade="noshade" size="1" width="80%">
<h2><a href="http://demoscope.ru" target="_blank" rel="noopener">Демоскоп Weekly</a></h2>
<h2><a href="https://ojs.hse.ru/index.php/demreview/zakroma"><br>Закрома Демоскопа</a></h2>
<hr align="center" noshade="noshade" size="1" width="80%">";}                                                                                                                                                                                                                                                                                                                                                         | object       |
| 2           |         10 | context      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
| 2           |         10 | enabled      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | bool         |
| 2           |         10 | seq          | 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
| 3           |         10 | blockContent | a:2:{s:5:"en_US";s:1394:"<h3 style="text-align: center;"><a href="https://demreview.hse.ru//bases">Indexing in the scientific repositories and bibliographic systems</a></h3>
<table border="0" width="250" cellspacing="0" cellpadding="2">
<tbody>
<tr align="center">
<td width="120">
<p><img src="/public/site/images/kreshetnikov/01.jpg"></p>
</td>
<td width="120"><img src="/public/site/images/kreshetnikov/02.jpg"></td>
</tr>
<tr align="center">
<td width="116"><img src="/public/site/images/kreshetnikov/03.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/04.jpg"></td>
</tr>
<tr align="center">
<td width="116"><img src="/public/site/images/kreshetnikov/05.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/06.jpg"></td>
</tr>
<tr align="center">
<td width="116"><img src="/public/site/images/kreshetnikov/07.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/08.jpg"></td>
</tr>
<tr align="center">
<td width="116"><img src="/public/site/images/kreshetnikov/09.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/010.jpg"></td>
</tr>
<tr align="center">
<td colspan="2"><img src="/public/site/images/kreshetnikov/0111.jpg"></td>
</tr>
<tr align="center">
<td colspan="2"><img src="/public/site/images/kreshetnikov/0121.jpg"><img src="/public/site/images/kreshetnikov/0131.jpg"></td>
</tr>
</tbody>
</table>";s:5:"ru_RU";s:1500:"<h3 style="text-align: center;"><a href="https://demreview.hse.ru//bases">Индексация в наукометрических и библиографических базах</a></h3>
<table border="0" width="250" cellspacing="0" cellpadding="2">
<tbody>
<tr align="center">
<td width="120">&nbsp;
<p><img src="/public/site/images/kreshetnikov/01.jpg"></p>
</td>
<td width="120"><img src="/public/site/images/kreshetnikov/02.jpg"></td>
</tr>
<tr align="center">
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/03.jpg"></td>
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/04.jpg"></td>
</tr>
<tr align="center">
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/05.jpg"></td>
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/06.jpg"></td>
</tr>
<tr align="center">
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/07.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/08.jpg">&nbsp;</td>
</tr>
<tr align="center">
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/09.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/010.jpg">&nbsp;</td>
</tr>
<tr align="center">
<td colspan="2">&nbsp;<img src="/public/site/images/kreshetnikov/0111.jpg"></td>
</tr>
<tr align="center">
<td colspan="2">&nbsp;<img src="/public/site/images/kreshetnikov/0121.jpg"><img src="/public/site/images/kreshetnikov/0131.jpg"></td>
</tr>
</tbody>
</table>";} | object       |
| 3           |         10 | context      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
| 3           |         10 | enabled      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | bool         |
| 3           |         10 | seq          | 4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
+-------------+------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+
12 rows in set (0.00 sec)

Then I deleted the block ‘1’ and recreated it from scratch. The results are as follows:

mysql> select * from plugin_settings where plugin_name = 'customblockmanagerplugin' and setting_name='blocks';
+--------------------------+------------+--------------+---------------------------------------------------------------------------+--------------+
| plugin_name              | context_id | setting_name | setting_value                                                             | setting_type |
+--------------------------+------------+--------------+---------------------------------------------------------------------------+--------------+
| customblockmanagerplugin |          3 | blocks       | a:3:{i:1;s:1:"2";i:2;s:10:"FirstBlock";i:3;s:11:"SecondBlock";}           | object       |
| customblockmanagerplugin |          6 | blocks       | a:1:{i:0;s:5:"Index";}                                                    | object       |
| customblockmanagerplugin |          7 | blocks       | a:1:{i:0;s:6:"review";}                                                   | object       |
| customblockmanagerplugin |          9 | blocks       | a:2:{i:0;s:5:"About";i:1;s:4:"Logo";}                                     | object       |
| customblockmanagerplugin |         10 | blocks       | a:3:{i:4;s:1:"3";i:5;s:1:"2";i:6;s:1:"1";}                                | object       |
| customblockmanagerplugin |         11 | blocks       | a:1:{i:0;s:12:"custom_block";}                                            | object       |
| customblockmanagerplugin |         12 | blocks       | a:2:{i:0;s:10:"Newsletter";i:1;s:4:"HERB";}                               | object       |
| customblockmanagerplugin |         15 | blocks       | a:2:{i:0;s:11:"Information";i:1;s:8:"Contacts";}                          | object       |
| customblockmanagerplugin |         16 | blocks       | a:3:{i:0;s:16:"AuthorGuidelines";i:1;s:9:"IndexedIn";i:3;s:8:"Partners";} | object       |
| customblockmanagerplugin |         18 | blocks       | a:1:{i:0;s:11:"Information";}                                             | object       |
| customblockmanagerplugin |         19 | blocks       | a:2:{i:0;s:7:"banners";i:1;s:10:"Conditions";}                            | object       |
| customblockmanagerplugin |         20 | blocks       | a:1:{i:0;s:4:"Menu";}                                                     | object       |
| customblockmanagerplugin |         21 | blocks       | a:4:{i:1;s:1:"1";i:2;s:1:"2";i:3;s:1:"3";i:4;s:6:"4_test";}               | object       |
+--------------------------+------------+--------------+---------------------------------------------------------------------------+--------------+
13 rows in set (0.00 sec)

mysql> select * from plugin_settings where context_id=10 and plugin_name in ("1", "2", "3");
+-------------+------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+
| plugin_name | context_id | setting_name | setting_value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | setting_type |
+-------------+------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+
| 1           |         10 | blockContent | a:2:{s:5:"en_US";s:654:"<p style="text-align: center;"><img style="display: block; margin-left: auto; margin-right: auto;" src="/public/site/images/kreshetnikov/open_access1.jpg">&nbsp;<a href="https://demreview.hse.ru/Open_Access">Open Access and Copyright Notice</a></p>
<p style="text-align: center;"><a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="license"><img style="border-width: 0;" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" alt="Creative Commons License"></a><br>This work is licensed under a <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="license">Creative Commons Attribution-ShareAlike 4.0 International License</a>.</p>";s:5:"ru_RU";s:655:"<p style="text-align: center;">&nbsp;<img src="/public/site/images/kreshetnikov/open_access.jpg"><a href="https://demreview.hse.ru/Open_Access"><br>Открытый доступ<br>и авторские права</a></p>
<p style="text-align: center;"><a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="license"><img style="border-width: 0;" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" alt="Creative Commons License"></a><br>Контент доступен под лицензией <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="license">Creative Commons Attribution-ShareAlike 4.0 International License</a>.</p>";} | object       |
| 1           |         10 | context      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
| 1           |         10 | enabled      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | bool         |
| 2           |         10 | blockContent | a:2:{s:5:"en_US";s:306:"<hr align="center" noshade="noshade" size="1" width="80%">
<h2><a href="http://demoscope.ru" target="_blank" rel="&quot;noopener">Demoscope Weekly</a></h2>
<h2><a href="https://ojs.hse.ru/index.php/demreview/zakroma"><br>Demoscope Bins</a></h2>
<hr align="center" noshade="noshade" size="1" width="80%">";s:5:"ru_RU";s:326:"<hr align="center" noshade="noshade" size="1" width="80%">
<h2><a href="http://demoscope.ru" target="_blank" rel="noopener">Демоскоп Weekly</a></h2>
<h2><a href="https://ojs.hse.ru/index.php/demreview/zakroma"><br>Закрома Демоскопа</a></h2>
<hr align="center" noshade="noshade" size="1" width="80%">";}                                                                                                                                                                                                                                                                                                                                                         | object       |
| 2           |         10 | context      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
| 2           |         10 | enabled      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | bool         |
| 2           |         10 | seq          | 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
| 3           |         10 | blockContent | a:2:{s:5:"en_US";s:1394:"<h3 style="text-align: center;"><a href="https://demreview.hse.ru//bases">Indexing in the scientific repositories and bibliographic systems</a></h3>
<table border="0" width="250" cellspacing="0" cellpadding="2">
<tbody>
<tr align="center">
<td width="120">
<p><img src="/public/site/images/kreshetnikov/01.jpg"></p>
</td>
<td width="120"><img src="/public/site/images/kreshetnikov/02.jpg"></td>
</tr>
<tr align="center">
<td width="116"><img src="/public/site/images/kreshetnikov/03.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/04.jpg"></td>
</tr>
<tr align="center">
<td width="116"><img src="/public/site/images/kreshetnikov/05.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/06.jpg"></td>
</tr>
<tr align="center">
<td width="116"><img src="/public/site/images/kreshetnikov/07.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/08.jpg"></td>
</tr>
<tr align="center">
<td width="116"><img src="/public/site/images/kreshetnikov/09.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/010.jpg"></td>
</tr>
<tr align="center">
<td colspan="2"><img src="/public/site/images/kreshetnikov/0111.jpg"></td>
</tr>
<tr align="center">
<td colspan="2"><img src="/public/site/images/kreshetnikov/0121.jpg"><img src="/public/site/images/kreshetnikov/0131.jpg"></td>
</tr>
</tbody>
</table>";s:5:"ru_RU";s:1500:"<h3 style="text-align: center;"><a href="https://demreview.hse.ru//bases">Индексация в наукометрических и библиографических базах</a></h3>
<table border="0" width="250" cellspacing="0" cellpadding="2">
<tbody>
<tr align="center">
<td width="120">&nbsp;
<p><img src="/public/site/images/kreshetnikov/01.jpg"></p>
</td>
<td width="120"><img src="/public/site/images/kreshetnikov/02.jpg"></td>
</tr>
<tr align="center">
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/03.jpg"></td>
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/04.jpg"></td>
</tr>
<tr align="center">
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/05.jpg"></td>
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/06.jpg"></td>
</tr>
<tr align="center">
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/07.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/08.jpg">&nbsp;</td>
</tr>
<tr align="center">
<td width="116">&nbsp;<img src="/public/site/images/kreshetnikov/09.jpg"></td>
<td width="116"><img src="/public/site/images/kreshetnikov/010.jpg">&nbsp;</td>
</tr>
<tr align="center">
<td colspan="2">&nbsp;<img src="/public/site/images/kreshetnikov/0111.jpg"></td>
</tr>
<tr align="center">
<td colspan="2">&nbsp;<img src="/public/site/images/kreshetnikov/0121.jpg"><img src="/public/site/images/kreshetnikov/0131.jpg"></td>
</tr>
</tbody>
</table>";} | object       |
| 3           |         10 | context      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
| 3           |         10 | enabled      | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | bool         |
| 3           |         10 | seq          | 4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | int          |
+-------------+------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+
11 rows in set (0.00 sec)

As you can see, both blocks (‘1’ and ‘2’) occurred twice in setting_value already in 3.1.1-4 (though were displayed properly).

Hi @Ph_We,

Hmm, I think that’s a data error. I’m not sure how the data was created that way, but it’s not a surprise it would be presented wrong in OJS 3.1.2.

Regards,
Alec Smecher
Public Knowledge Project Team

We had the same thing in the custom block for one journal at the University of Oklahoma Libraries after upgrading. Nothing in the block but an external HTML link. Another journal with a similar custom block did not experience the doubling, even though the upgrade process was identical.

David Corbly
University of Oklahoma Libraries

1 Like