I'm about to give up on gallery
I've tried EVERYTHING on the forum, FAQ's (that I can understand)
I am past the configuration - had to delete .htaccess
I can get a log-in screen
It will accept the admin user and password
I go right back to a blank gallery screen
I've seen dozens of posts with the same problem, so I know I don't
need to explain the problem much more
What do I do?
the URL to your Gallery (seeing the problem is very helpful).
http://www.floridatrailriders.org/gallery
the version of Gallery,
1.3.1
the version of PHP,
4.1.2
the version of Apache,
1.3.26 (unix)
your operating system and hardware,
server - SunOS ariel 5.8 generic_ 108528-02 sun4u sparc sunw ultra
sparc-IIi-c engine
(if applicable) the web browser and version you are using,
home pc - Wndows 98 IE 5.5
any debug output or clues that you've already discovered.
none
Thanks
J.Day
Posts: 3474
Okay... well we need more info :smile:
Is sessions.use_cookies enabled? This is the second part of FAQ C.13--><!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&page=gallery1-install.faq.c.php" TARGET="_blank">FAQ C.11</A><!-- BBCode End -->. If it's off, you need to get it turned on by your ISP.
If that doesn't seem to be the problem, then please post a link to your gallery/setup/phpinfo.php page and if possible provide a gallery test login/pass to play with.
Thanks!
-Beckett (beck@beckettmw.com)
Posts: 34
Thanks for your reply
Here's a link to a php info file outside of the setup directory
so that the gallery can be in run mode
http://www.floridatrailriders.org/gallery/phpinfo.php4
use admin
use florida for pw
I don't think this is a security risk - I cant get in
Thanks
J.Day
Posts: 34
Sorry forgot to reply on cookies
this is from phpinfo output
session.use_cookies local On MasterOn
Thanks
J.Day
Posts: 46
Hi, Just had a look at your gallery and a little play with it!
I logged in ok and then couldn't it also logged me out whilst doing an item?
Firstly it may be beneficial to delete all the previous install and re-install again to make sure you have a good upload and nothing is missing. Upload in the correct format and check operation again.
Alternatively,
I would suggest you look at your settings in the config files and possibly ask your isp provider to make a binary for you for your server setup.
Posts: 34
Thanks for taking a look
How did you create a gallery?
I don't see any controls to start that process?
I'm convinced at this point that my ISP does not have
the PHP settings that I need, and I don't know what
or how to change it. From what I've read, and I don't
claim to be an expert, it looks like gallery was designed
for use with an earlier version of PHP. It's tough for the
newcomer to figure out where to put the band-aids.
Thanks for trying
J.Day
Posts: 7994
JDay --
it looks like you've renamed all .php files to .php4. This will probably break Gallery in
a lot of little ways. You're better off telling Apache to treat .php files as PHP4.
Your ISP should know exactly how to do this for you (it's fairly trivial). If
not, you can do it yourself using .htaccess, though that's a bit tricky. Try asking
your ISP to do it, first.
Posts: 34
Per klop's suggestion, I reinstalled completely
I'm using this statement in my .htaccess to get past the php vs php4
file extension problem
AddHandler php4-script .php
But the software behaves exactly as it did before the re-install
One odd thing -
everytime I go into config wizard, gallery clears out my .htaccess file
to file size zero.
In order to get gallery to run after config, I need to re-upload the .htaccess
file. It has only the one statement in it.
The session test seem to fail-
reset turns it back to 1
refresh turns it to 2, but further refreshes always show a 2
any more thoughts?
Thanks
J.Day
Posts: 34
What does it mean when the session test fails?
Where should the .htaccess file be located?
Do you need one in every directory?
My server is earthlink -
Do you guys know of anyone who has been able to get
gallery running on earthlink.net?
Could you email me his/her address?
Thanks
J.Day
Posts: 2
JDay,
I have just started to try to get gallery working with earthlink.
I put an .htaccess file in my gallery directory. I made sure that I defined the php4-script handler.
Action php4-script /root-cgi/php4
AddHandler php4-script .php
Try this to see if it behaves differently.
I am a little concerned about Netpbm for the server (tru64) that hosts my website. I might have to compile Netpbm myself. Unfortunately, I have no telnet access.
Posts: 34
Thanks Khaigh
I inserted your statements in the .htaccess in place of
the single line I mentioned above. But it did not work
for me. With the single line I can open the page, with
your dual line expressions I error out.
Thanks
J.Day
Posts: 7994
KHaigh, JDay --
Don't modify the .htaccess file in the gallery directory. The config wizard will overwrite this file so any changes you put in it will get discarded. Instead, modify the .htaccess file of the directory above Gallery.
It either means that PHP's session subsystem is not configured correctly, or that your browser is not accepting cookies. Can you provide a working link to your phpinfo so that we can check it out? The one you provided earlier just returns a blank page.
Also, this is something that your ISP really needs to help you with. It's very hard for us to reverse engineer their configuration from what you're telling you in order to figure out how to solve the problem. They can tell you right away, since they know how the server is configured.
Posts: 34
Thanks again for you reply
Here are phpinfo and text version of config
http://www.floridatrailriders.org/gallery/config.txt
http://www.floridatrailriders.org/gallery/phpinfo.php
Moving .htaccess info into the file in the upper directory did
help with the overwriting problem.
Here's my gallery - still just refreshes on login as admin
http://www.floridatrailriders.org/gallery
I've doublechecked - my browser accepts cookies.
What questions should I be asking my ISP?
Can the problems with sever setup be overcome with .htaccess settings?
J.Day
Posts: 34
Do you know of any gallery 1.3.1's running on earthlink.net?
J.Day
Posts: 7994
Ok, the good news is that your PHP-as-CGI configuration seems to be working properly. And I can see that your website is sending me a cookie so that is good as well. But when I tried to log on as admin/florida it says "invalid password". Did you change the password? If so, what is it now?
Posts: 34
Sorry
I've made pw 'florida' again
J.Day
Posts: 7994
Hmm. All of your session settings look ok, and I'm getting a cookie so that code should be ok also. I can't tell why this might be failing. I think that either you'll have to debug the code, or this is a candidate for the <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Donation%20Based%20Support" TARGET="_blank">Donation Based Support</A><!-- BBCode End --> service.
Posts: 2
I am not a PHP expert, but could the problem be that the PHP version is 4.1.2 and register_globals is disabled for earthlink? (see FAQ C.14)
I could not get session_test.php to work until I replaced the global variable $count with $_SESSION['count'] and removed session_register("count"). For example,
session_test.php:
<?
// Pull the $destroy variable into the global namespace
extract($HTTP_GET_VARS);
session_start();
// Pull the $count variable in also
//foreach($HTTP_SESSION_VARS as $key => $value) {
// eval("$$key =& $HTTP_SESSION_VARS["$key"];");
//}
//session_register("count");
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
if ($destroy) {
session_destroy();
header("Location: session_test.php");
exit;
}
//$count++;
?>
....code removed....
<?=$_SESSION['count']?>
....code removed....
I read this in the php manual:
Caution
If you are using $_SESSION and disable register_globals, do not use session_register(), session_is_registered() and session_unregister(), if your scripts shall work in PHP 4.2 and earlier. You can use these functions in 4.3 and later.
Just a guess...
Posts: 34
khaigh
Have you been able to get gallery running on earthlink?
JDay
Posts: 34
Bahrat or moderators -
Is the register_globals = off a definite problem for gallery?
If so is there a work-around in the .htaccess file ?
Thanks
JDay
Posts: 7994
Gallery 1.3.2 works fine with register_globals off.
Posts: 86
I had a similar problem with another php script. I cannot get pat the admin page as it also bounce me back to login but I'm registering the cookie on my computer. Interestingly, I am able to login with my univeristy computer using the same version of browser. I have asked others to try to login and they could login with no problems. I have no idea why that happens. Perhaps someone here maybe able to enlighten us on this strange problem. I pulled out a significant amount of hair :grin: due to that and in the end I decided to live with it and just do all admin functions in my university.
Posts: 8194
It sounds like a browser problem. Are you restricting Javascript for some reason? The cookie does register though? -- make sure and check your cookie settings too.
Posts: 86
I have checked my browser settings as well as javascripts and cokkie settings. They are exactly the same with my university's settings. The thing I notice is that the cookie file when viewed in Netscape says that the status of the cokkie is flagged. I have tried to figure what that means but I am at my wits' end.
Posts: 8194
Try a different browser on the same computer. If this other browser works, then it's a browser issue.
Posts: 5
Its not a cookie issue, or a browser issue, that I can see. It seems that it just isn't allowing session variables.
Posts: 5
anyone who wants to see what the issue is: try it again:
http://www.floridatrialriders.org user: admin Pswd: florida
The albums that are in there where copied from another instance of gallery that is working perfect.
Posts: 5
oops: try it again:
http://www.floridatrailriders.org
Posts: 8194
I cannot login. There is a session test script in your setup directory. Try running that and see what the results are.
Posts: 34
Joy
The session test fails
it resets back to 1 as it should
but every reload shows page views as 2...2...2
JDay
Posts: 34
Thanks DES
that full address is
http://www.floridatrailriders.org/gallery
user: admin pswd: florida
for anyone who wanted to see the issue - can't get past login
JDay
Posts: 4
Hi Jday,
Sort of a shot in the dark, since I'm a gallery Newbie, but is it possible that your ISPs PHP sessiondata directory is somehow misconfigured? I'm not sure how it could be configured so that some user could access it and not others, but I experienced a very similar set of problems (failure to log in and provide command options) and it turned out to be a problem with the sessiondata dir.
HTH,
Alan
Posts: 8194
That or session.use_cookies is off. You might want to post the output from the session part of <?php phpinfo(); ?> (create a script with that and run it)
Posts: 34
Andrew
Here's the seesion section from phpinfo - any suggestions
session.auto_start Off
session.cache_expire 180
session.cache_limiter nocache
session.cookie_domain no value
session.cookie_lifetime 0
session.cookie_path /
session.cookie_secure Off
session.entropy_file no value
session.entropy_length 0
session.gc_maxlifetime 1440
session.gc_probability 1
session.name PHPSESSID
session.referer_check no value
session.save_handler files
session.save_path /tmp
session.serialize_handler php
session.use_cookies On
Thanks
JDay
Posts: 5
The session variables all look correct, but is session.use_trans_sid not a variable in php 4.1.x ?? When session.use_trans_sid is not set to 1, at least in php 4.2.x, it will dissable auto-session generation. ... which will cause session issues. The reason I ask is that session.use_trans_sid is not in your session list. I don't know if its part of 4.1.x or not. Perhaps it could be added to the php.ini file.
Posts: 5
John,
If we can't figure this out soon, you can always use my wdsrc server, at least temperarily, while we're working it out. Or you can use another web server I use, which has no domain name (ip only). You could simply manage the gallery on a seperate server, and just place it in a frame or inline_frame onto the ftr site. No one would know the difference. Then once we figure the issue out with the ftr galler, it could be copied over. Copying the albums is easy.
David
Posts: 34
DES
Eathlink has told me (in earlier inquiries) that I can't modify the php.ini
They suggest additions to the .htaccess file only.
Can this variable be set in an .htaccess file?
I'm not opposed to the gallery residing on a different server.
How much do you pay for the ip-only server?
Could you email me a link to their site?
Thanks
JDay
Posts: 8
I am having exactly the same problem as Jday. After i log in, there are still no options to change any thing in the window. I have tried all of the things in this threadand it still doesnt work.
You can look at my phpinfo() <!-- BBCode Start --><A HREF="http://www.megagamers.com/gallery/setup/phpinfo.php" TARGET="_blank">here</A><!-- BBCode End -->
and my session test script (which doesnt work, just stays at 1 even after refresh) <!-- BBCode Start --><A HREF="http://www.megagamers.com/gallery/setup/session_test.php" TARGET="_blank">here</A><!-- BBCode End -->
my gallery is <!-- BBCode Start --><A HREF="http://www.megagamers.com/gallery" TARGET="_blank">here</A><!-- BBCode End --> and the admin account is admin/florida if you want to try to access it.
I am hosting this on my home computer and I have access to all files (php/apache) but that also means that i installed them myself and could have messed them up.
Thanks for the help,
Andy
Posts: 7994
Did you look in your Apache error log?
I notice that your session save path is set to: /tmp.
See FAQ C.9
Posts: 8
Thanks tons,
Works great now. Had to wade through all the different php.ini's on my system to find the one that actually changed it.
Thanks again,
Andy
Posts: 34
Bharat or Aziraphale
Does the session save path point to a directory on the server or the
browsers computer?
If it's on the server - what directory level does it reside on?
(in my gallery directory or somewhere lower?)
Thanks
JDay
Posts: 8
I think that the session save path points to a dir on the server. On my computer (WinXP) i set it to C:WINDOWSTemp and now it works.
If you are on *nix then I think that /tmp will actually work but you may need to create the folder.
Hope that helps
Posts: 34
After finally asking the right questions, Earthlink now tells me
that their PHP installation does not support sessions.
I guess that kills this project for me.
Thanks for the help
JDay
Posts: 34
I was finally able to get Gallery running !
The problem was with my service provider.
They are a good ISP, but there installation of
PHP is terrible. They have php just for the sake
of saying they have it. The 'security' is set so high
that they have problems getting most php apps to run.
I found an 'almost-free' service provider. The installation
of gallery went very smoothly.
http://www.inetbridge.net
They offer one month free trial, they are very accomodating.
They have a hosting package that includes 50 mb webspace
and 3 gb of monthly traffic for $25/year.
J.Day