Pkp-lib: Fix listing of custom block plugins in apperance form

Created on 19 Apr 2018  路  3Comments  路  Source: pkp/pkp-lib

Most helpful comment

OJS 3.1.1-0 and OMP 3.1.1-0 users can fix this by applying this patch in the plugins/generic/customBlockManager directory.

If you're not comfortable patching, you can download and install this version of plugins/generic/customBlockManager/CustomBlockManagerPlugin.inc.php into your installation. (Note that it's not generally a good idea to mix code from github into your installation unless you know what you're doing! This should only be done for OJS 3.1.1-0 and OMP 3.1.1-0.)

All 3 comments

OJS 3.1.1-0 and OMP 3.1.1-0 users can fix this by applying this patch in the plugins/generic/customBlockManager directory.

If you're not comfortable patching, you can download and install this version of plugins/generic/customBlockManager/CustomBlockManagerPlugin.inc.php into your installation. (Note that it's not generally a good idea to mix code from github into your installation unless you know what you're doing! This should only be done for OJS 3.1.1-0 and OMP 3.1.1-0.)

@asmecher
Hi Alec,
we stumbled upon this issue after migrating an OJS 2.4.8.2 to 3.1.1-stable.

For us the custom blocks still did not appear in the Settings form, I had to add back the PluginRegistry::loadCategory hook in the register method of the CustomBlockManagerPlugin.
This was removed in the commit https://github.com/pkp/customBlockManager/commit/ec5838a0c601d75c86f6d72a0ed8ac9f0cd09bba .

But I am not sure if this was the right fix or it is only a workaround, the custom blocks appeared again in the Settings form after this.

It seems the BlockPluginsListBuilderHandler only loads the block plugins by category and not all the generic Plugins, which would then register the custom blocks.
But I dont know why this is only an issue with the custom blocks and not the other ones.

Hope this helps cheers,
Nils

@isgrim, is this an up-to-date pull of the ojs-stable-3_1_1 branch in all 3 of ojs, pkp-lib, and customBlockManager repos?

Was this page helpful?
0 / 5 - 0 ratings