After updating to the alpha5 release, I discovered that all the default mail templates that had been available before at admin/config/system/mail-edit were gone. In trying to sort that out, I discovered that I had failed to apply the Token patch indicated in the alpha5 installation notes. I applied the patch, but it didn't help, and I posited that maybe the problem I had was due to something getting screwed up by having run the update script without the Token patch being present. I then tried to uninstall all the Subscription and Mail Editor pieces and start over. As I noted in a separate Issue, uninstall worked on everything except for Subscription Mail. When I re-enabled everything, I was surprised to find all my previous Subscriptions settings were intact.
In any event, the Mail Editor functions for Subscriptions Mail items are completely hosed (still working fine for non-Subscription modules). Going to something like admin/config/system/mail-edit/subscriptions_mail_node-type-page/en produces a CSS-devoid truncated page like so:
| Comment | File | Size | Author |
|---|---|---|---|
| MailTemplatePage.PNG | 7.53 KB | David D |
Comments
Comment #1
salvisBecause you were unable to uninstall Subscriptions Mail (fixed in the -dev version), Drupal kept you from uninstalling Subscriptions core. This explains why your settings were intact.
Did you also update Mail Editor to
BETAALPHA2? It works just fine for me...Are you able to edit the User mail templates?
Comment #2
David D commentedThere is no Mail Editor BETA2 on D.O. as far as I can see. I have 7.x-1.0-alpha2 installed. The Mail Editor appears to be working fine for the User mail templates (and LoginToboggan templates as well).
I had created just a single Subscriptions mail template prior to updating to the alpha5 release, and that template has disappeared as well. There's no Edit link for that one now, just an Add link like all the rest have at admin/config/system/mail-edit.
Comment #3
salvisSorry, yes, I meant Mail Editor ALPHA2.
I assume you have uninstalled and reinstalled now? That would explain why the template has disappeared. Even if you didn't, Mail Editor will remove templates when a client module is uninstalled, and I don't know whether Core calls hook_modules_uninstalled() before or after the module is uninstalled. It may have been called regardless of the crash.
I have a hard time understanding what could go wrong. I did make some changes to my local copy of Mail Editor, but I don't think these have any relevant effect on the behavior. IAC, I've just pushed these changes to the -dev version. You can get it immediately from here, so you don't have to wait another 12h, if you want to try this right away...
Comment #4
salvisI've just pushed a number of fixes to the -dev version. None of them is specifically for this issue, because I still don't understand it, but they have certainly improved overall functionality and stability.
Please update after it has been repackaged (12h) and let us know whether the issue is still present.
Be sure to clear the cache after updating!
Comment #5
nuezIve tried it with the latest dev versions,
I do see the table with the mail templates, but i cannot seem to update them. i have an installation with spanish (and english by default)
i click on 'add spanish' and edit the mail template . ti doesnt seem to update the template,
Comment #6
salvisThis is strange. My test site has English and German. I have enabled the core locale.module and no other language-relevant modules.
When I click "add de" and [Save new template], then my edits are saved and the "add de" link has changed into "edit de".
I would expect your link to read "add es", rather than "add spanish"...
Comment #7
salvisYour not being able to save a template seems to contradict #1318454-6: Mail body not send. error in cron job....
Comment #8
David D commentedI've installed the latest .dev files and still have the same problem with the missing templates. I also get a "The website has encountered an unexpected error" message at admin/modules/list/confirm when activating the core Subscriptions module, although it is actually activating, and the site is normal when I go to a different url. I have de-activated, uninstalled, run cron, flushed caches, re-installed, etc., but the missing templates persist. I am also getting an additional out of memory error on the missing CSS page as shown in the screenshot in the issue summary. Also, after de-activating the main Subscriptions mod, it doesn't show up on the Uninstall list (by design?). This might explain why the configurations I set up for Subscriptions are still remaining after uninstalling everything and then reactivating.
I figure my next move is to take a look at the db and see if I can find the cruft related to Subscriptions that I can clear out manually so I can perhaps start fresh with this mod.
Comment #9
salvisIf you enable the Subscriptions module and update to the current -dev version, you should be able to disable and uninstall it.
Be sure to NOT have more than one copy of any module (e.g. a prior version of Subscriptions under a subscriptions.bak directory) anywhere under your webroot! This can cause all sorts of nasty behavior.
If you can still not remove it, then yes, you probably need to remove it manually from the database.
After that let's concentrate on getting Mail Editor to work: #1323452: Mail editor doesnt save templates.
I was going to publish a new ALPHA version of Subscriptions tonight, but this doesn't make sense as long as Mail Editor isn't working. So, please wait with reinstalling Subscriptions until ALPHA6.
Comment #10
salvisI think this is fixed in ALPHA6.
If any of the symptoms remain, it's probably best to open a new issue.