cformsII Support Forum
Current User: Guest Login Register
Please consider registering

Search Forums:


 






CFORMS menu not appearing on dashboard

Add a New Topic Reply to Post
Post
Guest

nes49

11:58 pm November 30, 2008

  • URL to the FORM: N/A
  • The browser used: Firefox 3, IE 7
  • cforms version: 9.3
  • Your Wordpress version: 2.6.5

[desc]:

After installing and activating cforms, I can't find the panel to configure a form.

I found the thread -

http://www.deliciousdays.com/cforms-forum/troubleshooting/cforms-not-apearing-w-dashboard-tabs/page-2/

That conversation has gone on for 10 months over various cforms versions, I've tried some of the workarounds without success, and I hope you don't mind that I've started a fresh thread.

In particular, I tried putting an "echo test;" as the first line of
cforms_init()" [comment #29] and didn't see anything appear.

I also saw the note about abspath.php in the FAQ <http://www.deliciousdays.com/cforms-forum/troubleshooting/v9-upgrade-must-read-abspathphp-issue/page-1>. I tried recreating that manually, but it didn't help — and I now realize if things were working at all, I should have seen an error message.

The new information here is that this is related to the fact that I'm using the current WP feature to move the wp-content folder out from under the main WordPress directory. The structure I'd like to have is:

documentroot/wp-content/plugins
documentroot/wp-content/themes
documentroot/wp/ – WordPress core files.

I've tried setting the abspath to the /wp/ directory and making a symbolic link from wp/wp-content to the actual documentroot/wp-content/ directory, but that didn't help.

[I was logged in as admin, all other plugins were deactivated, I'm not on GoDaddy, etc.]

However, when I removed the WP_CONTENT_DIR and WP_CONTENT_URL definitions in wp-config.php and moved the wp-content directory back to it's "usual" location as a subdirectory of the main WordPress directory, Voila! the CFORMS II menu appears.

I tried wading through the various places the directory might have been defined/used, but I'm wondering if you've got suggestions here. [This is the second plugin I've bumped into with this problem -- 2 out of 6. I do understand that it can be hard to ferret out all the places that would be affected by a change like modifying a default directory structure.]

Thanks very much for what appears to be an excellent plugin.

Admin

Oliver

Munich, Germany

7:42 am December 1, 2008

posts 6002

With your custom directory structure in place, you still see the cforms plugin on the WP plugins page, correct?

And can activate it without an error?

If so, can you try and disable and reactivate?

Also, did you set PLUGINDIR  or WP_PLUGIN_URL to anything?

Are you using some other admin (UI) plugin tool that may prevent cforms from showing up?

Guest

nes49

4:43 pm December 1, 2008

With your custom directory structure in place, you still see the cforms plugin on the WP plugins page, correct?

Yes

And can activate it without an error?

Yes. No errors on the page. Nothing in the server's error log. If there's somewhere else to look or another way to debug, please let me know.

If so, can you try and disable and reactivate?

I did that multiple times.

Also, did you set PLUGINDIR  or WP_PLUGIN_URL to anything?

No. I wasn't aware that those were options. If I should try that, let me know.

Are you using some other admin (UI) plugin tool that may prevent cforms from showing up?

No. And the problem persists with all other plugins deactivated.

Admin

Oliver

Munich, Germany

9:51 pm December 1, 2008

posts 6002

Also, did you set PLUGINDIR  or WP_PLUGIN_URL to anything?
>> No. I wasn't aware that those were options. If I should try that, let me know.

PLUGINDIR  or WP_PLUGIN_URL are WP defines, and are usually set as part of your custom direcory settings.

Do you have SQL access to the wp_options table? If so, check for a cforms_settings entry. Is it there?

What's your site/URL?

Guest

nes49

5:23 am December 2, 2008

Yes, there's a cforms_settings in the wp_options table. But that's with the setup that's working, so that's expected, right?

Give me a day or so to set up another system that shows the problem and I'll send you the (more interesting) link to that.

Thanks for your help with this!

Guest

nes49

1:16 am December 4, 2008

Okay. I've got a brand new install set up.

http://wp0806.sgtst.com/ (though it's not particularly interesting since I can't configure cforms … :-)


The wp-config.php has the lines -

define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST'].'/wp');
define('WP_HOME', 'http://'.$_SERVER['HTTP_HOST']);
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content' );
define( 'WP_CONTENT_URL', 'http://'.$_SERVER['HTTP_HOST'].'/wp-content');
define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins' );
define( 'PLUGINDIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins' );
define( 'WP_PLUGIN_URL', 'http://'.$_SERVER['HTTP_HOST'].'/wp-content/plugins');
cforms is the only plugin activated.
I can activate cforms. The only message is "Plugin activated".
BUT … The CFORMS link does not appear on the main menu.
The file abspath.php is not created in the cforms directory. There are no cforms entries in the wp_options table.
The "real" site, http://goucher-recipes.info has the same directory structure and a similar wp-config.php. I got cforms working by
1. Moving the wp-content directory to a subdirectory of wp
2. Changing wp-config.php to correspond
3. Activating cforms
4. Deactivating
5. Moving things back the way I wanted them, and updating wp-config.php
6. Reactivating cforms.
So now I can create and use a form — though from the look of
I'm guessing there's still a problem finding the default css
[Sorry to include two problems here -- I'll probably be investigating the CSS issue next, but let me know if there's some debugging I can do on the simpler installation.]
Guest

nes49

5:28 am December 4, 2008

Here's a workaround for the css problem:

$ cd wp

$ ln -s ../wp-content wp-content

It also seems to have resolved problems with the admin screen – turning on additional functionality.


Admin

Oliver

Munich, Germany

7:09 am December 4, 2008

posts 6002

Thanks for the update. Would it be possible to have temp. access to your new install, perhaps I can see what's causing the activation issue.

Send me an email if you're ok with that.

Guest

nes49

7:50 pm December 14, 2008

[Sorry - 2 more questions here; both may be linked to the "nonstandard" directory setup.]

After checking my test system you said:

very odd wp 2.6.5 / register_activation_hook behaviour.

the reason is clear why cforms couldn't startup properly: register_activation_hook  never triggered the cforms init.

I suspect it's a 2.6.5 bug.

running the activation routine "manually" set all cforms settings and it works.
Q#1: I tried setting this up again, but realize I didn't understand what you meant by "running the activation routine 'manually'". Could you elaborate?
And after upgrading the real site to WP 2.7 and the latest version of cforms, I'm still having trouble with the location of the CSS file (at least):
Page source:
<!-- Start Of Script Generated By cforms v9.3 [Oliver Seidel | http://www.deliciousdays.com --><link rel="stylesheet" type="text/css" href="http://mysite/wp/wp-content/plugins/cforms/styling/cforms.css" /><script type="text/javascript" src="http://mysite/wp/wp-content/plugins/cforms/js/cforms.js"></script>

Creating the symbolic link:

$ ln -s document_root/wp-content/plugins/cforms document_root/wp/wp-content/plugins/cforms

apparently fixes things.

Q#2: I'm wondering where I've missed a "define" statement that would let cforms know that the wp-content directory (and its subdirectory plugins) is not itself a subdirectory of the directory where the core files live.  [I spent some time learning more than I ever needed about the WordPress development environment, but frankly got lost in the code.]
NOTE: I've got workarounds for both of these, but thought you'd want the notes for future changes to the plugin.
Thanks much!
Admin

Oliver

Munich, Germany

8:13 pm December 14, 2008

posts 6002

The problem was, as I pointed out, related to the fact the WP 2.7 did not trigger its own hook to init cforms.

So this seems to be indeed a WP issue/probably caused by your non default directory setup.

Before tinkering with any other settings, try first to 'manually' init cforms:

  1. activate cforms
  2. edit cforms.php
    1. add cforms_activate();on  line 54 (after function cforms_activate() {...})
  3. upload / ftp modified file
  4. reload any admin page
  5. check for cforms menu item
    1. if present: undo above code change and re-upload
    2. if not: some other error needs trouble-shooting
Guest

nes49

10:45 pm December 18, 2008

Thanks!

I've run into enough other problems with other plugins that I've given up trying to have a "nontraditional" directory setup. If I get back to this, I'll let you know -- and if you want a test environment again, I can set that up.

Admin

Oliver

Munich, Germany

11:15 pm December 18, 2008

posts 6002

sure. thanks!

No Tags
Reply to Post


Reply to Topic:
CFORMS menu not appearing on dashboard
PLEASE READ THE FAQs FIRST! THANK YOU.

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
lol offended sad ??? yell cry frown kiss surprised wink innocent smile oops cool
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
3 + 11
   




About the delicious:days forum

Currently Online:

102 Guests

Membership:

There are 896 Members

There have been 2250 Guests

There is 1 Admin

There are 3 Moderators




Takashi's Noodles

Takashi's Noodles
- Harris Salat

Low & Slow: Mastering the Art of Barbecue in Five Easy Lessons

Low & Slow: Mastering the Art of Barb...
- Colleen Rush

Gennaro's Italian Home Cooking: Quick and Easy Meals to Feed Family and Friends

Gennaro's Italian Home Cooking: Quick...
- Gennaro Contaldo

The Sweet Life in Paris: Delicious Adventures in the World's Most Glorious - and Perplexing - City

The Sweet Life in Paris: Delicious Ad...
- David Lebovitz

Bittersweet: Lessons from My Mother's Kitchen

Bittersweet: Lessons from My Mother's...
- Matt McAllester

The Food & Cooking of Russia: Discover the rich and varied character of Russian cuising, in 60 authentic recipes and 300 glorious photographs (The Food and Cooking of)

The Food & Cooking of Russia: Discove...
- Elena Makhonko

'wichcraft: Craft a sandwich into a meal--and a meal into a sandwich

'wichcraft: Craft a sandwich into a m...
- Tom Colicchio

West: The Cookbook

West: The Cookbook
- Jim Tobler

Everyday Novelli

Everyday Novelli
- Jean-Christophe Novelli

The Oxford Companion to American Food and Drink (Oxford Companion To...)

The Oxford Companion to American Food...
- Andrew F. Smith

Real Cajun: Rustic Home Cooking from Donald Link's Louisiana

Real Cajun: Rustic Home Cooking from ...
- Donald Link

The Meat Bible

The Meat Bible
- David Lobel

Field Days: A Year of Farming, Eating, and Drinking Wine in California

Field Days: A Year of Farming, Eating...
- Jonah Raskin

Hummingbird Bakery Cookbook

Hummingbird Bakery Cookbook
- Tarek Malouf

Gale Gand's Brunch!: 100 Fantastic Recipes for the Weekend's Best Meal

Gale Gand's Brunch!: 100 Fantastic Re...
- Gale Gand