We have a Drupal system set up for our website, but as it was done as a one-off - I am now struggling with certain elements of the system, in order to keep the website uptodate.
I hope that this Forum will give me pointers to the correct procedures for all that I need to know - which is a lot - so I will sound very dumb to a lot of you!!
I have created and sent a newsletter, but have received the following message, so do not know how to solve this? Can anyone help - and in very plain English for me please, as it is new to me and I need to learn.
The Drupal system has been upgraded, but, again, am unsure of the version - so please excuse me if I am wrong in saying it is Drupal 6.x
Many thanks
Regards
Margaret
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.
* Newsletter Bod Ayre Product - Our July Newsletter is being sent
Comments
Add empty mail.css file
hi Margaret,
Add an empty mail.css file into your theme folder. It solved my similar problem.
thanks & regards,
Manjula
Got the same problem -
Got the same problem - unfortunately adding mail.css in the theme folder doesn't help.
mail.css in theme dir worked for me
Many thanks
I edited file mimemail.inc It
I edited file mimemail.inc
It is:
if (isset($part['name'])) {
$part_headers['Content-Type'] .= '; name="'. $part['name'] .'"';
$part_headers['Content-Disposition'] .= '; filename="'. $part['name'] .'"';
}
$part_body = chunk_split(base64_encode(file_get_contents($part['file'])));
It must be:
if (isset($part['name'])) {
$part_headers['Content-Type'] .= '; name="'. $part['name'] .'"';
$part_headers['Content-Disposition'] .= '; filename="'. $part['name'] .'"';
$part_body = chunk_split(base64_encode(file_get_contents($part['file'])));
}
empty mail.css worked for me
Adding an empty mail.css file into my theme folder also worked for me.
Thanks!
issue
#649944: Filename cannot be empty in mimemail.module on line 398.
I'm getting the same error in
I'm getting the same error in a different line number. The mail.css file did NOT solve the problem.
warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /usr/home/www/sites/all/modules/mimemail/mimemail.inc on line 244.
The problem I guess might be something to do with the size of the body because it doesn't happen always. I can't debug my production server where emails will be larger but in my home environment it works aswell as for some mails from the production server.
It's an error in the module.
It's an error in the module. Try the code allexx provided..it resolves the issue for me.
Shouldn't that be a bug
Shouldn't that be a bug report?
Is there a way to make this thread into a bug report so a patch could be submitted?
Re : Error on line 244
I've got the same problem than josepvalis ("file name cannot be empty (...) on line 244").
I've tried to change by the code that allexx provided, but now a new error appears : "Parse error: syntax error, unexpected $end in (www/drupal)/modules/mimemail/mimemail.inc on line 581".
Can somewone help me ?
Thanks !