×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: PDF Invoice Email Errors

PDF Invoice Email Errors 10 years 1 month ago #28117

  • Mississippi Recycling Coalition
  • Mississippi Recycling Coalition's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
When a PDF invoice is generated and emailed, the attached invoice will not open. However, when you view the booking online, the downloaded invoice opens with no issues. The email is being sent through Mandrill using CMandrill (not sure if that may be part of the problem or not). If you want to test, see http://www.msrecycles.org/fall2014confreg.html . I am using the latest version of Matukio (4.5.4).

PDF Invoice Email Errors 10 years 1 month ago #28118

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hmm it's zero byte, not sure what's going on (maybe a template or server issue). Any errors in the php log? (Like memory problems or timeouts?) Can you create a super admin account for me? (Credentials to This email address is being protected from spambots. You need JavaScript enabled to view it.) Going to check then.

Kind regards,

Yves

PDF Invoice Email Errors 10 years 1 month ago #28127

  • Mississippi Recycling Coalition
  • Mississippi Recycling Coalition's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
I have taken a look at all of the logs that I was able to find and I did not see anything in any of the error logs. Maybe it is a template issue; however, I would think that it would fail on generating the downloadable PDF as well. I have created an account for you that will be emailed shortly. I appreciate the assistance.

PDF Invoice Email Errors 10 years 1 month ago #28128

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
How do you send emails in Joomla? (Global configuration -> phpmail, sendmail or smtp?) Does the server support email attachments (maybe it's limited or disallowed by admin) - it's normally the exact same function that generates the invoice for downloading and you are the first reporting issues with that.

Kind regards,

Yves

PDF Invoice Email Errors 10 years 1 month ago #28129

  • Mississippi Recycling Coalition
  • Mississippi Recycling Coalition's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
All email gets sent out through CMandrill. The invoices for AkeebaSubs appear to be mailed correctly using the same setup; so, I do not think it is an email sending issue. I know I have gotten conflicting reports about directory writing permissions where MyJoomla says directories are not writable but Joomla's system information page says that they are writeable. So there could be an issue there somewhere that I have not ruled out yet.

PDF Invoice Email Errors 10 years 1 month ago #28132

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hmm i don't think that we have a directory permission problem (maybe a cache one, but don't think so, because we also don't use disk cache) - when Matukio sends the email the invoice is not saved temporary, but directly attached to the email, for the download it's directly sent to the browser.

Everything else looks fine on the site. I fear i need FTP access to debug that, maybe it's related to max memory (TCPDF consumes a lot) etc. - any hints in the php error log for that? Did you change anything in the TCPDF config?

Kind regards,

Yves

PDF Invoice Email Errors 10 years 1 week ago #28814

  • Jack Bremer
  • Jack Bremer's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi,

We are having what seems to be the exact same problem.

Email attachments (tickets and invoices) work fine until turning Mandrill plugin on - thereafter, attachments all have 0 bytes.

Any help would be much appreciated.

Thanks.

PDF Invoice Email Errors 10 years 1 week ago #28815

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Can someone provide me with access credentials to those sites? I would need backend access & ftp access to debug this. (also instructions how to reproduce this).
Actually CMandrill shouldn't be sending any emails that contain attachments. When I wrote the plugin, the Mandrill API didn't have support for emails with attachments, so in this case the cmandrill plugin sends the task to the standard joomla class for processing.

And the standard joomla class would use whatever settings you have in the global configuration.

Regards,
Daniel

PDF Invoice Email Errors 10 years 1 week ago #28816

  • Jack Bremer
  • Jack Bremer's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi Daniel,

Thanks for your reply. Unfortunately, we cannot give FTP access to our site as it is now live (with Mandrill disabled).
However, we are using Matukio version 5.5 (with no overrides which should affect the booking confirmations)
and CMandrill v3.0.2.

The global config has Mailer set as PHP Mail.

Please let me know if there is any other information which would be helpful to you.

PDF Invoice Email Errors 10 years 1 week ago #28817

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Can you use smtp in the global config and set the mandrill smtp servers there?

PDF Invoice Email Errors 10 years 1 week ago #28821

  • Jack Bremer
  • Jack Bremer's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi Daniel,

We had a look into the issue, which seems to be with String based attachments.

We've added a fix to the Mandrill plugin: plugins/system/mandrill/mailer/mail.php, line 617:
// check for string attachment
				if($attachment[5]) {
					$attachmentContent = $this->EncodeString($attachment[0]);
				} else {
					$attachmentContent = $this->EncodeFile($attachment[0]);
				}
 
				if (preg_match('/^image/', $mime_type))
				{
					// Image attachment
					$iAttachments[] = array(
						'name' => $attachment[2],
						'type' => $mime_type,
						'content' => $attachmentContent
					);
				}
				else
				{
					// Normall attachment
					$mAttachments[] = array(
						'name' => $attachment[2],
						'type' => $mime_type,
						'content' => $attachmentContent
					);
				}

PDF Invoice Email Errors 9 years 10 months ago #29792

  • Mississippi Recycling Coalition
  • Mississippi Recycling Coalition's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
Another issue that has been traced to CMandrill has been found. I have posted a question in the CMandrill Bug Forum and linking here since it may be related.
  • Page:
  • 1
Time to create page: 0.184 seconds