Cannot save email template in UNA 13-RC2
Saving email template fails. Have some warnings in the error.log file and Chrome developer console alerts "Failed to load resource: the server responded with a status of 500 ()".
Checked ModSecurity, no active rules that could be blocking.
-
-
·
LeonidS
- ·
Hello @thomlin !
So what warnings do you have in the error log? Try to apply this solution https://una.io/cmts-view/15g2c8?sys=bx_forum&cmt_id=40144 and check again.
-
·
LeonidS
-
- · thomlin
-
·
In reply to LeonidS
- ·
Hi @LeonidS , thanks for your help.
The error thrown is
mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined function bx_get_js_result() in /home/at36964/web/busily.online/public_html/devbuild/studio/template/scripts/BxBaseStudioPage.php:193, referer: https://busily.online/devbuild/studio/polyglot.php?page=etemplates_hf
-
- · thomlin
-
·
In reply to thomlin
T
- ·
I have to specify: sometimes it saves without system confirmation, like it does when saving changes in studio settings with other modules (Confirmation alert window like "Settings have been saved." And a "OK" button.) That's missing completely now.
Since it's a fatal error it gives an internal server http 500 error in Developer Tools Console for the POST form action.
-
-
·
LeonidS
-
·
In reply to thomlin
T
- ·
It appears to be an anomaly that the function in question is defined within the file "studio/inc/utils.inc.php". Kindly verify if the function "bx_get_js_result()" is present in this file, and ensure that the file has the appropriate permissions set (644).
-
·
LeonidS
-
- · thomlin
-
·
In reply to LeonidS
- ·
Thank you for observation, @LeonidS . In fact, there's no bx_get_js_result() function in that file, it's missing. I'll copy it from the master 13-RC2? Or would you advise something else?
-
-
·
LeonidS
-
·
In reply to thomlin
T
- ·
Yes, it is the best variant.
-
·
LeonidS
-
- · thomlin
-
·
In reply to LeonidS
- ·
Tried it, but still doesn't function correctly. Saving is inconsistent and still no confirmation alert window. The first few tries it saved, now the not-saving issues are back. Copied the file in question from the original RC2-master.
-
- · thomlin
- ·
Update to UNA 13-RC3 seems to have solved the problem. Changes in template are saved again.
-
- · thomlin
- ·
@LeonidS , unfortunately, the problem occurs in 13-RC5, again. @Karina seems to have the same issue.
-
- · Karina
-
·
In reply to thomlin
T
- ·
indeed, I can confirm the error
-
-
·
LeonidS
- ·
Hello everybody!
Thank you for your signal, the ticket has been created and fixed https://github.com/unaio/una/issues/4323
-
·
LeonidS
-
- · thomlin
-
·
In reply to LeonidS
- ·
Thank you!
-