Posted by edaly on September 5, 2008 at 6:51pm
Need help
i have Drupal running and a custom login form on the front page. now the error messages won't display after the first refresh. It would only display after a second refreshing of the page. Can't figure out why.
I am using a custom theme and inline registration ( a little hacked...) but it works on all the pages but the front page. help would be appreciated
Comments
I have seen similar issues
I have seen similar issues and it has to do with the fact that all system messages are in the session. Depending on how your "slightly hacked" inline registration form is being implemented it is entirely possible that it is not registering its error until the "current" system messages have already been processed. This means they are not available "on the first refresh" but they are there for the oneshot of the "second refresh".
Would make sense but how come it only occurs on the front page?
I actually thought the same thing, but i can't figure out why it will only happen on the front page? on any other pages, the error will display after the first refresh, just not on the front page. i am going to try with the default login to see if the error message is displayed after the first refresh on the home page, the error might have to do with the theme.
The front page doesn't show the error message on the first refre
I enabled the default login on the first page to try it out. And it only displayed the error message after the "second refresh" So it seems that it's not due to the hacking of the inline registration module. running out of ideas, any help would be appreciated. Thanks
Found a fix
It seems that the issue was that it was in a block on the front page. I changed the layout and put the code in the page by itself, and now it's working. Don't think that is the best way to fix it but it will work for me.
The solution in detail please...
I am very new to drupal. Could you please explain your solution more elaborately? Thx....