cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Frequently Asked Questions (FAQs)

Topic Locked
Post

Oliver - Admin

7:45 am - February 8, 2008

posts 3656

How can I change the FROM address to reflect the user submitting the form!?

  • Note, that the plugin doesn't "fake" FROM addresses for a reason. 
  • The user is submitting the form, but the actual sender is your web server.
  • Your web server now 'pretending' to be the user is likely to cause issues with paranoid mail servers resulting in denying acceptance for delivery.
  • Therefore cforms uses a REPLY-TO header to make up for 'usabilty', to which you can directly respond to.

Oliver - Admin

11:35 am - December 27, 2007

posts 3656

I have several forms, how can I deploy multiple themes (CSS)?

  • Simply decide for the 'base' cforms theme
  • And apply specific styles for the other forms you have deployed
    • Note: these specific styles are applied on top of the base styles of the chosen theme

Here are some examples for specific styles:

To change the fieldset background color for form #2:

#cforms2form fieldset {
background:green;
}

Or to change the input field size for form #3:

#cforms3form input,
#cforms3form textarea {
width: 500px;
padding:5px;
}

etc.

Oliver - Admin

9:01 pm - November 19, 2007

posts 3656

I've done everything right, but my form is not displayed on the blog?!

  • Check in code view if you can in fact see the proper cforms tag - check the HELP! page for what is expected
  • If you're using the PHP call to insert the form, double check the parameters
  • Check if the T-A-F (Tell a friend) feature is turned off

I can't find the cforms admin menu (tab) !

This may be due to...

  • conflict with another plugin
  • other admin UI managing plugins not considering cforms
  • admin rights not properly set during plugin activation
  • the web server is not delivering a properly defined $_SERVER array
  • It may either be a permissions problem (e.g. Role Manager!) or related to how your websever handles URI strings in _SERVER[]. see this post, too.

I can't see the TinyMCE button to add a form

  • In 99.9% it helps to
    • clear the browser cache
    • restart the browser
    • and then SHIFT+RELOAD the WP write page
  • In case you run any other TinyMCE altering plugin (e.g. advanced TinyMCE) try turning it off to see if this fixes it

Oliver - Admin

7:14 pm - November 5, 2007

posts 3656

"One momemt please..."
or CAPTCHA image is not shown
or cforms hangs after submission
or form hangs on "One moment please..."
or I run on IIS or my blog URI has a prefix

If the captcha reset feature & Ajax form submission is not working for you, you may have an issue with Javascript identifying the proper server paths. Here is what you can try:

  1. Go to the Javascript folder in your cforms plugin directory
  2. Check / Modifiy js/cforms.js
    1. v8.1 and up:
      v8.1 should auto guess the right sajax_uri setting, however if it doesn't feel free to enter the complete relative path to where your /cforms/lib_ajax.php file resides!
    2. PRIOR TO v8.1:
      try replacing this line:
      sajax_uri = '/';
      with (if your URI has a prefix):
      sajax_uri = '/prefix/';
      or more generically with e.g. :
      sajax_uri = document.location.pathname;
      with this (this worked mostly on IIS):
      sajax_uri = "/index.php/URL";

      with URL = your permalink to your contact page
      (e.g. uri = "/index.php/contact-us/";
      or uri = "/index.php/contact-us"; etc.)

      You may optionally even try (to keep it generic):
      sajax_uri = "/index.php"+document.location.pathname;

 I M P O R T A N T: you MUST flush your browser cache after changing cforms.js for it to pick up the new file, better yet, restart the browser.


CAPTCHA image is not shown II

  • Are you logged in? By default (can be overruled) cforms doesn't show CAPTCHA for authenticated users!
  • Anyone experiencing issues with the CAPTCHA image not showing, check for other plugins that reset the SESSION variable.
    • This can happen either directly in their native code or (as it happens in WP-Email v2.20) by including wp_config.php (and consequently wp_settings.php). wp_settings.php kills the current SESSION and thus any parameter stored, e.g. the captcha code.
  • Make sure you have turned on cookies in your browser.
  • Check with your providers PHP/web server installation and make sure that the GD Library with freetype is supported.

XAMPP: CAPTCHA image is not shown III or
Windows has encountered a problem dialog

Due to an apparently known issue, PHP throws you an exception error. Here is what you can try to resolve it:

Take a look at the code at the top of cforms-captcha.php file in the contactforms plugin directory, and change it from:

$im_bg = 0;

to:

$im_bg = 1;

Oliver - Admin

6:46 am - September 5, 2007

posts 3656

The form hangs after submit (SMTP Feature!)

Only in case you're using the SMTP feature!...

  • This requires a WP release coming with the phpmailer feature, check for class-phpmailer.php & class-smtp.php in wp-include/
  • Due to a known WP bug (even still in 2.2.2), make sure you create a copy of class-smtp.php and rename to class.smtp.php
  • Due to limitations on the phpmailer end, there is no support for SSL or TLS

General:

  • For better trouble shooting, get a copy of Firefox & Firebug, which will allow you to see at-runtime all communication going back and forth as well as error messages (Console view).
  • Submit form and record the error (click on Post / response)

Oliver - Admin

7:03 pm - August 30, 2007

posts 3656

Seeing an email error or not receiving an email?
or Form seems to work fine but I get an ERR message?

  • If you see this error, the form and thus plugin usually works fine to the point of sending the email.
  • Please double check your Form Admin / Email Options settings
    thoroughly and verify:
    1. Correct email address(es)
    2. Try alternative admin email addresses
    3. Do you receive any emails from W (e.g. passwords, comments notifications)?
    4. Check your PHP servers mail() function
    5. Can you check your mail servers log files?
  • The issue has very likely to do with either a local mail server problem, a malformed email address or a general issue with the PHP function mail();
    • if the latter is the case and your blog is using wp_mail(); you may want to try and enable cforms' SMTP/phpmailer support.
  • You may want to check with your hosting provider.

Everything looks fine, but I don't receive ANY emails?

You can...

  1. double and tripple check your cforms admin email settings (FROM: address etc.)
  2. check if your provider has limitations around PHP's mail() function
  3. try using cforms SMTP feature for email delivery (it may require your providers PHP server to support SSL!)
  4. look into your SPAM folders
  5. finally ask your provider. They own the mailer logfiles and should be able to quickly pin point the problem.

Oliver - Admin

7:00 pm - August 30, 2007

posts 3656

How do I upgrade to the latest version of cforms?

Here is what I usually recommend:

  • before upgrading, make backups of your DB and forms
  • deactivate the plugin and (re)move the cforms plugin dir from your WP plugins/ folder
  • upload the new cforms plugin folder /contactforms/
  • enable cforms

Just upgraded and my admin form mails don't show any form data?

  • Please double check the new settings for including the form data into the admin emails for both, the TEXT and HTML part:
    • "Include pre formatted form data table in …"

Oliver - Admin

6:59 pm - August 30, 2007

posts 3656

Seeing a 'All cforms data has been erased!' error ?!

  • pre v9 versions have an issue with WP's  2multi plugin activation" feature. instead of selecting the checkbox for activation click on the actual activation link for cforms.

All I get is blank page after activation?!
I get a WHITE SCREEN after activating cforms or another plugin?

  • In case you're running the "Installer" plugin, turn it off then reactivate cforms. After successful activation you can turn Installer back on.
  • Also, you may want to check the file cforms.php for an extra line break at the end of the file, it should not be there and simply end with ?>
  • Please check your PHP server settings (php.ini) for the memory setting, it may be too low. Try (or ask you hosting co.) to bumb it up to at least 16-32M.
  • If you still run on PHP4, try PHP5
  • Check if your have PHP safe mode on (and try turning it off)

I get a 404 or 403 Error or
I am being redirected to the main page after SAVING THE SETTINGS?

  • This has very likely to do with your hosts security settings. You could try adding the below to your .htaccess file (e.g. the one in /wp-admin)
    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>
  • The plugin vbulletin has been known to cause issues and prevent cforms from saving/updating its settings on the main options page

Oliver - Admin

6:58 pm - August 30, 2007

posts 3656

Tracking: WordPress database error: …near ‘CURRENT_TIMESTAMP…

  • It seems that your MySQL server (version?) doesn’t like the “CURRENT_TIMESTAMP” default value. You can edit cforms-global-settings.php and remove this part:
    • ’default CURRENT_TIMESTAMP’ of the CREATE TABLE statement and it should work.

Tracking: no data is being tracked / shown on the tracking page

  • make sure the cforms tracking tables have been created in your SQL DB
    • $wpdb->cformssubmissions
    • $wpdb->cformsdata
    • (if not, see item above)
  • make sure you have proper access rights (administrator or RoleManager permission settings) - cforms supports a permission model

Tracking: Tracking page is not working / displayed

Some plugins unnecessarily include the prototype JS framework on ALL admin pages, which really doesn't make any sense and breaks other plugins: among these plugins: Audit-Trail, WP-o-Matic

Oliver - Admin

6:57 pm - August 30, 2007

posts 3656

In IE, the send button jumps right under the field set?!

  • This is due to the IE "margin bottom hover bug", either download the current and updated 3.5 (April,29th), or simply
  1. add a margin-top of 10px to .cform input.sendbutton
  2. add a margin-top of 10px to .cform .cformfieldsets
  3. and the same for * html .cformfieldsets

Oliver - Admin

6:56 pm - August 30, 2007

posts 3656

Language Issues: The email sent only shows ??? or other weird characters (release 3.4 and earlier)!

  • If your blog runs UTF-8 and you see funny characters, you may want to try replacing line ~#432 in cforms.php:
  • replace:
    • $value = mb_convert_encoding(utf8_decode($params ['field_' . $i]), get_option('blog_charset'));
  • with:
    • $value = $params ['field_' . $i];

Oliver - Admin

6:53 pm - August 30, 2007

posts 3656

Can I limit the number of characters entered in a Multi-line (textarea) field?

  • Yes you can, simply add a regular expression to the field label ensuring proper validation: e.g. (Multi-line tex field)
  • Your Message|max. # of 150 characters|^[\s\S]{1,170}$

Oliver - Admin

6:52 pm - August 30, 2007

posts 3656

Ajax based form submission causes an error/collides with another plugin that uses ajax?

  • Chances are that the other plugin also utilizes the sajax framework. The easiest way to quickly fix it, would be to rename the function sajax_handle_client_request() and the call to the function in cforms.php.

Oliver - Admin

6:51 pm - August 30, 2007

posts 3656

I get errors such as “Cannot redeclare function abc() (previously declared…”?!

  • That particular function (its name anyway) seems to already being used by another plugin
    • quick fix: rename the function in question and the call(s) to the function in the respective file(s) or
    • write a wrapper that checks for the existence of the function before initializing it (assuming that its namesake does the exact same thing!).

Oliver - Admin

6:50 pm - August 30, 2007

posts 3656

My browser shows a TinyMCE error (“realtinyMCE” is undefined) ?!

  • This might be a known Wordpress issue, check the WP support forums for more info and possible work-arounds & fixes until the next release of WP takes care of it.

Oliver - Admin

6:48 pm - August 30, 2007

posts 3656

Do I have to install the plugin under “../plugins/contactforms” ?

  • Yes. For the plugin to work correctly, please do so, alternatively you can modify the $plugindir variable in cforms.php to reflect your new directory.

Oliver - Admin

6:47 pm - August 30, 2007

posts 3656

The general layout of my form doesn’t look right!?

  • Please check and tweak your cforms theme (css stylesheet) for proper configuration. The default classes should provide reasonable formatting of the form & fields, but every WP theme / layout behaves a little different.
  • Also, check with your WP theme, sometimes CSS declarations made there supersede the ones in the cforms stylesheet: in that case add a !important; after the CSS attribute

There is no layout/styling (CSS) of the form, regardless of the theme I choose!

  • Please check your WP theme's header.php file and make sure it contains a wp_head(); declaration in the section, otherwise no stylesheet will be loaded.
  • Also, check your Global Settings -> Enabling cforms for specific pages in case you limited the cforms HEADER (CSS&Javascript!) to only show up on specific pages.
© Simple:Press Forum - Version 3.1.3 (Build 356)