mimemail.tpl.php not loaded from custom theme

Sutharsan - October 26, 2009 - 16:09
Project:Mime Mail
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

The mimemail.tpl.php template is not loaded from the custom theme directory. The path to the custom theme is not included in the registry while custom templates like node.tpl.php and simplenews-newsletter-body.tpl.php are loaded and their path is included in the registry. I'm running out of ideas ...

#1

orchard - November 4, 2009 - 20:07

I had the same problem. I spent about 4 hrs and tried a bunch of things, so Im not sure exactly what fixed it, but here are my final settings.

Mime Mail 6.x-1.0-alpha1 is Enabled
Mime Mail CSS Compressor 6.x-1.0-alpha1 is DISABLED - I think this was the main issue, but not too sure. Once i disabled it, it seemed to grab the sites/all/modules/mimemail/mimemail.tpl.php and format the body.

Simplenews 6.x-1.x-dev Enabled
Simplenews action 6.x-1.x-dev Enabled.

I created my own format called "Newsletter format" because I didnt want my body info being changed. I changed the input format for my newsletters to use"newsletter format".

On the Mime Mail settings, I have "Use mime mail for all messages" checked, and input format as Newsletter format.

In the body of my newsletter i did NOT have or tags. I used to, but in my testing I removed them. Not sure if this was a problem or not, but currenty they are gone and everything is working. Plus, the mimemail.tpl.php file added them in anyways :)

Remember to clear your drupal cache! This was one issue I ran into. Using admin menu module makes this easy.

I think that's it.

Good luck!

#2

johngriffin - November 9, 2009 - 16:47

I am seeing the same issue with

- Mime Mail 6.x-1.x-dev
- Simplenews HEAD

Mime Mail CSS Compressor is disabled

Cache has been cleared

"Use mime mail for all messages" is not checked

Still doesn't seem to be picking up mimemail.tpl.php in the theme dir.

#3

ghazlewood - November 10, 2009 - 18:13

I'm also experiencing this problem although I'm not using Simple News. I am using a Zen sub-theme though which I think might be the root cause of the issue. I've not looked into it in any more detail yet but will try and come up with a patch later this week if I get time.

#4

brei9000 - November 19, 2009 - 15:44

Subscribing...

#5

guix - November 27, 2009 - 16:25
Status:active» duplicate

Duplicate of #583920: Can't override mimemail.tpl.php !

Sutharsan, orchard, ghazlewood, is your theme a subtheme of Zen ?

 
 

Drupal is a registered trademark of Dries Buytaert.