Hi everyone,
I’m currently running OJS 3.4.0-8 and I’m encountering an issue when trying to reorder or modify custom sidebar blocks (customBlockManager plugin) via the Website Settings > Appearance > Sidebar Management section.
When I try to save, I get the following generic error message:
“The form was not saved because 1 error(s) were found. Please correct these and try again.”
However:
- No red error is shown on the screen
- No invalid fields are highlighted
- The browser network tab shows a 400 Bad Request response from:
bash
CopiarEditar
PUT /redi/api/v1/contexts/1
- The payload includes custom blocks like
menu-lateral
,relaredi
, andindexacin
, all of which exist and work fine. - The plugin settings for these blocks (
enabled
,blockContent
,blockTitle
,showName
) are all present in the database. - Removing all blocks but one still causes the same error.
- There is no useful error output in the Network > Response, nor in the PHP log or browser console.
I also tried resetting showName
to '1'
for all custom blocks via SQL (some were NULL
), and still nothing.
Question
- Is there a way to enable verbose error output on API PUT requests?
- Is there a known validation rule that could be failing silently for custom blocks?
- Has anyone else experienced this when upgrading from 3.3.x to 3.4?
Thanks in advance for your help!