help! almost done configuring

scottyandpear
scottyandpear's picture

Joined: 2003-01-15
Posts: 12
Posted: Fri, 2003-01-17 00:35

im having these problems.. when running gallery from my browser

can anyone give me some advice how to correct these problems...

Notice: Undefined variable: GALLERY_BASEDIR in c:program filesapache groupapachehtdocsmp3pjgongallery1.33albums.php on line 30

Warning: Cannot send session cookie - headers already sent by (output started at c:program filesapache groupapachehtdocsmp3pjgongallery1.33albums.php:30) in c:program filesapache groupapachehtdocsmp3pjgongallery1.33session.php on line 51

Warning: Cannot send session cache limiter - headers already sent (output started at c:program filesapache groupapachehtdocsmp3pjgongallery1.33albums.php:30) in c:program filesapache groupapachehtdocsmp3pjgongallery1.33session.php on line 51
Gallery

thanks

------
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard). http://mp3pjgon.ma.cx/gallery1.33/setup/phpinfo.php
Gallery URL (optional but very useful):
Gallery version: v.1.33
Apache version: 1.37
PHP version (don't just say PHP 4, please): 4.2.3
Operating system: windows xp pro
Web browser/version (if applicable): ie 6 sp1

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-17 00:36

FAQ C.10

 
scottyandpear
scottyandpear's picture

Joined: 2003-01-15
Posts: 12
Posted: Fri, 2003-01-17 00:46

i have already changed that line in the php.ini file...

and it reads correctly from 4.20

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-17 00:53

Did you restart apache?

 
scottyandpear
scottyandpear's picture

Joined: 2003-01-15
Posts: 12
Posted: Fri, 2003-01-17 00:58

yup

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-17 01:01

Well, you didn't do something right..from phpinfo()

error_reporting 2047 2047

As you'll see here : http://php.net/error_reporting : 2047 = E_ALL (all errors [notices included]). Unless you're debugging, notices are usually not necessary to display.

 
scottyandpear
scottyandpear's picture

Joined: 2003-01-15
Posts: 12
Posted: Fri, 2003-01-17 01:09

i dont understand... what im doing wrong

http://mp3pjgon.ma.cx/gallery1.33/setup/phpinfo.php

that is my phpinfo file and it looks like its working...

i looked on php site but i didnt understand the link...

p.s. thanks for you help ive been working on this for 2 days now...

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-17 01:22

Add this to your .htaccess file in the Gallery directory (you'll have to add it every time you re-run the configuration wizard)

php_value error_reporting 2039

 
scottyandpear
scottyandpear's picture

Joined: 2003-01-15
Posts: 12
Posted: Fri, 2003-01-17 01:48

joy,

after i reconfigure the album from index.php and i run thru the installation and i save the configuration it goes to the albums.php page... at top are the errors... then after i noticed the rrors i should log off the album page then edit the .htaccess file in the gallery directory to read this???

php_value post_max_size 20971520
php_value upload_max_filesize 20971520
php_value magic_quotes_gpc off
php_value error_reporting 2039

or just this php_value error_reporting 2039

scotty

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-17 01:56

Just add the line, don't override everything in it.

 
scottyandpear
scottyandpear's picture

Joined: 2003-01-15
Posts: 12
Posted: Fri, 2003-01-17 02:04

joy,

i noticed this in the index.php page....

Warning!
Either mod_rewrite is not installed or your .htaccess file is not enabled (see above). Either way, we'll have to use longer URLs in the Gallery. If you want to turn it on I'd suggest that you make sure that your .htaccess file works and then if it still doesn't work you may need to reconfigure and rebuild Apache with this flag:
--enable-module=rewrite

is this important??

also... after i close the window of the albums.php i need to edit the .htaccess in what folder... the setup folder... or the main folder in the gallery folder...

scotty

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-17 02:07

No, not really...It looks like your Gallery is working to me

http://mp3pjgon.ma.cx/gallery1.33/index.php

Looks pretty good...

 
scottyandpear
scottyandpear's picture

Joined: 2003-01-15
Posts: 12
Posted: Fri, 2003-01-17 02:11

can i leave the gallery unsecure after i hit save.. or should can i leave it unsecure? because i have to edit the .htaccess file

do i edit the .htaccess file in the gallery folder or in the setup directory?? after i close out the album.php file

this is what im goin to install the file

php_value post_max_size 20971520
php_value upload_max_filesize 20971520
php_value magic_quotes_gpc off
php_value error_reporting 2039

then im gon to restart apache.. then try to go to the album.php file

scotty

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-17 02:18

OK, have you run the configuration wizard all the way through?

Once you've completed the configuration wizard, put Gallery in secure mode (read the README). Edit the .htaccess, add the line, and you should be set.

Edit the .htaccess in the main Gallery folder, not in the setup/ directory.

You really don't need to restart Apache...

 
scottyandpear
scottyandpear's picture

Joined: 2003-01-15
Posts: 12
Posted: Fri, 2003-01-17 02:34

joy,

yes that worked... but i have 2 problems..

i cant login from my machine ... friends can login but from another location....
it says it cant find /gallery/login.php although the file is in the directory of the gallery

then from people loged into my album and couldnt add pictures.. this is the error they got...
Error: Unable to make thumbnail (0)!

do you got any ideas??

pj

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-17 02:37

All right, I can get to the login screen fine.

For the thumbnail error, you will need to put Gallery into debug mode (config option) for us to solve that error.