I've got a few drupal sites up and running, all of them working just fine. But currently I'm working on one locally and no matter what I do I cannot enable the post settings so that previewing comments is optional, it's driving me nuts! On admin/content/node-settings I've got Preview Post set to optional. I've tried rebuilding permissions, checking to make sure nothing is being hidden in the theme, switching themes just to make sure, checking "Required", saving the changes, then checking "Optional" and saving the changes again. Nothing.

I've tried looking in the database to figure it out but I can't find where this is. Anyone else ever run into this? On all my sites I always make previewing posts optional, and have even hid it in the past through css, but on this one I just can't get it to cooperate.

After previewing a comment, the post comment button does appear, so it seems that the change in settings just won't take.

Any help would be much appreciated!

Comments

gpk’s picture

Have a look here http://drupal.org/node/224447.

Could be a module incorrectly modifying the comment submission form incorrectly and rendering part of the form data structure invalid. Might be because either your version of 5.x or the module in question is not the latest (i.e. a sort of incompatibility).

gpk
----
www.alexoria.co.uk

ghumpley’s picture

Thanks for the help, but I still can't get the button to show! I disabled all the modules, switched themes, upgraded my drupal version and nothing. I'm going to try a fresh install and see what happens. Hopefully I'll get this figured out!

ghumpley’s picture

I just did a fresh install of 5.2, which is what the site was originally running. I had no contributed modules at all in it. I imported a backup of the 5.2 database, checked the content, and still no post button even though preview post is optional. So I'm guessing at this point that something is screwed up in my database.

Does anyone know where this setting lies in the database or how to go about figuring out what is wrong with the DB?

ghumpley’s picture

Don't mind me. I didn't realize there were separate "Preview Post" and "Preview Comment" options. So if anyone else is a bonehead like me, check "Post Settings" and the settings tab under Comments.

Damn, and I had looked in the comments settings, too, and must've just went right by it. But inspecting the DB is what brought me to it. Kind of a hard way to get there, though! I'm gonna go have a beer or 9 so I can forget this whole sordid affair.

Thanks for the help though!

gpk’s picture

Sorry not to have been more help in the event, but enjoy those beers!

gpk
----
www.alexoria.co.uk

Crystabel’s picture

I'm sorry you had this problem, but glad you posted about it because I was having the same issue!
I'm running a version 6, so it was a little different for me to fix it, but following your directions led me to the answer.
In case someone is having this problem and those two places don't fix it, I had to go under "content type" and next to the content (for me it was blogs) click "edit" and in there the setting was still marked required instead of optional.