unable to create user a/c

alvin

Joined: 2002-09-13
Posts: 7
Posted: Fri, 2002-09-13 15:49

hi all,

I have successfully installed the Gallery on my web server.

After logging in the gallery by using a/c 'admin',
I can add album, add photo,
while unable to create user a/c in function 'Manage Users'.
on the window 'Manage Users', it show user 'admin'.
when I click on 'Create', nothing happen. even click on 'Modify' or 'Delete'.

Do I need to set anything to enable it or am I do something wrong?

thanks a lot.

Alvin.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-14 06:17

What version of Gallery?

 
alvin

Joined: 2002-09-13
Posts: 7
Posted: Sat, 2002-09-14 09:13

Hi,

my installed Gallery version is 1.3.1
under the following configuration:
windows 2000 Pro
Apache 1.3.24
PHP 4.2.2

I try to add user by directly open create_user.php and no problem,
while only no response when click on 'Create, Modify, Delete'
under window 'Manage Users'.

thanks a lot.

Alvin.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2002-09-15 08:44

Hmm. I haven't heard of this problem before. Any chance you can private message me your admin password and let me see if I can reproduce the problem remotely?

 
alvin

Joined: 2002-09-13
Posts: 7
Posted: Mon, 2002-09-16 06:17

Hi bharat,

I have already sent u the private message.

Thanks a lot for your kindly help.

regards,

Alvin.

 
rubun
rubun's picture

Joined: 2002-09-17
Posts: 1
Posted: Wed, 2002-09-18 23:20

I experienced the same thing. When I try to create user, I got the following in my apache log file.

[Wed Sep 18 19:11:42 2002] [error] [client 66.185.85.75] PHP Warning: Cannot ad
d header information - headers already sent in d:wwwgallerymanage_users.php o
n line 38

any ideas?? (I actually got the same error when I try to log out from the administrator account)

My config is:
Win2K Professional
Apache 1.3.20
PHP Version 4.2.3
Gallery 1.3.1

TIA

Rubun :smile:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-21 07:50

Hmm.

Try editting manage_users.php and right after this line:

header("Location: create_user.php?uname=$uname");

Add this line:

return;

Then try clicking the "create user" button again.

 
alvin

Joined: 2002-09-13
Posts: 7
Posted: Mon, 2002-09-23 13:47

Hi Bharat,

after modified as you mentioned above,
the Manage Users change to a blank page.

regards,

Alvin.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-24 02:23

Alvin, I've got your auth info so I'll see about debugging this directly on your machine. Check back later (or check your PMs for more info).

 
formas

Joined: 2002-09-11
Posts: 11
Posted: Thu, 2002-09-26 02:14

any word on a resolution for this?

I've got the same problem... :sad:

 
alvin

Joined: 2002-09-13
Posts: 7
Posted: Fri, 2002-09-27 03:38

please wait for a while.
Bharat is handling on this issue.

regards,

Alvin.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-09-30 06:29

Ok, I've fixed this problem on Alvin's site. Basically the issue is that Gallery 1.x has a problem where I did some sloppy coding. Under certain environments, this causes you to see error messages like in FAQ C.10. However, in Alvin's case he's got his PHP configured not to display errors, so the error was happening but we couldn't see it. Alvin, if you look in your Apache error log you'll probably see an error message like FAQ C.10.

The long explanation for this is very long so I won't go into it here. Suffice it to say that this is somewhat of a requirement for Gallery to work seamlessly as a drop-in for PostNuke. I made some poor design decisions a while back and am paying the price for it now.

The quick fix was to add this line:

$GALLERY_BASEDIR = '';

At the top of Alvin's manage_users.php file (inside one of the <?php ?> blocks). This suppresses the error and lets his Gallery work. Alvin, you may have to do this in other places also if you have similar problems.

 
alvin

Joined: 2002-09-13
Posts: 7
Posted: Mon, 2002-09-30 09:22

Thanks for your kindly help! :grin:

regards,

Alvin.

 
formas

Joined: 2002-09-11
Posts: 11
Posted: Wed, 2002-10-02 00:46

I'm not sure if I'm lost here or what...

I added the line

$GALLERY_BASEDIR = '';

at the top of manage_users.php just before the hack prevention section.

This had no effect on my system.

I'm running Gallery 1.3 on Win2k using Xitami web server with Php version 4.2.2

If I click on Create or Modify nothing appears to happen. If I sit and let it load a while, I get a 404 Not Found page. I checked Xitami's log file on my local development machine and errors like the following are there:

127.0.0.1 - - [01/Oct/2002:20:40:26 -0500] "GET /gallery/manage_users.php?action=Create HTTP/1.1" 404 1262 "http://tropicaltreasures/gallery/manage_users.php?action=Modify" ""

Could there be something else I am missing here? The same thing is happening on both development and Live versions of the two galleries that I am running (one heavily customized, one barely customized at all).

Thanks in advance!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2002-10-04 18:23

Formas, I'm not sure what's going wrong on your box. And we don't support the Xitami web server so you're probably on your own here. I'd suggest putting lots of print statements in the code to see how far it gets. Use a protocol sniffer to watch the HTTP headers go back and forth.

 
formas

Joined: 2002-09-11
Posts: 11
Posted: Sat, 2002-10-05 21:48

I suppose I could just "deal" with it since only my father and I use this (one gallery is for his store's website) and we can share the username. It is just the only thing I have had any problems with that have not beed resolved yet.

Also, my friend that hosts my Live version is moving over to Apache from Xitami. We use Xitami since it is small, fast, simple, and we HAD to for a class in college so the rest just went from there :smile:

Thanks anyways!