There's a strange issue with a legacy CraftCMS backend we've inherited. On the backend I am unable to submit forms that update the entries, in fact the SAVE button does nothing.
Upon investigation it seems as though some whitespaces are being omitted in the code, for example:
<formid="main-form" method="post" accept-charset="UTF-8">.....</formid="main-form">
The space between form
and id="main-form"
is missing. If I manually add this space by editing the DOM, the form will submit successfully.
In addition any controls that need to be instantiated in jQuery (for example the asset selection control) also have whitespace missing and try to do
newCraft.AssetSelectInput({"id":"fields-newsImage"});
rather than
new Craft.AssetSelectInput({"id":"fields-newsImage"});
My Craft and Environment look like this:
PHP version 7.4.15
OS version Linux 4.14.219-161.340.amzn2.x86_64
Database driver & version PostgreSQL 11.10
Image driver & version GD 7.4.15
Craft edition & version Craft Solo 3.1.22
Yii version 2.0.17
Twig version 2.8.1
Any advice would be greatly appreciated.