We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8642
    • 28 Posts
    Here’s the snippet call:

    [!WebLoginPE? &customFields=`beskrivning,motto` &profileTpl=`profileTpl` &disableServices=`register` !]

    It worked in my prototype on a different server (PHP 4) but not on the final server (PHP 5). Other than the PHP versions, nothing has changed that I’m aware of. I just tested on the prototype server, and it still works there.

    I’ve looked at the headers with Firefox "Live HTTP Headers", and I can see that the cookie gets set, and I suppose the value is all right, but there is absolutely nothing in the document that is returned. No html code whatsoever.

    Any ideas as to why this is happening, are welcome, and they are particularly welcome if they also contain descriptions as to how I can fix this...

    EDIT: I’ve done some more checking. I use WebLoginPE to generate a list of all the users with two extra attributes on one page. This page is public, so everyone can see it without logging in, and that’s the way it should be.

    I also use it on one "admin" page, where the site owner can edit the extra fields. This "admin" page needs to be hidden from ordinary users, so I need it to be accessible only after some sort of login, i.e not public.

    None of these pages will show up if the cookie is set (the one that gets set when I login). As soon as I remove the cookie the pages display again.

    Unfortunately, this means that the site owner won’t be able to update the users extra fields, which in turn means that if a new user is added, the public page will disappear, since it is sorted on the extra fields, and wlpe doesn’t fail gracefully when a field you sort on is empty.