Warning: Invalid argument supplied for foreach() in /***/************/gallery/util.php on line 539
If I am logged in as admin I get the error above on both the Create User and Preferences page next to the 'user is an admin' option, followed by an empty select field.
Also, if I set a user as 'User is an Admin' to Yes and click 'Save', the change is not remembered and the user remains 'User is an Admin' No.
Posts: 7994
* this is a canned reply *
We need a lot more information in order to figure out what's
wrong with your setup. Please read the help page:
http://gallery.sourceforge.net/help.php
and at the bottom of the page is a list of things that we
need to know in order to understand your problem.
Posts: 9
the URL to your Gallery
http://www.wavewatch.com.au/gallery
the version of Gallery
latest as of downloading it yesterday
the version of PHP,
4.2.1
the version of Apache,
1.3.24
your operating system and hardware,
FreeBSD 4.5-RELEASE
(if applicable) the web browser and version you are using,
any debug output or clues that you've already discovered.
errors as in first post
<!-- BBCode Start --><IMG SRC="http://www.wavewatch.com.au/gallery-error.GIF"><!-- BBCode End -->
Posts: 7994
That's odd. Have you modified the code at all? That option ("User is an admin") shouldn't appear in either the "Create User" or the "Preferences" dialogs.
Have you, by any chance, set the "isAdmin" variable somewhere else in your html_wrapper code? Does this problem still appear if you revert your html_wrapper changes back to the original code?
Posts: 9
hmm
I have a session variable called isAdministrator? But not isAdmin...
I haven't touched the code but only used the html_wrap files to wrap my own user authentication around it.
So if that menu isn't meant to appear, how do I give particular users admin rights?
Posts: 9
oops I take that back... it IS isAdmin that I use... DOH! :cry:
So I will need to change that variable name throughout my whole site :mad: :mad: :mad: