Cannot save Website Settings: "The form was not saved because 1 error(s) were found", but no visible error message

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, and indexacin, 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!

Hi @acano,

It’s likely that the problem is coming from mod_security, or another similar security tool on your server, before the request even gets to OJS. I’d suggest double-checking if you’re using a tool like mod_security, and if so, check to see if it logs this request as being blocked.

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 10 days. New replies are no longer allowed.