I'm having trouble with the "edit album" link. Browser responds that it cannot find server when clicking on this link. Also, I cannot click on a thumbnail to view a photo (browser responds again with server not found). I tried a clean install of G2 and MYSQL, but I continue to get the same error.
Permissions issue on my server perhaps? I'm new to webhosting and new to Gallery and am quickly getting in over my head. TIA
----
Gallery URL: davidandkim.net/gallery2
Gallery version: G2 downloaded via CVS 6/26
Webserver (with version): Apache 2.0.53 (Ubuntu)
Datatabase (with version): MYSQL 4.0.23
PHP version (eg 4.2.1): 4.3.10.10Ubuntu4
phpinfo URL (optional): davidandkim.net/testphp.php
Graphics Toolkit(s): NetPBM, ImageMagick
Operating system: Ubuntu 5.04
Web browser/version: IE6.0 / FF1.0.4
G1 version (for migration bugs): NA
Posts: 16503
Try increasing your memory limit to at least 16MBs for PHP.
If that doesn't work, then please turn on debugging to 'immediate' in the config.php? Also check your Apache error logs (not access, but error) to make sure Apache isn't generating any errors?
I don't get the error, but FF 1.0.4 just just sits there and doesn't do anything.
Posts: 32509
first i thought everything works, i can browse to the album, add the album to the cart, see the slideshow, browse to gallery.
but all the (non album) item links don't work, e.g.
http://davidandkim.net/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=13
can you activate buffered or immediate debug mode in config.php ($gallery->setDebug('buffered');) and then try again going to one of the photos? in the debug information it should show what redirect it wants to do etc.
Posts: 7
Thanks for the help.
There is an existing .htaccess file which contains the following line:
php_value memory_limit 16M
Is there anything else I need to do ensure that PHP gets more than the 8M?
I checked the apache error logs, and saw nothing related to this problem.
I've also editted the config.php file as suggested by valiant, but I don't see any more info being displayed in IE6 (with FF 1.0.4 it just sits there as nivekiam noted). Is there any way that I can double-check to see that I'm actually in debug mode?
Posts: 32509
in config.php, there's a line $gallery->setDebug(false);
change it to $gallery->setDebug('immediate');
when you then browse to main.php, you should get a lot of debug output.
Posts: 7
I'm seeing the debug output now. However, I'm not getting anything from the links that I've been having trouble with (ie links to individual photos from thumbnails).
I've also noticed that I'm getting photos in the random image block that are from a previous install of mysql and g2. This makes me wonder if I didn't really get a clean reinstall of mysql. I initially used atp-get to install mysql-server, and then after running into some problems, I uninstalled mysql using 'apt-get remove'. I also manually deleted the mysql data directory at /var/lib/mysql. I then reinstalled mysql with apt-get again.
I'm guessing this wasn't the best idea. Is there a better way to uninstall/reinstall mysql?
Posts: 7
Switched from 'buffered' to 'immediate', and now I get quite a bit of information:
http://www.davidandkim.net/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=17
This is a link to an individual photo. Before turning on debug mode, this link would go nowhere (server not found in IE6, nothing at all on FF1.0.4)
Posts: 32509
hmm, this seems to be an incomplete request, maybe it just dies. don't know.
got a link to a phpinfo page? what's your php memory limit?
Posts: 7
I have this link for php info: [url]davidandkim.net/testphp.php [/url]
php memory limit is currently set in .htaccess with a 16M limit
having just set this server up, it's still running the GUI Xsession. I'm investigating how to kill that to free up more mem
Posts: 32509
16 mb should be enough.
don't know what's happening...
Posts: 16503
Why does his phpinfo state that the memory_limit is 8MB though?
Which .htaccess file did you change this in? Can you put your phpinfo in the same directory as the .htaccess file you made the changes to?
Posts: 7
testphp and .htaccess were not in the same directory. I copied both files into the other's directory; so now I have two sets of these files. One set resides in the top level of my web directory structure:
www.davidandkim.net/testphp.php
The second set resides in the gallery2 directory:
www.davidandkim.net/gallery2/testphp.php
I restarted Apache, and I still see memory_limit set to 8MB in both places.
BTW the .htaccess file permissions are 644. Complete text of this file is:
"php_value memory_limit 16M"
Posts: 7
Seems to be working now. I reinstalled everything again :D, and still had the same issues. Then I edited the php.ini file and changed the mem limit from 8 to 16M, restarted apache, and voila.
I guess I was under the misconception that the .htaccess file would somehow override the values set in the php.ini file.
Anyhow, thanks for everybody's help!
Posts: 32509
the value in .htaccess can override the php.ini value, if it's setup that way and if you're not using php-cgi.
good that it works.