catalyst / moodle-block_multiblock

Moodle plugin which allows you to embed multiple blocks within a single block region using different formats including tabs and accordions
GNU General Public License v3.0
12 stars 12 forks source link

not able to edit indiviudal blocks on Workplace 4.2 #104

Open jess-bryant opened 11 months ago

jess-bryant commented 11 months ago

I have a couple of sites that started on 3.11 and have since been upgraded to 4.0, 4.1 and now 4.2. On both sites Multiblock functions great on 3.11-4.1, but on 4.2 I am not able to edit an individual block. I instead get a white screen.

The block still looks and functions well on the dashboard, I can get to the manage multiblock page, and add new blocks, but when I click on the gear next to the right of any contained block - a white screen loads. With full debugging on I get this error:

Fatal error: Cannot override final method core_form\dynamic_form::__construct() in /mnt/data/sites/jessdemowp/http/blocks/multiblock/classes/form/editblock_base.php on line 60

danmarsden commented 10 months ago

Thanks for the report! - we don't have this running in any workplace sites ourselves - probably something specific to how it identifies the blocks class name when editing it somewhere in this chunk: https://github.com/catalyst/moodle-block_multiblock/blob/38cac4731166a9fde4c1932e18da3567098c1b1e/configinstance.php#L51-L63C14

pull requests always welcome! :-)

Very-Squishy commented 9 months ago

I have a same exact problem. Multiblock works perfectly on 4.1, but 4.2.2 killed it. I can still build internal contents, but as soon as I try to edit any item in the "Manage Multiblock contents" screen, I get error 500. Picture1

jprovasnik commented 8 months ago

Same here - Wanted to also mention that when on the "Manage Mutilblock Content" page, clicking "Block location" at the top of the page no longer brings me back to the page where the block was added - instead I see a "File not found" message.

Instead of returning you to "https://moodle.site/admin/tool/custompage/view.php?id=12" the Block Location" link brings you to "https://moodle.site/admin/tool/custompage.php

filenotfound