| Post |
|
Member | SalemDesign posts 7 6:12 pm June 27, 2009
| |
|
|
WP: 2.1.3
CFORM II: 5.4
I have a domain drseckel.com that I have been using CFORM II with.
The CFORM II was working until a few months ago (in the sense that emails were sent to admins when a visitor filled in the form and clicked submit).
But my hosting service now requires the use of SMTP authentication and so the old way of sending emails from within the CFORM II PHP stopped working.
So I enabled SMTP within the CFORMS II Plugin Settings window. And I got an error message indicating that the PHPMailer class file was not present. So I went to the PHPMailer website and copied over class.phpmailer.php and class.smtp.php to the wp-includes directory. I still had problems and I read in a couple of threads here that one needed to rename them to class-phpmailer.php and class-smtp.php… So I did that.
In any case, I no longer get the error message within the CFORMS II Plugin Settings window… But the webform still does not work… When I click submit I get the following error message:
Fatal error: Cannot access protected property PHPMailer::$language in /home/salembiz/public_html/drseckel/wp-content/plugins/contactforms/phpmailer/cforms_phpmailer.php on line 12
When I check that bit of code it looks like:
include_once ('phpmailer.lang-en.php'); $mail->language = $PHPMAILER_LANG;
The file phpmailer.lang-en.php is present in the same directory as cforms_phpmailer.php.
In any case, if anyone has a suggestion for how to get the SMTP authentication/PHPMailer mechanism to work, it would be appreciated.
TIA, –Doug
[And yes, I realize I should upgrade both WP and CFORMS II... But we are in the process of totally replacing this site with a new domain and design... I just want to keep the current site working for another month or two. ]
|
|
|
Admin
| Oliver Munich, Germany posts 6237 8:33 pm June 27, 2009
| |
|
|
jeez v5.4, that is beyond ancient 
for some users there indeed have been issues with SMTP server authentication (for the older releases), which should be all addressed by the current version.
What's your URL?
I can take a quick look, but can't promise anything, since v5.4 seems light years ago.
|
|
|
|
|
Member | SalemDesign posts 7 6:02 pm June 28, 2009
| |
|
|
If you could take a look, I would appreciat it.
The URL is http://drseckel.com
or http://drseckel.com/contact/ for the actual form page.
[Please note, I unchecked the SMPT mechanism so that we'd still record any entries in the tracking database.]
TIA,
–Doug
Oliver said:
jeez v5.4, that is beyond ancient 
for some users there indeed have been issues with SMTP server authentication (for the older releases), which should be all addressed by the current version.
What's your URL?
I can take a quick look, but can't promise anything, since v5.4 seems light years ago.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 8:36 pm June 28, 2009
| |
|
|
Based on the quick test I ran, it looks just fine.
The only issue could be with either the admin email per se or the SMTP delivery, but since there is no issue with the initial handshake, I suspect it's a routing issue.
|
|
|
|
|
Member | SalemDesign posts 7 9:33 pm June 28, 2009
| |
|
|
Sorry Oliver, I may have messed you up. 
After my initial post here, I unchecked SMTP in the cforms II setup (I didn't want to mess up recording entries in the tracking database).
When the SMTP was checked, I would get the followning error message when I hit the submit button:
Fatal error: Cannot access protected property PHPMailer::$language in /home/salembiz/public_html/drseckel/wp-content/plugins/contactforms/phpmailer/cforms_phpmailer.php on line 12
If you want me to re-enable the SMTP so you can check what's going on, just let me know.
Thanks, –Doug
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:16 am June 29, 2009
| |
|
|
what happens when you comment out that line?
PS:
in case you only have one standard form I do recommend and upgrade (make proper backups first: cforms & via WP / PHPMyadmin). In case something goes wrong during the upgrade, you can always restore WP and try your old v5.4 install (just move your old cforms folder outside of /plugin/).
I think it'll be much less pain upgrading cforms than trying to fix your current installation.
|
|
|
|
|
Member | SalemDesign posts 7 4:44 pm June 29, 2009
| |
|
|
Hello Oliver,
I tried commenting out line 12, re-enabling SMTP and then submitting a form… That gets rid of the line 12 error message, and no downstream error message appears but the form just hangs at "One moment please…" and no emails are sent (although the tracking database does get updated).
I am willing to try upgrading cforms as you suggest… But I don't want to upgrade WP from 2.1.3 (it's a long story but I am using a theme that isn't compatible with later WP versions… And I am doing a total rebuild of this site… I just need to keep the current one limping along until the new one is ready.)
So… What version of cform is most likely to work with SMTP enabled and also be compatible with WP 2.1.3? 
Thanks again, -Doug
|
|
|
Member | SalemDesign posts 7 10:10 pm June 29, 2009
| |
|
|
Hello Oliver,
As we discussed in our direct email exchanges, it seems we now have the SMTP email mechanism working.
Not exactly sure how we did it but I very much appreciate your help in getting it figured out. 
Thanks!!
–Doug
|
|