Language string failed to load: invalid_address

When i submit my Joomla! 1.6 or 1.7 form i receive the following message for a brief period of time: Language string failed to load: invalid_address.

The problem is generated by Joomla! itself and not directly by RSform!Pro, as it relies on the built sendMail() Joomla! email sending function.

Until the Joomla! 1.6/1.7 bug squad resolves this, you can perform a small adjustment to the libraries/phpmailer/phpmailer.php file:

Just replace:

    if (!self::ValidateAddress($address)) {
      $this->SetError($this->Lang('invalid_address').': '. $address);
      if ($this->exceptions) {
        throw new phpmailerException($this->Lang('invalid_address').': '.$address);
      }
      echo $this->Lang('invalid_address').': '.$address;
      return false;
    }

with:

    /*if (!self::ValidateAddress($address)) {
      $this->SetError($this->Lang('invalid_address').': '. $address);
      if ($this->exceptions) {
        throw new phpmailerException($this->Lang('invalid_address').': '.$address);
      }
      echo $this->Lang('invalid_address').': '.$address;
      return false;
    }*/

While for Joomla! 1.7 you will have to edit the same file and change the code lines:

  if(isset($this->language[$key])) {
    return $this->language[$key];
  } else {
    return 'Language string failed to load: ' . $key;
  }
to this:
  /* if(isset($this->language[$key])) {
    return $this->language[$key];
  } else {
    return 'Language string failed to load: ' . $key;
  } */

This small workaround will simply disable the message from being displayed.

Was this article helpful?

Yes No
Sorry about that