News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working

Started by miggel, April 06, 2016, 13:14:26 PM

Previous topic - Next topic

miggel

Hello,

I just updated my joomla to 3.5.1 (from 3.5.0) 

So i wanted to set my order to"confirm" in the virtuemart orderlist  then i got the email error and email is not sent.

This ERROR occurd after updating to joomla to 3.5.1

please anyone please advise

Thank you   

lindapowers

I had a problem completing orders after installing 3.5.1 too, an error appeared which seems related to this one, followed Stan's quick fix and meanwhile that solved it for me:

https://www.rupostel.com/phpBB3/viewtopic.php?f=7&t=1403&sid=adbe0f8276c30cc2ec657bb235e310bd

jenkinhill

Joomla changed some code to fix a bug in 3.5 and broke compatibility with VirtueMart and at least one other third party component.  I'd revert to J3.5 until the devs can work out a patch, as any fix to VM code that is made still has to be backwards compatible with earlier Joomla versions. Stan has suggested a fix but that may not be same as the code will be introduced into the VM core by the devs.

Never update Joomla, VM or any other component/extension on a live site!
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

lindapowers

Quote from: jenkinhill on April 06, 2016, 13:29:25 PM

Never update Joomla, VM or any other component/extension on a live site!

I know.. but I saw 3.5.1 and read bug fix and.. you know :(

Don't know if the issue of this guy is related to the one I had but for me that fixed it meanwhile.

one2one

Hello,

After upgrade Joomla 3.5.1 today - I have checkout confirmation error. Virtuemart not confirm the order and I receive this message:

An error has occurred while processing your request.
If difficulties persist, please contact the System Administrator of this site and report the error below.

0 Invalid address:


I find the problem file after upgrade - libraries/joomla/mail/mail.php but I not understand where is the problem.

When I change the old mail.php file from Joomla 3.5.0, the problem is fixed but this is a not good solution.


reinhold

The alternative fix to Stan's is to change the function sendVmMail in components/com_virtuemart/helpers/shopfunctionsf.php as follows:

Change (twice)

$mailer->addReplyTo( $replyTo );

to

$mailer->addReplyTo( $replyTo[0], $replyTo[1] );


Change
$mailer->addReplyTo( $replyTo );
to
$mailer->addReplyTo( $replyTo[0], $replyTo[1] );

Change
$mailer->setSender( $sender );
to
$mailer->setSender( $sender[0], $sender[1] );

This preserves the names and the email addresses.

Best regards,
Reinhold

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

stAn99

hello friends, we had released a SVN patch for this and the full file mod as well:

1. full file for vm3.0.14:
http://www.rupostel.com/svn3/shopfunctionsf.php.src
2. SVN patch:
http://www.rupostel.com/svn3/patch.1459948634.svn.txt
3. further informaton:
http://www.rupostel.com/phpBB3/viewtopic.php?f=7&t=1403

i checked the VM core files and there is no more "->addReplyTo" function occurance, so it should be okay to fix it this way. i tested on j3.5.1, further tests are recommended on other J3.x versions.

best regards, stan
----
RuposTel.com
www.rupostel.com
Your customized checkout solution for Virtuemart

miggel

Thanks!

i will wait for the new patch and keep my joomla 3.5.0 runnig meanwhile


jenkinhill

That is the patch in Stan's message. The file is http://www.rupostel.com/svn3/shopfunctionsf.php.src  - download it and remove the .src then use ftp to upload it to
components/com_virtuemart/helpers/shopfunctionsf.php   

Works for me on J3.5.1 with VM3.0.14.1
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Topaz_gb

Quote from: jenkinhill on April 06, 2016, 13:29:25 PM
Joomla changed some code to fix a bug in 3.5 and broke compatibility with VirtueMart and at least one other third party component. ...
No ... Joomla updated it's code to avoid a bug in mailer.php.  And VM has not yey updated it's code to be compatible with Joomla.  The J3.5.1 rc1 and rc2 have been available for the 3rd party devs to test their extensions. http://forum.joomla.org/viewtopic.php?f=706&t=915779&p=3383595#p3383595


sabikeuk

Quote from: jenkinhill on April 06, 2016, 13:29:25 PM
Joomla changed some code to fix a bug in 3.5 and broke compatibility with VirtueMart and at least one other third party component.  I'd revert to J3.5 until the devs can work out a patch, as any fix to VM code that is made still has to be backwards compatible with earlier Joomla versions. Stan has suggested a fix but that may not be same as the code will be introduced into the VM core by the devs.

Never update Joomla, VM or any other component/extension on a live site!

Same issue, can you please advise how to revert back to Joomla 3.5.0 ? 

jenkinhill

Quote from mbabker  http://forum.joomla.org/viewtopic.php?f=710&t=917243#p3386316
Quote
Long and short, PHPMailer in Joomla 3.5.1 is less error tolerant than before and exposes a lot of incorrect uses of the mail API (including one core bug that had been present for roughly 4 years that was only patched after the error handling change). It's definitely annoying to deal with, but honestly it's a change that has to happen and folks have to make the required updates to their code. I don't know why things gave the impression they worked on 3.5.0 and earlier but some of the use cases I've seen clearly should not have meaning there was bad error handling set up somewhere.

You did not backup before the update? There is no need to revert to J3.5, you can apply one of the patches above. Or download the official patched file from http://dev.virtuemart.net/projects/virtuemart/repository/revisions/9203/entry/branches/com_virtuemart.3.0.12.4/components/com_virtuemart/helpers/shopfunctionsf.php 

VM3.0.16 with the fix is under test at the moment.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

sabikeuk

Quote from: jenkinhill on April 07, 2016, 12:25:04 PM
Quote from mbabker  http://forum.joomla.org/viewtopic.php?f=710&t=917243#p3386316
Quote
Long and short, PHPMailer in Joomla 3.5.1 is less error tolerant than before and exposes a lot of incorrect uses of the mail API (including one core bug that had been present for roughly 4 years that was only patched after the error handling change). It's definitely annoying to deal with, but honestly it's a change that has to happen and folks have to make the required updates to their code. I don't know why things gave the impression they worked on 3.5.0 and earlier but some of the use cases I've seen clearly should not have meaning there was bad error handling set up somewhere.

You did not backup before the update? There is no need to revert to J3.5, you can apply one of the patches above. Or download the official patched file from http://dev.virtuemart.net/projects/virtuemart/repository/revisions/9203/entry/branches/com_virtuemart.3.0.12.4/components/com_virtuemart/helpers/shopfunctionsf.php 

VM3.0.16 with the fix is under test at the moment.
Quote from: jenkinhill on April 07, 2016, 12:25:04 PM
Quote from mbabker  http://forum.joomla.org/viewtopic.php?f=710&t=917243#p3386316
Quote
Long and short, PHPMailer in Joomla 3.5.1 is less error tolerant than before and exposes a lot of incorrect uses of the mail API (including one core bug that had been present for roughly 4 years that was only patched after the error handling change). It's definitely annoying to deal with, but honestly it's a change that has to happen and folks have to make the required updates to their code. I don't know why things gave the impression they worked on 3.5.0 and earlier but some of the use cases I've seen clearly should not have meaning there was bad error handling set up somewhere.

I have usued Akeeba backup before update. I have solved issue by replacing file http://www.rupostel.com/svn3/shopfunctionsf.php.src

I have another issue, I cant access home page http://www.estilofina.sk/ -  just blank, I can access site via a categoty link  e.g. http://www.estilofina.sk/velkonocny-vypredaj

Any idea ?