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
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
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!
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.
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.
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
Is that backwards compatible for earlier Joomla versions?
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
Thanks!
i will wait for the new patch and keep my joomla 3.5.0 runnig meanwhile
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
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
You may also refer to this post for the solution - https://www.virtueplanet.com/forum/general-questions/22774-virtuemart-order-confirmation-page-error-after-joomla-3-5-1-update-and-solution
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 ?
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.
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 ?
A big thank you to all who participated in bringing this issue to light and providing a fix. It helped me out tremendously. You folks are A-W-E-S-O-M-E!
Quote from: reinhold 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)
$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
There's no need to change the 'setSender'-call, that one is still valid.
Quote from: one2one 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.
Well, the patch they refer here for Joomla 3.5.1 and VM 3.0.14 didn't work for me. So, on the meanwhile, I have adopted your patch while I wait for the VM 3.0.16 or find another solution (I have some sort of problem with Joomla upgrade, I still get the "Joomla! 3.5.0 is available: Update Now" message and I have the 3.5.1 running.
Just an additional note (if it hasn't already been mentioned). This same issue also caused a problem with the "Register & Checkout" button, where the user is redirected to MYSITE/shop/user, but receives "0 - Invalid address" message.
The shopfunctionsf.php patch also fixed this issue for me. I do believe I had to update to Virtuemart 3.0.14 for the issue to be sorted too.
VM3.0.16 has been avaiolable for a couple of days now. http://dev.virtuemart.net/projects/virtuemart/files
hello friends, we had compared all modifications in shopfunctionsf.php since vm3.0.0 to the latest 3.0.16 and created a version that is backward compatible with all of the prior VM versions in case you wanted to run it on latest Joomla 3.5.1 and later
the file can be downloaded from:
http://www.rupostel.com/svn3/shopfunctionsf.php.allversions.src
upload to your /components/com_virtuemart/helpers/shopfunctionsf.php
we also created an installable zip package for joomla that overwrites the core shopfunctionsf.php
http://www.rupostel.com/svn3/shopfunctionsf_joomla_installer.zip
merges include all changes from versions of :
VM3.0.0, 3.0.2, 3.0.4, 3.0.6.2, 3.0.8, 3.0.9.6, 3.0.12, 3.0.13.2, 3.0.14, 3.0.16
best regards, stan
Hi There
I am using Joomla 3.5.1 and VM 3.0. and still getting "ERROR: 0 Invalid address:"
after getting new file shopfunctionsf.php
Please Help
Just use the shopfunctionsf.php of the vm3.0.16
Just a heads up
fixed a J3.5.1/VM3.0.16 install today still showing the "ERROR: 0 Invalid address:" and turns out it was because he had messed up his vendors so the reply to email was missing and throwing this exact same error -- so not always this (above) reason causes this problem
Quote from: jenkinhill on April 07, 2016, 12:25:04 PM
VM3.0.16 with the fix is under test at the moment.
I'm on Joomla 3.5.1 and VM 3.0.16 and still having this error. :( Orders show up in VM but no e-mail is dispatched and the customer gets an error message
QuoteThe requested page can't be found.
An error has occurred while processing your request.
You may not be able to visit this page because of:
an out-of-date bookmark/favourite
a mistyped address
a search engine that has an out-of-date listing for this site
you have no access to this page
If difficulties persist, please contact the System Administrator of this site and report the error below.
0 Invalid address:
Quote from: GJC Web Design on May 09, 2016, 19:24:28 PM
fixed a J3.5.1/VM3.0.16 install today still showing the "ERROR: 0 Invalid address:" and turns out it was because he had messed up his vendors
How can I go about working toward a fix? My vendor profile has an e-mail address entered into their profile. :-\
I do have the following "warning" in Joomla:
QuoteThe PHP temporary folder is not set.
The PHP temporary folder is the folder that PHP uses to store an uploaded file before Joomla can access this file. Whilst the folder not being set isn't always a problem, if you are having issues with manifest files not being detected or uploaded files not being detected, setting this in your php.ini file might fix the issue.
Could this be any part of the issue?
UPDATE [SOLIVED]: If anyone is still having troubles, please make sure in your
Global Config > Server your
From email and
From Name are
NOT blank!
Hello,
I have J3.5.1 and VM3.0.16.
Even after applying the above-mentioned fixes and making sure that vendor has email and name (full profile) set up I am getting 0 invalid address error.
My Joomal Admin > Global Config > System does not have "From email" and "From Name" fields. Where exactly am I supposed to look for these?
I found it.
It is here:
Joomla Admin > Global Config > Server
and the from email and from name fields are filled and valid.
Any other reasons for the 0 Invalid Address Error?
the case I fixed the vendor email was missing because of various vendor config cockups
to find echo out mailer stuff in the helpers/shopfunctionsf.php .. the send mail function .. to find whats missing
Hello,
I replaced 3.5.1 mail.php with that of 3.5.0 and it worked. (libraries/joomla/mail/mail.php).
Now there are no errors in paypal checkout, emails are sent to vendor and customer and order is confirmed.
But I am still getting a notice on return invoice page:
"Notice
You must provide at least one recipient email address."
What may be causing this?
@ GJC Web Design:
Can u please elaborate on this especially the second sentence?
"the case I fixed the vendor email was missing because of various vendor config cockups
to find echo out mailer stuff in the helpers/shopfunctionsf.php .. the send mail function .. to find whats missing"
I updated Joomla to 3.5.1, virtuemart from 3.0.11.4 to 3.0.16 and activated php7. Everything works fine, the only thing that doesn't work is if I try to switch the order status from any status to "confirmed". If I do so I get an joomla error: "Es ist ein Fehler aufgetreten! 1 Could not access file: 0" "An error occurred! 1 Could not access file: 0" Any idea what went wrong?
My reply was to just let u know that even though the forum is full of "0: invalid address" related to the recent J3.5.1 update this error is also a very general one that could be related to any email failure
It is only saying that one of the email addresses is missing (sender or recipient) - and this can be caused by many things
So the investigation needs to be where and why an email address is missing
In the case I mentioned the vendor email was missing at the vm mail helper.. there was at least 3 vendors specified (it was a migration)
by clearing the lot, making a new superadmin, logging it into VM and assigning as store owner it all came right
Thank you "stAn99" and everyone else that posted. The two files I downloaded from your post worked great. Very much appreciated.
The update does not seem to fix the "Send to a friend" or the "Ask a Question" emails.
I think we need to change the code a bit to something like this, does anyone have an easy way of getting the vendor email/name/id?
if(isset($view->orderDetails['details']) && isset($view->orderDetails['details']['BT'])) {
$replyTo[0] = $view->orderDetails['details']['BT']->email;
$replyToName[0] = $view->orderDetails['details']['BT']->first_name . ' ' . $view->orderDetails['details']['BT']->last_name;
} else {
if(isset($view->user->email) && $view->user->name) {
$replyTo[0] = $view->user->email;
$replyToName[0] = $view->user->name;
}
elseif (isset ($view->vendor->vendor_name)) {
$replyTo[0] = $view->user['email'];
$replyToName[0] = $view->user['name'];
}
else {
//coming from send to a friend or ask a question, so no order details
//get vendor email from config / db
}
}
Thanks