People might encounter the error "Error: 0 - Invalid address:" when sending emails after upgrading to Joomla! 3.5.1 which affects all BreezingForms versions lower than Build 885 (full) and Build 913 (lite) and ContentBuilder lower than 0.9.91.

Since this update very likely affects other extensions, as well, I'll explain how to fix this quickly.

Users of the full (with an active membership) or lite versions of BreezingForms and ContentBuilder can skip the steps below and simply download and update the extensions through the Joomla! extension manager.

Patching the error manually is simple:

  1. Search your extension for occurrences of the string "addReplyTo" (e.g. searching on the /administrator/components/*extensionname*/ and /components/*extensionname*/ folders.
  2. Check if the found occurrences look similar to this: addReplyTo( array($replyTo, $replyToName) )
  3. The important part here is that $replyTo and $replyToName are wrapped by "array( )". This will throw an error since Joomla! 3.5.1. If there is no such array, then it is already correct.
  4. The trick now is to simply remove the wrapping array() such that it would look like addReplyTo( $replyTo, $replyToName )
  5. Please note that the variables are called $replyTo and $replyToName and they might be called different depending on the extension you want to patch, so please don't do copy and paste from here.
  6. Now test if the error vanishes and emails are getting sent and you should be fine.

Update: Please note that this is not a Joomla! bug but a necessary change of behaviour as described here.

In fact, we extension developers (Crosstec included) used addReplyTo in a wrong fashion before, sorry for this!

Update:

Please note that Joomla!'s behaviour changed since 3.5.1 for any error that happens with emails, not just with addReplyTo() as stated above.

Before, Joomla! allowed previous transactions, such as form submissions, to pass and displayed notification messages at the top of the page about email issues that happened.

Now, Joomla! will throw a hard error (500) and stop the current transaction. This requires all extension developers to handle the thrown error, for example using a try / catch block and enqueuing the error message in the catch-block to restore the old behaviour (displaying a notification at the top of the page).

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!