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
All cforms data has been erased!
May 16, 2007
7:21 pm
Rob
Guest
I installed and activated the plugin but when I go to the cform tab on the admin menu I get this error:

All cforms data has been erased!

Please go to your Plugins tab and either disable the plugin, or toggle its status (disable/enable) to revive cforms!

 
Any ideas What went wrong?
 
cform 4.5 (downloaded from deliciousdays)
WP 2.2 (and tryied it on 2.1.3)
PHP 5
Windows 2000 Server 
 
BTW – Yes, I tried to disable/enable but I got the same result. I also tried it with all other plugins disabled. Same result. 
May 16, 2007
7:56 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

It looks like – for some reason – that the plugin can't set & save it's basic/default settings to the WP options database.

The reason you see this message is due to the form count being 0, whereas when activating the plugin it should be set to 1 (for the default form).

Can you access yor WP tables directly? You could check if any cforms_* entries exist in your wp_options table…which I doubt, just based on what you're seeing.

Unfortunately, I have not a clue as to why your implementation of WP is not letting cforms write to its tables… 

May 16, 2007
8:08 pm
Rob
Guest

Nope. No cform_ entries.

May 16, 2007
8:37 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

That's what I figured. So we're still at square one:

It looks like – for some reason – that the plugin can't set & save it's basic/default settings to the WP options database. Why?

Does it work with other plugins?

Do you have a special wp_config setup?

Anything else that could interfere with a plugin writing to your WP DB?

 

May 16, 2007
9:14 pm
Rob
Guest

I don't know too much about MySQL but I don't think there's anything special there.

Other plugins work OK. (Akisme, Event Calendar, Math Comment Spam Protection, WP-dTree, WP-Scriptaculous and wpPHPMailer)

 No special wp-config

<?php
// ** MySQL settings ** //
define('DB_NAME', 'wordpress');    // The name of the database
define('DB_USER', '****');     // Your MySQL username
define('DB_PASSWORD', '****'); // …and password
define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!

// Change this to localize WordPress.  A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', 'us');

/* That's all, stop editing! Happy blogging. */

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>

I can't think of anything that would stop it from writting to the DB (especially since WP writes to it fine). 

May 16, 2007
9:25 pm
Rob
Guest

OK, I just logged on to WP admin on the server itself and it worked fine so it must be something in our firewall (maybe) but anyways, it works and I'm narrowing down the problems.

Thanks for you quick responses,

Rob 

May 17, 2007
4:23 am
Rob
Guest

OK, I got it all installed and the admin is working.

I put a form on a oage but when I submit it i get '405 Method not allowed'

I'm pretty sire this is a problem with a application mapping in IIS but what do i need to add to IIS?

I have .php allow all verbs. Not sure what else it could be.

Thanks for any help,

Rob 

http://www.northjeffco.org/wordpress/?page_id=38&nbsp;

May 17, 2007
8:09 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Rob,

Sorry I can't be of much help, but neither have I any experience with IIS nor have I ever run into issues with web servers complaining about cforms.

If you've turned on DB Tracking and use attachments, check writing permissions on the upload directory.

Also, quickly google'ing I found this link, excerpt:

Cause
The file type is not registered in the IIS script map settings (e.g. .html or .htm). IIS 5.1 only allows HTTP requests of type to GET to unmapped files. HTTP requests of type POST, HEAD, and all others are responded to with a 405 resource not allowed error.
As a security note, you should always remove unused script mappings. This is the default behavior of IIS 6, which will only serve named extensions and refuse all others.

Resolution
Add a script map for the extension. A script map associates a particular file type with a given script module. The web server runs the module on the given file and sends the output to the browser, instead of sending the file directly to the browser.

  1. Go to "Control Panel"-"Administrative Tools"-"Internet Information Services".
  2. Expand the tree to "COMPUTERNAME"-"Web Sites"-"Default Web Site".
  3. Right-click on "Default Web Site" and select "Properties". (Alternately, select "Default Web Site" and press Alt+Enter.)
  4. Select the "Home Directory" tab.
  5. Click the "Configuration" button.
  6. From the "Mappings" tab, select the "Add" button.
  7. Click the "Browse…" button, choose "Dynamic Link Libraries *.dll" from the "Files of Type" dropdown, and select c:\\WINDOWS\\System32\\inetsrv\\asp.dll.
  8. Type ".html" (without quotes) in the "Extension" box.
  9. Select the "Limit to:" radio button, and type in "GET, POST" (without quotes) in the box next to it.
  10. Click the "OK" button and close all the dialogs. (If the "OK" button is greyed out, then make sure all the entries are correct and try clicking in the file name box.)

See the screen shot below. You must adjust the above instructions to your particular OS, web site configuration, and file type. You can associate the file type with a different script engine besides asp.dll, which is the ASP 3.0 script engine. There is no need to give IWAM_COMPUTERNAME permission to the file, only IUSR_COMPUTERNAME needs NTFS read and execute permission.

 

May 17, 2007
8:24 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

There is another PHP error on your page:

PHP Notice: Undefined variable: HTTP_SERVER_VARS in C:\\Inetpub\\development\\wordpress\\wp-content\\plugins\\wp-dtree\\dtree.php on line 38

May or may not have to do with the above. 

May 17, 2007
3:55 pm
Rob
Guest

I turned on tracking but when I go to to the tracking tab I found this:

No data available at this time.

I guess it's not getting far enough to send anything to the tables? 

 

I found that google link but it didn't help.

I removed the plugin wp-tree that was giving the error.

 

May 17, 2007
6:22 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

My guess is, that your server has an issue with the form POST method, but I have no clue how to resolve it.

Any IIS specialists here?

Have you tried other contact form  plugins?

 

May 19, 2007
2:20 am
rob
Guest

Finially figured it out!

My permalinks were set to something like this:

http://www.mysite.com/?page_id=38

It needs to be:

http://www.mysite.com/index.php/?page_id=38

IIS needs to see the .php in there somewhere so it knows how to handle the request.

 

May 19, 2007
7:55 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Aaaaah, good to know! Thanks for the update and I'm glad it's working now!

June 18, 2007
4:35 pm
John
Guest

I am on a linuix server and I get the same error message. 

What would I need to check?

Thanks in advance.

Let me know if you need any more info from me.

 

 

June 21, 2007
7:53 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

what's the url? what web server are you running?

June 23, 2007
8:59 pm
John
Guest

The website url is http://josefsorett.com/

 It's running linux

June 23, 2007
9:21 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Looked at your site, but can neither see the form, nor an error.

June 25, 2007
2:09 am
John
Guest

That's exactly the point.

 I activated the plug-in and I only get the following :

 

All cforms data has been erased!

Please go to your Plugins tab and either disable the plugin, or toggle its status (disable/enable) to revive cforms!

 

 I have toggled status several times and 

 

I also installed the new version 5.0 and still nada… 

June 25, 2007
7:57 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

The only reason for why this appears is non existing form count setting (in wp_options: cforms_formcount).

During activation and if no cforms data is available, the plugin starts from scratch and creates a first set of data (with default form), including the above setting.

  1. have you had cforms installed and working earlier?
  2. can you access your wp_options  (via DB admin tools) table in your WP installation to see if any 'cforms_…' option has been set ?
  3. is there anything special about your WP/server that would not allow a plugin to write to wp_options?
June 25, 2007
6:06 pm
John
Guest

1. This is the first time I have run cforms, it has never worked.  Is there a setting I need to set manually?

 2. I didn't find any fields within the wp_options table. Let me know if there is a specifc area that you want me to check.

 I just see the following:

option_id bigint(20) No     
blog_id int(11) No   
option_name varchar(64) No     
option_can_override enum('Y', 'N') No   
option_type int(11) No   
option_value longtext No     
option_width int(11) No  20   
option_height int(11) No   
option_description tinytext No     
option_admin_level int(11) No   
autoload enum('yes', 'no') No  yes 

 3. Not that I know of, what should I check.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
28 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: 3739

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5339

Posts: 18706

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

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

Administrators: Oliver (6400), Nicky (3)