VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: VopoloS on April 23, 2016, 16:41:54 PM

Title: Ask a question error 500
Post by: VopoloS on April 23, 2016, 16:41:54 PM
When you use the form "Ask a question on the product", you get an error 500 due to the fact that the sender name does not pass validation. Who had the sense to substitute the User name to the mail of the seller? How to solve this problem?

If the "Name" field to enter the e-mail, then the form works. If the name input we get the following:

Invalid address: My Name
...\libraries\vendor\phpmailer\phpmailer\class.phpmailer.php:857

852             // At-sign is misssing.
853             $error_message = $this->lang('invalid_address') . $address;
854             $this->setError($error_message);
855             $this->edebug($error_message);
856             if ($this->exceptions) {
857                 throw new phpmailerException($error_message);
858             }
859             return false;
860         }
861         $params = array($kind, $address, $name);
862         // Enqueue addresses with IDN until we know the PHPMailer::$CharSet.
Title: Re: Ask a question error 500
Post by: Ghost on April 23, 2016, 17:34:54 PM
Update VirtueMart to 3.0.16.
Title: Re: Ask a question error 500
Post by: jenkinhill on April 23, 2016, 17:35:43 PM
Can it be possible that you have updated your Joomla to J3.5.1? If so you should be using VM3.0.16 with Joomla 3.5.1 otherwise emails won't work.  http://dev.virtuemart.net/projects/virtuemart/files

Discussed here many times:
http://forum.virtuemart.net/index.php?topic=133760
http://forum.virtuemart.net/index.php?topic=133763
and others.
Title: Re: Ask a question error 500
Post by: VopoloS on April 23, 2016, 18:37:46 PM
And not just files to replace? I'm afraid to upgrade to 3.0.16 - who knows what else may appear.

О.. Thanks, I just made changes to shopfunctionsf.php  (function sendVmMail)
Title: Re: Ask a question error 500
Post by: GJC Web Design on April 23, 2016, 18:55:16 PM
All my sites are on 3.0.16-J3.5.1  .. all stable

depends of course on your templates and if you've been hacking