Page 1 of 1

PHP Fatal error after PDF Invoice Pro (phpmailer)

Posted: Sun Jun 24, 2018 5:35 pm
by veenie
I've just installed PDF Invoice Pro.
Which added an whole new phpmailer function to the opencart installation.
Unfortanly this module doesn't seem to work and trashes the mailing function of our store.

Does someone else has experienced this before and knows the solution?
It seems it's missing the bcc address?

Code: Select all

2018/06/24 11:05:15 [error] 23824#23824: *3128454 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Cannot redeclare Mail::$bcc in /home/wetronic/wetronic.nl/vqmod/vqcache/vq2-system_storage_modification_system_library_mail.php on line 83" while reading response header from upstream, client: 84.104.203.203, server: wetronic.nl, request: "POST /index.php?route=api/order/history&token=RsuAaVjACcyI1zRP8It5krkiLMF2c4b9&store_id=0&order_id=8782 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm-wetronic.sock:", host: "wetronic.nl", referrer: "https://wetronic.nl/wte/index.php?route=sale/order/info&token=e4D7gRL3NZasayrPJz7FyGPMA5p0UF7X&order_id=8782"
this code is where the error is:

Code: Select all

			protected $bcc;       
			
			public function setBcc($bcc) {
			  $this->bcc = $bcc;
			}
			
I've attached the phpmailer since it seems it's an standard module.

We're using opencart 2.3.0.2
Our server is PHP7 and NGINX with an external smtp mail server configured.

Re: PHP Fatal error after PDF Invoice Pro (phpmailer)

Posted: Sun Jun 24, 2018 8:58 pm
by straightlight
Contact the extension developer to resolved this issue.

Re: PHP Fatal error after PDF Invoice Pro (phpmailer)

Posted: Sun Jun 24, 2018 9:37 pm
by veenie
already did but they are closed till tomorrow so was wondering if someone else had this issue since it seems an general issue with the phpmailer not specific with the pdf invoice pro extention.

Re: PHP Fatal error after PDF Invoice Pro (phpmailer)

Posted: Sun Jun 24, 2018 9:43 pm
by straightlight
If you cannot wait until tomorrow, and you're using a pro version of an extension (paid), you could always submit a new request in the Commercial Support section of the forum to get the reported issue fixed as a custom job.

Re: PHP Fatal error after PDF Invoice Pro (phpmailer)

Posted: Sun Jun 24, 2018 10:17 pm
by veenie
never mind already fixed seems that the phpmailer is not necessary for our server and is only causing issues.
removed the phpmailer and went back to the original mailer version now it works fine again.