[OJS 3.1.1] the newly added custom blocks cannot be repositioned

Hi all,

I just upgraded to OJS 3.1.1 and applied the patch to add new Custom Block. However, the newly added blocks aren’t show up under Sidebar Management, thus they cannot be repositioned. Any advise? Thanks a heap.

Hi! @sisca_ojs
You may try this fix

Edit: Sorry, I didn’t notice that you already applied said patch

Hi @aabahishti,

thanks for trying to help. Did you experience this also? I still can’t get overcome it.

Hi all,

See also this bug entry.

Regards,
Alec Smecher
Public Knowledge Project Team

2 Likes

Hi @asmecher,
We are on this boat also, but applying the patch for “CustomBlockManagerPlugin.inc.php” makes a blank screen on our site. No problem with “controllers/grid/form/CustomBlockForm.inc.php”, but we cannot reposition any block yet.

Regards :slight_smile:

Daniel
ICONO14

Hi @celuloide,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Yes @asmecher, I get the following error:

[15-Jun-2018 17:15:02 UTC] PHP Fatal error: Uncaught Error: Call to a member function getPluginPath() on null in /path/to/ojs/root/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php:57
Stack trace:
#0 /path/to/ojs/root/ojs/lib/pkp/classes/plugins/Plugin.inc.php(406): CustomBlockPlugin->getPluginPath()
#1 /path/to/ojs/root/ojs/lib/pkp/classes/plugins/Plugin.inc.php(328): Plugin->getLocaleFilename(‘es_ES’)
#2 /path/to/ojs/root/ojs/lib/pkp/classes/plugins/LazyLoadPlugin.inc.php(29): Plugin->addLocaleData()
#3 /path/to/ojs/root/ojs/lib/pkp/classes/plugins/BlockPlugin.inc.php(31): LazyLoadPlugin->register(‘blocks’, ‘plugins/generic…’)
#4 /path/to/ojs/root/ojs/lib/pkp/classes/plugins/PluginRegistry.inc.php(64): BlockPlugin->register(‘blocks’, ‘plugins/generic…’)
#5 /path/to/ojs/root/ojs/plugins/generic/customBlockManager/CustomBlockManagerPlugin.inc.php(66): PluginRegi in /path/to/ojs/root/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 57

Thank you :slight_smile:

Daniel
ICONO14

Hi @celuloide,

Which patch did you apply?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher
I tried to apply this two but I only keep the changes on “controllers/grid/form/CustomBlockForm.inc.php”. Changes on “CustomBlockManagerPlugin.inc.php” produce the blank page.

Regards,
Daniel
ICONO14

Sorry @asmecher,
I don’t see any other error in the log and also don’t find any other solution. Is anybody in the same situation?

Regards,
Daniel
ICONO14

Hi @celuloide,

The other option – recommended anyway – is to upgrade to the latest OJS release. We recently put out 3.1.1-2, which already includes a fix for the custom block issue.

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you @asmecher,
We’ll try after the release of the upcoming issue.

:slight_smile:

Hi @asmecher

I have the same problem , When I save a custom Block, this appear on public Site, but I can´t see it on list of blocks on Prefferences/Website.

I have OJS 3.1.1-2, please helpme!!

1 Like

I have the same problem in OJS 3.1.1-4. Custom blocks are not shown in “Website settings → Appearance” under “Sidebar Management”. Btw. i made an upgrade from 2.4.8 to 3.1.1-4 and everything else works fine. Is there a solution for this? Thx.

Regards.

Hi all,

See [OJS] Custom blocks not displayed in settings page after upgrading from OJS2.4.8 to 3.1.1.2 · Issue #4011 · pkp/pkp-lib · GitHub.

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you @asmecher. It’s solved now.