Author Topic: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working  (Read 41997 times)

miggel

  • Beginner
  • *
  • Posts: 17
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

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #1 on: April 06, 2016, 13:24:29 pm »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28602
  • Always on vacation
    • Jenkin Hill Internet
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #2 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!
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.0.22 10858  J 3.10.11 PHP 8.0.27

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #3 on: April 06, 2016, 13:35:32 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

  • Beginner
  • *
  • Posts: 18
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #4 on: April 06, 2016, 13:57:36 pm »
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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 204
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #5 on: April 06, 2016, 15:11:58 pm »
The alternative fix to Stan's is to change the function sendVmMail in components/com_virtuemart/helpers/shopfunctionsf.php as follows:

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

Change
Code: [Select]
$mailer->addReplyTo( $replyTo );to
Code: [Select]
$mailer->addReplyTo( $replyTo[0], $replyTo[1] );
Change
Code: [Select]
$mailer->setSender( $sender );to
Code: [Select]
$mailer->setSender( $sender[0], $sender[1] );
This preserves the names and the email addresses.

Best regards,
Reinhold

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28602
  • Always on vacation
    • Jenkin Hill Internet
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #6 on: April 06, 2016, 15:13:19 pm »
Is that backwards compatible for earlier Joomla versions?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.0.22 10858  J 3.10.11 PHP 8.0.27

stAn99

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 100
    • One Page Checkout for Virtuemart 2
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #7 on: April 06, 2016, 15:25:49 pm »
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

  • Beginner
  • *
  • Posts: 17
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #8 on: April 06, 2016, 16:03:03 pm »
Thanks!

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


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28602
  • Always on vacation
    • Jenkin Hill Internet
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #9 on: April 06, 2016, 16:22:54 pm »
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

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.0.22 10858  J 3.10.11 PHP 8.0.27

Topaz_gb

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #10 on: April 06, 2016, 17:26:27 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

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 901
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always the latest

sabikeuk

  • Jr. Member
  • **
  • Posts: 52
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #12 on: April 07, 2016, 09:38:24 am »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28602
  • Always on vacation
    • Jenkin Hill Internet
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #13 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.0.22 10858  J 3.10.11 PHP 8.0.27

sabikeuk

  • Jr. Member
  • **
  • Posts: 52
Re: After updating to joomla 3.5.1 virtuemart 3.0.14 emails no working
« Reply #14 on: April 07, 2016, 13:06:27 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 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 ?