Hello all,

Preview button has been disappeared from all the form for some reason.
I have even set "Preview is required" in the post settings, but then I haven't got any buttons in the form!

Why this has happened and how can I have the preview button back?

Comments

WoozyDuck’s picture

I don't even have this button in comments!
What has happened?

gpk’s picture

Can you see it in the HTML page source?

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

WoozyDuck’s picture

No I cannot!
I thought the same, thought would be something wrong with CSS positioning
but it doesn't exists in HTML as well!
No preview in nodes
no preview in comments as well
very strange!

gpk’s picture

So given that you have set Preview to "Required", does that mean that a node creation form has no submit button at all?

What modules do you have enabled? Try disabling them, especially non-core ones. Maybe one of them implements hook_form_alter() but it has gone haywire somehow.

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

WoozyDuck’s picture

This is exactly what happened
When I set preview as Required, there will be no submit button on the form whatsoever.
I have tried to have a look at my custom modules (non-core ones) to see if they unset that button using hook_form_alter() , but no chance
What are the possibility of this may happen?

gpk’s picture

I'd try disabling virtually all modules, or messing around on a fresh site to see where the problem arises. Or dusting off the PHP debugger ...

*scratches head*

Good luck!

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

WoozyDuck’s picture

Hiya
Thank you for your reply
I am new to Drupal, does it have any particular debugger or should I use var_dump etc?

gpk’s picture

does it have any particular debugger or should I use var_dump etc?

Correct. If you can get http://drupal.org/project/devel to work it has some useful additional functions (check the documentation/source code). For a full debugger you would need something like XAMPP + Eclipse + Xdebug installed locally.

Worth also trying a fresh install, disabling modules etc. to try to localise the source of the problem.

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

WoozyDuck’s picture

Thank you very much for the useful help
I will download that and have a look at documents too
Maybe you right, I may need to install a fresh version in case that I couldn't find the problem by disabling custom modules. many thanks again for spending your time helping me
best

gpk’s picture

Yes the thing is to try and isolate where the problem is, which is often a bit of a drag!!

Good luck and let us know if you get stuck!

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