Page 1 of 1

“Form error” with Newsletter Made Simple

Posted: Tue Feb 08, 2022 8:05 pm
by 10010110
I’m getting increasingly frustrated with this. I’m trying to create a newsletter message but when submitting, a red warning with the unspecific text “Form error” pops up from the top.

This is what PHP has to say:
Notice: Deprecated usage of CGExtensions::CreateTemplateDropdown in /Users/Stephan/Sites/LMR Sachsen-Anhalt/site/modules/CGExtensions/CGExtensions.module.php on line 1345

Notice: Deprecated usage of CGExtensions::ListTemplatesWithPrefix in /Users/Stephan/Sites/LMR Sachsen-Anhalt/site/modules/CGExtensions/CGExtensions.module.php on line 1327
CMS version 2.2.15
PHP 7.3.29
CGExtensions 1.65.2
CGSimpleSmarty 2.2.1
NMS 2.13.3

Any idea what’s happening here?

Re: “Form error” with Newsletter Made Simple

Posted: Wed Feb 09, 2022 11:41 am
by 10010110
This is very weird. In an existing installation (CMS 2.2.16), when creating a new message, I’m getting this screen:
compose1.jpg
but in a new installation I’m getting this:
compose2.png
Modules and dependencies are the same versions in both. What the hell? Is there something corrupted somewhere? I’m not getting any errors.

Re: “Form error” with Newsletter Made Simple

Posted: Wed Feb 09, 2022 3:33 pm
by DIGI3
I just did a test install and the latter is how it looks for me in 2.2.16/php 7.4. Is there anything in the javascript console for the existing (top image) one?

I'm guessing a module upgrade failed somewhere, you could try temporarily renaming the module folder then unzipping a new copy of it in there, that should at least reset the templates without messing with anything in the db. If the problem is in the db then it's going to be more difficult depending upon the complexity of your installation.

Re: “Form error” with Newsletter Made Simple

Posted: Thu Feb 10, 2022 9:22 am
by 10010110
I’ve replaced NMS, CGExtensions and CGSimpleSmarty files manually now and the problem persists. It seems like this is something in the database that hasn’t been updated properly at some point. The NMS tables of the old and the new installation look identical, so it’s hard to guess where this comes from. :(

Re: “Form error” with Newsletter Made Simple

Posted: Thu Feb 10, 2022 7:19 pm
by 10010110
OK, this is really stupid but the reason for the difference was an old custom template modification in /assets/module_custom ::)
Man, I’ve wasted so much time on this. I guess a reminder when upgrading a module to watch out for old customizations would be nice.