News:

Looking for documentation? Take a look on our wiki

Main Menu

Ask a question error 500

Started by VopoloS, April 23, 2016, 16:41:54 PM

Previous topic - Next topic

VopoloS

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.

Ghost


jenkinhill

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.
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

VopoloS

#3
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)

GJC Web Design

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
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