Hi,
We have a Joomla 2.5 site which we have upgraded to Joomla 3.3.6 site using Chronoforms 4.0.6 and the Jul 11, 2014 version of email_gh form action installed.
When we try to submit our contact form we are getting the following fatal error:
Fatal error: Call to a member function toString() on a non-object in /home/xeva/public_html/administrator/components/com_chronoforms/form_actions/email_gh/email_gh.php on line 302
This form was working on the Joomla 2.5 version of the site.
What do we need to do to make email_gh work on the Joomla 3 site? We need the email_gh action as we are doing some conditional sending of the email.
Thank you
We have a Joomla 2.5 site which we have upgraded to Joomla 3.3.6 site using Chronoforms 4.0.6 and the Jul 11, 2014 version of email_gh form action installed.
When we try to submit our contact form we are getting the following fatal error:
Fatal error: Call to a member function toString() on a non-object in /home/xeva/public_html/administrator/components/com_chronoforms/form_actions/email_gh/email_gh.php on line 302
This form was working on the Joomla 2.5 version of the site.
What do we need to do to make email_gh work on the Joomla 3 site? We need the email_gh action as we are doing some conditional sending of the email.
Thank you
Hi rlab,
It looks as if Joomla! have removed the toString method in Joomla! 3. The action only uses it to report error strings so the simplest workaround is to comment out the lines where it appears I think that's 271, 272, 302 and 303
Please try that and see if it gets the action working for you. I suspect though that there is an error being thrown by the mailer - which is why those lines are being called :-(
Bob
It looks as if Joomla! have removed the toString method in Joomla! 3. The action only uses it to report error strings so the simplest workaround is to comment out the lines where it appears I think that's 271, 272, 302 and 303
Please try that and see if it gets the action working for you. I suspect though that there is an error being thrown by the mailer - which is why those lines are being called :-(
Bob
Hi,
I changed: $email_sent->toString() to: (string)$email_sent in all places in the email_gh.php file.
That seems to have solved the issue. I now get the error messages coming out.
Thank you.
I changed: $email_sent->toString() to: (string)$email_sent in all places in the email_gh.php file.
That seems to have solved the issue. I now get the error messages coming out.
Thank you.
This topic is locked and no more replies can be posted.