Iāve spent quite a bit of time correctly formatting my html templates so they display exactly as I want them to. Itās long work with repetitive rounds of testing.
But I think if found an error that is mangling the html templates in phplist.
If I go to the phplist mysql database and manually edit the templateās database entry (by uploading the template as a text file into the phplist_template.template blob entry) then it is used exactly as intended by phplist when a campaign is sent.
BUT if go to edit this templateās entry within phplistās āManage Campaign Templatesā screen the template gets mangled as its loaded into this screenās form. Its never ever displayed correctly, even prior to any saving the template within the āManage Campaign Templatesā screen.
Given how temperamental html templates can be at the best of time this may well be sabotaging peoples attempts to edit their template without their realising.
Iāve checked this on two different phplist installs and its the same on both.
Editing the phplist_template.template DB entry is a workaround but I think this is an unintended behaviour.
@Gerard If you are using the ckeditor plugin, which is the default, then check the version of the plugin on the Manage Plugins page. phplist version 3.6.16 included an old version of the plugin and there have been some changes since then which might explain your problem.
You can try upgrading that plugin to the most recent version, which is 2.8.2, using the package URL
Hi @duncanc
yes I was already on Version2.8.2+20250605 of the CKEditorPlugin (not the CKEditor5Plugin) when I was tracking down this issue, so Iām not sure its an issue with that version .
and these are the settings its currently configured with tho:
@Gerard Can you explain what is being mangled? If you view the template source html in ckeditor after it has been changed, how does that differ from that which you loaded directly into the database table?
Yes Iāve tested it again, first by loading a different template and sending some test mails, which are send as expected, then loading the template file outlined above and it once again transforms it into the mangled version.
The CKEditor5Plugin version 1.0.0+20250222 was enabled on the site which was mangling the template. When I default back to the non v5 CKEditorPlugin everything works as expected.