[SOLVED] Contact Form Help

cpcnw
Posts: 6
Joined: Fri Jan 29, 2016 10:51 am

[SOLVED] Contact Form Help

Post by cpcnw »

Hi All

New to WondeerCMS [signed up to forum ages ago but never got round to using!]

I have installed the contact form plugin and can see that in contact_form.php there are appropriate 'Thank-You' type messages [Line 199] however I never see these and also the email never arrives?

Apart from checking the correct email address is specified - how can I debug the non arrival of email?

Tia!
HWU
Posts: 16
Joined: Tue Dec 26, 2017 5:46 pm

Re: Contact Form Help

Post by HWU »

Hello, nice to read that you give a chance to WonderCMS!
...there are appropriate 'Thank-You' type messages [Line 199] however I never see these..
Same for me. :shock:

...and also the email never arrives...
Works fine. :D

Demo mailform (the Plugin): http://www.webpin.ch/wonder/lightbox
Alternative (from Turboblack): http://www.webpin.ch/wonder5/

Both versions are in use and if you fill out the form I will (I hope that I will...) receive the message. :geek:

Try it out...
cpcnw
Posts: 6
Joined: Fri Jan 29, 2016 10:51 am

Re: Contact Form Help

Post by cpcnw »

At least you seem to have it working - even your thank-you page!

I have filled in

contact_form.php line 40] $cfg['url'] = "thanks.html" and even that wont work for me :|

What can I be doing wrong? Starting off with the permissions on contact_form.php - is 644 correct to execute the script?
cpcnw
Posts: 6
Joined: Fri Jan 29, 2016 10:51 am

Re: Contact Form Help

Post by cpcnw »

Here is my entry in theme.php [<-material]

Code: Select all

 <div class="container padding40">
  <div class="contentBackground">
   <?=wCMS::page('content')?>
	<?php if (wCMS::$currentPage == 'contact'): ?>
	<?php
		global $contact_form_email;
		$contact_form_email = "office@domain.co.uk";
    ?>
    <div class="container marginTop20">
      <div class="col-xs-12 col-md-6 col-md-offset-3">
        <div id="contactform" class="grayFont" style="height: 265px;">
         		  	<?php contact_form(); ?>
        </div>
      </div>
    </div>
  <?php endif ?> 
   </div>
 </div>
 
The capture works and I can fill in the form but on submit very quickly I go back to index.php and no confirmation message or thanks page - and more importantly no email turns up :|
cpcnw
Posts: 6
Joined: Fri Jan 29, 2016 10:51 am

Re: Contact Form Help

Post by cpcnw »

Am totally at a loss - I have no errors in my logs, I have tried various permissions on files and even tried changing php versions!

Ripping my hair out with this :|
User avatar
turboblack
Support/Developer
Posts: 173
Joined: Fri Sep 19, 2014 1:53 pm

Re: Contact Form Help

Post by turboblack »

http://torba.tk/turboblack-with-feedback

try this script, it works both separately and inside the template (any!) if it does not work then you just have a hosting that does not support just such a function that most likely it is. or try the script on another hosting
http://t0rba.tk/ my Russian-language research WonderCMS engine 8-) & also http://woua.pp.ua/ in Ukrainian
cpcnw
Posts: 6
Joined: Fri Jan 29, 2016 10:51 am

Re: Contact Form Help

Post by cpcnw »

Thanks - am beginning to think its a host issue!
HWU
Posts: 16
Joined: Tue Dec 26, 2017 5:46 pm

Re: Contact Form Help

Post by HWU »

Sorry - my english... :mrgreen:

That means, you made it like in this description:

https://github.com/robiso/wondercms/issues/54

What I can say (how it works with the plugin on my playground):
  • I can use the form with integration in the theme.
  • I can NOT use the form on a specific page.
  • I have NOT the posibility to show a confirmation page (on my playground it is just a target page without real formcheck!).
  • I can send mails and I receive mails.
But: Who am I...? Nobody...! :roll:

Well, I'm not a programmer - but I hope, that someone of the community can help to find the right way of implementation.

Cheers, Heinz. :idea:
HWU
Posts: 16
Joined: Tue Dec 26, 2017 5:46 pm

Re: Contact Form Help

Post by HWU »

I agree, the solution from Turboblack works absolutely nice: http://www.webpin.ch/wonder5/
cpcnw
Posts: 6
Joined: Fri Jan 29, 2016 10:51 am

Re: Contact Form Help

Post by cpcnw »

Hi - thanks for the replies - yes, I made it as instructed, double triple and quadruple checked for mistakes etc I even removed and re-installed the plugin all to no avail :|

It turned up in right place on Contact page, showed capture and I could fill in form.

Redirect did not work. No error messages in log file. No email arrived.

In end I used the hosts cgi form and used the same method [if page=contact] to display it [I put actual form in theme.php rather than a separate file. I styled it in theme css]

It worked so that's ok for now :)
Post Reply