OK,

This should be a softball for you advanced themers out there. I must be missing something very obvious.

So I have some form errors being set and the messages show up just fine when I set my theme to garland. However, my custom theme is missing something and preventing the messages from showing up?

I have looked through some theming info, but I am not seeing anything obvious as to what I am missing from my theme.

Thanks in advance for the help!

Comments

pedrofaria’s picture

What? fapi_validation is causing it? i didn`t understood you...

tannerg’s picture

I don't know what is causing it, perhaps I have the wrong project name in my request.

This is a support request, so if I knew what I was talking about, I wouldn't need support.

I am using the resource_conflict module to detect conflicts in reservations for nodes of a certain type. The module is using form_set_errors to set the error message for the form when a conflict is detected.

If set the garland theme as default before submitting a node of the type in question and schedule a resource already scheduled during the same time, the error message is displayed. When I use the custom theme I have created, the form is not submitted, but the error message is not displayed.

tannerg’s picture

Title: form_set_error not displaying message with custom theme » Holy friggin easy

I knew there was something really easy that I was missing.

My page.tpl.php file was missing the $messages variable. I added it and all is well with the world now.

pedrofaria’s picture

Project: Form API Validation » Resource Conflict
Version: 6.x-1.x-dev » 6.x-2.0
Status: Active » Closed (fixed)

Crazy guy!

deviantintegral’s picture

Glad to hear you figured it out (and that this module is working for you).