Page 1 of 1

FormBuilder/FormBrowser: Wierd redirect to admin login

Posted: Wed Apr 18, 2007 10:57 am
by AndyHolyer
We're just about to go live on an application using FormBuilder/FormBrowser, and it's the proof of concept case for using a CMS at all, let alone CMSMS. I'm finding that even when a user is logged in as a FEU when they hit the edit button for a response they are redirected to the Admin login, which is not the behaviour required, to put it mildly. I've been searching all morning to find out why this should happen, but have been unable to find out the cause.

Has anyone seen this before? I have set the FEU class involved to have rights to edit/add form entries.

This is a real panic now. Thanks in advance for any help people can provide.

Re: FormBuilder/FormBrowser: Wierd redirect to admin login

Posted: Wed Apr 18, 2007 2:25 pm
by calguy1000
yeah, I've seen this before.
I'll bet that it's an automatic upgrade problem in the modules.  For some reason, the module thinks it needs to upgrade
and this is doing a permissions check, which results in a redirect to the admin login.

Try adding this code to the Formbuilder.module.php file:

        function AllowAutoInstall()
        {
          return FALSE;
        }

        function AllowAutoUpgrade()
        {
          return FALSE;
        }

Re: FormBuilder/FormBrowser: Wierd redirect to admin login

Posted: Thu Apr 19, 2007 10:12 am
by AndyHolyer
Try adding this code to the Formbuilder.module.php file:

        function AllowAutoInstall()
        {
          return FALSE;
        }

        function AllowAutoUpgrade()
        {
          return FALSE;
        }

It's not that - that code is already in the module concerned

Re: FormBuilder/FormBrowser: Wierd redirect to admin login

Posted: Thu Apr 19, 2007 8:05 pm
by Zoorlat
I experienced similar difficulties when using the FEU Calendar module. After going throught the code I found that it was the WYSIWYG-editiing that caused the problem. I removed that function from the code, since I only needed plain text-area editing for my purpose. Now it works without problem!

I hope my experience might help you out.  :-\

Re: FormBuilder/FormBrowser: Wierd redirect to admin login

Posted: Wed Apr 25, 2007 5:42 pm
by neophron
Hi,

I had the following problem with the formbuilder (CMSMS 1.0.2): On the contact page I inserted the native module {cms_module module='FormBuilder'}
After that everybody who clicks on contact in the navigation was redirected to the admin login page instead to the contact page! I found out, that on every page where the module {cms_module module='FormBuilder'} was placed, caused this page to redirects you to the admin/login page. Then I just created a new module with a different name, placed it on the contact page (the old module went to garbage) and it works.
I hope this is helpfuul for you.

neophron

Re: FormBuilder/FormBrowser: Wierd redirect to admin login

Posted: Fri Apr 27, 2007 9:38 am
by AndyHolyer
My solution was an even more egregious hack: I popped some PHP into the page template (thankfully it had its own template) which set the user login details to a previously set dummy user. The only problem with that is if I'm signed in as admin and visit the page for testing I have to log out twice and then back in again to set myself back to admin again.