cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Success message not showing
January 10, 2011
11:44 pm
Amy
Guest

Paul said:

The form has gone on your original form page but the page still said 'hyper cached' so even though you excluded it, it appears to have been stored as a cache copy and may first need to be removed.

Also you might want to check if you have turned on PHP Safe Mode.

Finally, I noticed that some plugin or your web developer mangled the cforms header output (in the html <head> tag), which may or may not have to do with this.

I turned off AJAX manually (unchecked the box) and no user messages appear at all which I presume is what is supposed to happen?

 Correct, a success msg should always be shown. I tested all kinds of scenarios and I could not replicate your error, which to me looks like something on your server, plugin or setting messes with the output or the $_POST variable that contains the form data.

The form – Ajax turned on or off- should behave the exact same, except in in the latter case it'll reload the entire page. 

However when I removed the file upload fields and turned ajax off, the form did not send i.e I did not receive any submission in my email inbox. Put back the file upload fields, and form sends successfully again, but no success message, as before.

Which actually supports my thinking that it's either your server or some other plugin.

 

Paul.


Hi Paul,
 

Per our previous conversations above, recently had a client tell me she couldn't submit the form http://www.treespacestudio.com/home/yourpanorama-i…..field_29  and its hanging at 'one moment please'. After deactivating any possible plugin cuplrits (hypercache and wp minify) nothing changed so I don't think those plugins are affecting the form.

 

I noticed a new thing-when I am logged in within wordpress, I am able to receive forms (through email) that I sent from myself.  With AJAX turned off, it doesn't tell me if I forget to fill in a field and submits the form anyway with no user messages at all.

 

When I LOG OUT of wordpress, this is when it gets really perplexing, and probably what my client was going through-NO FORM is received and therefore I believe, sent. It hangs at 'one moment please'. Again, with Ajax turned off no form is sent or received with the only difference being that ajax reloads the whole page and clears the form and no user messages appear even if there are required fields missing.

 

I am really stumped. I don't know what else to do. I notice one of your recommendations was about php safe mode. Should it be on or off? What could my server be doing that is affecting the form? My permissions for the cforms folder is set at 0755. What else can I check? Please help!!

 

Amy

January 11, 2011
9:26 am
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

Sometimes if helps to turn off PHP safe mode.

This seems to be a bigger issue and would probably require a full time developer to better trouble shoot.

Again here is what I would do:

  • start with a "shadow" WP install
  • tun on the default theme
  • turn off *all* other plugins
  • make sure that no .htaccess gets in the way and no caching mechanism kicks in 
    --> HTML page must not include any signs of "hyper cache" – which it still does btw.
  • make sure that PHP is setup correctly (PHP Mem & PHP safe mode)
  • start with a default form (no upload fields)
  • then add an upload field etc.

 

other wise there are too many moving elements and trouble shooting could take forever.

 

Paul.

* Paul Silter
January 16, 2011
4:02 am
Guest

Hello There,

 

I have the same problem :( Spend hours to get rid of it but i didnt found a solution.

 

Im using 5 different forms on my site, 4 of them are workin fine and i get the SUCCESS MESSAGE after i clicked the send button.

Only the one with an UPLOAD BOX field didnt show the message.

 

Im not sure what i have done wrong.

If i use the from and upload an image (jpg) the image is attached to the email i get, but never been uploaded to my server.

Does that mean that the form was not finished with the proccess or was not wroking correct and thats why i get no message?

 

I hope someone out there can help to fix that problem.

 

And btw im from germany sorry for my bad english.

 

Shorty

 

I FORGOT : I have set the background of the success message to green. And after the form has been send i see the success message frame including the green background only the succsses message is missed at all.

January 20, 2011
7:10 pm
Amy
Guest

Paul said:

Sometimes if helps to turn off PHP safe mode.

This seems to be a bigger issue and would probably require a full time developer to better trouble shoot.

Again here is what I would do:

  • start with a "shadow" WP install
  • tun on the default theme
  • turn off *all* other plugins
  • make sure that no .htaccess gets in the way and no caching mechanism kicks in
    –> HTML page must not include any signs of "hyper cache" – which it still does btw.
  • make sure that PHP is setup correctly (PHP Mem & PHP safe mode)
  • start with a default form (no upload fields)
  • then add an upload field etc.

 

other wise there are too many moving elements and trouble shooting could take forever.

 

Paul.


Hi Paul,
 

Are you able to (of if you know someone) who can help me troubleshoot this for a fee? I just don't have time to figure out what is going on. I thought by using cforms I wouldn't need to spend time and money building a custom form. Do let me know if you are able to help or if this is something any developer/web tech person can do? Thanks so much!

-Amy

January 27, 2011
2:01 pm
Guest

I also have this problem and know what is causing it, but wonder if it is possible to make it work differently.

 

I have custom error messages displayed next to the form fields, so I don't want all of the error messages to appear above the form. But I have to check it in to show the success message at the end. Is it possible to display the success message, but not the errors?

January 27, 2011
10:52 pm
security_man
Guest

count me as one more with the same (or similar issue)

three forms on the site, two work, one doesnt.  The one that doesnt is dynamically created on the page so i assume that is what is wrong, but i am not sure as i do not get any response what so ever when the form is submitted.  it is in the tracker though and gives error messages if there are any.  But when you hit submit, the form refreshes and no info what so ever.

January 28, 2011
8:23 am
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

which one doesn't?

 

Paul.

* Paul Silter
January 28, 2011
8:05 pm
security_man
Guest

Paul said:

which one doesn't?

 

Paul.

i assume you are asking for a url so here ya go:

 

http://www.your-web-guys.com/get-a-quote

 

i have a print_r on $_POST below the form if that helps.  I do send info via post to the form so i am not sure if that is mucking things up or not.  Like i said in my earlier post, the form seems to be working fine, it gives errors, is in the tracking, but no response and no emails going through


February 3, 2011
5:31 pm
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

Hi!

Sorry for the delay, but I'm swamped right now and can't spend more time on troubleshooting atm – may have some time next week.

On a first glimpse:

It appears that you're using your 1st form as the basis (reference) for this dynamic form, you may want to try using a new basic one and start with simple form fields and go from there.

 

Paul.

* Paul Silter
March 18, 2011
4:45 pm
Guest

I found a solution!  I've been having the same problem as everyone else in this post.  Here's how I solved it:

  1. Go to Form Settings and select your form from the drop down (if you have more than one)
  2. Click on the Admin Email Message Options panel.
  3. Uncheck "Turn off admin email" and save the form.
  4. Recheck "Turn off admin email" and save the form again.

Once I did that, everything was working fine again.  The form emails fine now and the success messages are back.  I'm even using the AJAX setting.  We'll see if the settings hold.  The application seems to be very sensitive to either changes with it's own settings or other plugins.

 

Here's my setup:  WP v3.1; cform v11.7.3; GoDaddy linux hosting account

March 21, 2011
3:21 am
Guest

Hey Paul,

I have tried serveral things to get rid of this succes message problem but it looks like nothing works at all.

 

First off ALL MY FORMS ARE WORKIN FINE including the upload form. The only problem i have is the SUCCES MESSAGE of the Form where i use the upload box.

 

I have installed wordpress on a new domain without using any other plugin.

I have setted up a Basic form.

I have tried the form – all is workin fine. I SEE THE SUCCESS MESSAGE.

Than i have added the upload field

After that i have testet the form again and the success message was gone.

I have replaced the upload field with a regular text field.

Tested the form again and the success message is shown.

 

I hope some of you guys have the time to find a solution for that.

 

I love the cforms plugin and i use it on a couple of sites. But everywhere i use the upload field i run into the same problem.

 

King regards 

 

Sascha 

March 21, 2011
7:22 am
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

No sure I get the problem: you're saying that as soon as you add an upload field, no success message is shown anymore?

Can you please provide a URL as an example?

Have you tried manually turning off Ajax for that form?

 

Paul.

* Paul Silter
March 21, 2011
2:28 pm
him
Guest

Hi,

 

I am another in this long list of people having problem with "success message" not showing up.

 

Basically, I am using 3 forms on this site, 2 of them are pretty short ones and have ajax enabled. These 2 work fine. However, the 3rd form, which is also a fairly long form initially did not work at all. I turned OFF ajax and it started working. The form results goes to my email but then, it just shows an orange bar (custom styling) at the bottom of the form with no text message. the code shown in Firebug is-

 

<div class="success2 success  cf_info " id="usermessage2b"></div>

 

I have tried:

 

- turning off and on – ADMIN EMAIL

- path to lib ajax is relative – checked and confirmed.

 

Any help would be greatly appreciated as it is an important form.

 

Here is the link: http://bit.ly/f4qbRv

 

him

March 23, 2011
6:35 am
Guest

Hey Paul,

 

I figured out that it must be a problem with the theme im using (LOOKS LIKE A LOT OF THEMES HAVE THIS PROBLEM) . But i cant find the bug. 

Can i pm you? My project is not finished at all and i dont wanna post a link here.

 

What i have done.

 

1. I have tried the form with my theme using the cforms css. (JUST TO BE SURE THAT IT IS NOT AN ERROR IN MY CUSTOM CSS)

 

NOTHING – NO SUCCESS MESSAGE AT ALL JUST THE FRAME OF THE MESSAGE FIELD.

 

2. I have switched to the original TWENTY TEN theme of wordpress (Same installation). Tried both ORIGINAL CSS and CUSTOM CSS.

 

AND VOILA – MESSAGE IS SHOWN FINE!

 

Now the challange is finding the bug. 

 

Sascha

 

ps. 

@HIM – please try it on your installation too. 

 

1. Leave everything like it is at the moment JUST SWITCH from your custom theme to the default TWENTY TEN THEME of wordpress.

2. Try the form with the upload field

3. Tell us that it is workin fine ;) 

4. If possible find the bug ;) 

April 2, 2011
11:18 pm
Guest

Has anyone had the chance to test what i have written down in my last post ? 

Would be great if somenody can check that…

April 5, 2011
7:31 am
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

What's the URL?

 

Paul.

* Paul Silter
April 20, 2011
12:10 pm
him
Guest

@ Shorty05 – (sorry for the delay. was busy in another project)

 

Yups. I tried that but was unable to find the bug. My form does nOT use any upload filed either. Whats more – it does not give any error messages too! :(

 

Any luck with the solution you were trying?

May 2, 2011
12:18 pm
ade77
Guest

I was having the same problem with success messages not showing on a form which was manually created using insert_custom_cform()

 

It can be solved using the my-functions.php form. This is a better way to handle messages as you can change the message to fit the data submitted

 

function my_cforms_logic($cformsdata,$oldvalue,$setting)
{
    $formID = $cformsdata['id'];
 
    if ( $formID == '3' ) {
        if ( $setting == "successMessage" ){
            return 'Post updated' ;
        }
    }
}

May 12, 2011
1:22 am
ade77
Guest

Just to follow up. I was having some other problems and realised that the my_cforms_logic function did not have return $oldvalue at the very end.

 

function my_cforms_logic ($cformdata,$oldvalue,@setting){

 

//mycode…………..

 

return $oldvalue;

}

 

 This explains a number of strange bugs and people need to be aware that this must be at the end of the function or various strings will be lost

 

ps. i dont know for sure, but while viewing this site on a pc, an unusual popup block message appeared in firefox and then the apparantly well known Win 7 virus started running on my pc. Am writing this on a mac. There maybe something naughty hidden on this site.

July 11, 2011
11:15 am
André
Guest

hallo to everybody,

 

i have found the bug/solution concerning the success message problem.

 

this bug appears only if a form is used as WP-comment form.

then we do not have a form-specific success message but a global one made in the global settings. the cfoms code is errorneous there because it looks for a form-specific message where no one is, instead of using the global one.

 

SOLUTION:

 

in cforms.php change line 250 from:

 

            $usermessage_text = preg_replace ( '|\r\n|', '<br />', stripslashes($cformsSettings['form'.$no]['cforms_commentsuccess']) );

to:

 

            $usermessage_text = preg_replace ( '|\r\n|', '<br />', stripslashes($cformsSettings['global']['cforms_commentsuccess']) );

 

this is a core programming solution and therefore no good solution. it should be fixed by the author with the next update …. but when i read this forum i think this may still take a loooooong time.

 

the author should test the things he does/changes within the code afterwards :o)

 

andré

 

——————————————-

xitroMEDIA.com

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
26 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3744

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5345

Posts: 18714

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)