Suddenly not recieving order confirmation emails, no known change on my end

Started by kden, March 14, 2016, 19:55:09 PM

Previous topic - Next topic

2cool

ehhh sorry, don't know what you mean. Is this function removed?
I really want to know how to get this working.

Regards, Pas

darrenhallinan

Hi Folks

I am also having similar problems

When a customers pays they get returned to site with error

Debug infomation

Invalid address: Name
Call stack   
#      Function      Location   
1      JApplicationCms->execute()      /var/www/vhosts/43/386146/webspace/httpdocs/index.php:49   
2      JApplicationSite->doExecute()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/cms/application/cms.php:257   
3      JApplicationSite->dispatch()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/cms/application/site.php:230   
4      JComponentHelper::renderComponent()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/cms/application/site.php:191   
5      JComponentHelper::executeComponent()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/cms/component/helper.php:380   
6      require_once()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/cms/component/helper.php:405   
7      JControllerLegacy->execute()      /var/www/vhosts/43/386146/webspace/httpdocs/components/com_virtuemart/virtuemart.php:125   
8      VirtueMartControllerCart->updatecart()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/legacy/controller/legacy.php:728   
9      VirtueMartControllerCart->display()      /var/www/vhosts/43/386146/webspace/httpdocs/components/com_virtuemart/controllers/cart.php:188   
10      VirtueMartCart->confirmDone()      /var/www/vhosts/43/386146/webspace/httpdocs/components/com_virtuemart/controllers/cart.php:102   
11      VirtueMartCart->confirmedOrder()      /var/www/vhosts/43/386146/webspace/httpdocs/components/com_virtuemart/helpers/cart.php:895   
12      JEventDispatcher->trigger()      /var/www/vhosts/43/386146/webspace/httpdocs/components/com_virtuemart/helpers/cart.php:1183   
13      JEvent->update()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/joomla/event/dispatcher.php:160   
14      call_user_func_array()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/joomla/event/event.php:69   
15      plgVmPaymentStandard->plgVmConfirmedOrder()          
16      VirtueMartModelOrders->updateStatusForOneOrder()      /var/www/vhosts/43/386146/webspace/httpdocs/plugins/vmpayment/standard/standard.php:139   
17      VirtueMartModelOrders->notifyCustomer()      /var/www/vhosts/43/386146/webspace/httpdocs/administrator/components/com_virtuemart/models/orders.php:875   
18      shopFunctionsF::renderMail()      /var/www/vhosts/43/386146/webspace/httpdocs/administrator/components/com_virtuemart/models/orders.php:1761   
19      shopFunctionsF::sendVmMail()      /var/www/vhosts/43/386146/webspace/httpdocs/components/com_virtuemart/helpers/shopfunctionsf.php:562   
20      JMail->addReplyTo()      /var/www/vhosts/43/386146/webspace/httpdocs/components/com_virtuemart/helpers/shopfunctionsf.php:657   
21      JMail->add()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/joomla/mail/mail.php:442   
22      call_user_func()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/joomla/mail/mail.php:278   
23      PHPMailer->addReplyTo()          
24      PHPMailer->addOrEnqueueAnAddress()      /var/www/vhosts/43/386146/webspace/httpdocs/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php:832


VM Version: 3.0.14
Joomla: Joomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT

No VM emails get sent

All other joomla mail works fine

also noticed that email customs button in products does not work

also noticed another issue that when customer adds product to cart it wont add for the first time and then its fine.

Any help advise grateful

can someone tell me can I overwrite VM files with older version until issues fixed safely?

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

kden

I haven't ever managed to find a fix to my original problem, would updating my joomla to 3.5 make a difference and fix the issue?

2cool

This is not simular to my problem.
All works fine exect the registration email to admin.

@Jenkin; Culd you explain this: 'ISTR that following a lot of compaints/requests the automatic registration email to Vendors was removed.'

Still not fixed this issue.
Tried clean install joomla + vm with same trouble.

What is different in the process of email orders, ask a question or vm registration to admin??

Regards,

pas

lmiksch

Joomla 3.5.1
Virtuemart 3.0.14
Community Builder 2.014

I just started having 3 issues after the last Joomla update. The first problem is the same as yours

Problem 1
I was not receiving email conformations when orders were placed.

SOLUTION:
Spam Assassin blocked my sending address. Whitelisting the send address resolved this problem and I am receiving emails again.

Problem 2
Charge Card payments no longer return users to a valid page upon completion of the charge. I am using Elavon as my payment processor. Paypal payments resolve correctly.

Unresolved

Problem 3
Product questions sent from my website fail when users are logged in. If users are not logged in - the question request processes normally. I also run Community Builder

Unresolved

2cool

Lots of people have email issues with virtuemart.
My only issue is the virtuemart registration mail to administrator...
Users do recieve an email after registratin.
And all other emails work fine.

I can't figure out what the difference is for sending this admin email !

Thanks,

Pas

kden

Imiksch: You seem to have solved the problem I originally posted this thread about for you. I am not using spam assassin or any sort of spam blocker beyond what godaddys email provider does. Does anybody have any suggestions for whitelisting an email for that? Godaddy and my website host swear everything is right on their end but I only don't get that email to confirm an order to the vendor, all other emails work fine, and I haven't found any issues in the coding.

QuoteProblem 1
I was not receiving email conformations when orders were placed.

SOLUTION:
Spam Assassin blocked my sending address. Whitelisting the send address resolved this problem and I am receiving emails again.


jenkinhill

GoDaddy? Check your error logs to see if there is a PHP resource issue or any other error. Also do you get a vendor email when changing the order status?
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

kden

Jenkinhill:
There is nothing concerning in the logs that I can see. The vm logs only have an error about a png, which tcpdf doesn't like, and the joomla logs show errors of people trying to login and fail. (hackers) Sidenote: makes me want to look into better ways to prevent that.

We get the vendor emails when I change the order status. The backend gives the error "Could not instantiate mail function." But I still receive it. I also got an error for the customer saying it could not send to me/my email on a test order, but I got the email anyways so I am assuming the customer is getting the emails.

I did just get off support AGAIN with my hosting provider (web hosting hub) to double check that php mail was functioning properly. She claimed there was a missing line in the php.ini which she added, " sendmail_path = /usr/sbin/sendmail -t -I " so maybe that will fix it but I was getting emails, just not a confirmed order email. Godaddy is our email host and says nothing is throwing errors or bouncing.

I am still stumped about what is going wrong and where to cause the vendor emails to stop sending with the vm update.

jenkinhill

Quote
The vm logs only have an error about a png, which tcpdf doesn't like

Is enough to stop the mail function. I guess it is a store logo, so replace with a jpg file.
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

kden

That is interesting to know, thanks for pointing that out. I always assumed since it said underneath the upload area that a png was accepted it was fine. I will change that to a jpg and see if it indeed helps with sending those emails.

jenkinhill

For most functions png files are OK, but this is about tcpdf used to generate the invoice,
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

GJC Web Design

@2cool..

while doing something else I came across this function in

administrator\components\com_virtuemart\models\user.php

maybe u can see if it is still used and debug why your not getting the admin one -- vm3.0.16

check ->  $vars['doVendor']= (boolean)$usersConfig->get('mail_to_admin');

/**
* This uses the shopFunctionsF::renderAndSendVmMail function, which uses a controller and task to render the content
* and sents it then.
*
*
* @author Oscar van Eijk
* @author Max Milbers
* @author Christopher Roussel
* @author Valérie Isaksen
*/
private function sendRegistrationEmail($user, $password, $doUserActivation){
if(!class_exists('shopFunctionsF')) require(VMPATH_SITE.DS.'helpers'.DS.'shopfunctionsf.php');
$vars = array('user' => $user);

// Send registration confirmation mail
$password = preg_replace('/[\x00-\x1F\x7F]/', '', $password); //Disallow control chars in the email
$vars['password'] = $password;

if ($doUserActivation) {
jimport('joomla.user.helper');
$activationLink = 'index.php?option=com_users&task=registration.activate&token='.$user->get('activation');

$vars['activationLink'] = $activationLink;
}

$usersConfig = JComponentHelper::getParams( 'com_users' );
$vars['doVendor']= (boolean)$usersConfig->get('mail_to_admin');
// public function renderMail ($viewName, $recipient, $vars=array(),$controllerName = null)
shopFunctionsF::renderMail('user', $user->get('email'), $vars);

}
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

2cool

Hi GJC Web Design,

Problem is solved with latest update!!! happy!

Now running joomla 3.5.1 and virtuemart 3.0.16

Thanks,

Pas