| Author |
Message |
fluentdesigns
User


Joined: Jul 31, 2003 Posts: 38
|
Posted: Mon Aug 04, 2003 5:52 pm Post subject: Installed block got it working..sorta? |
|
|
Installed the improved random picture block and edited the files but i get this error after adding it to the site. the block shows up but theses show up over the block.
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51
Warning: Invalid argument supplied for foreach() in /var/www/virtual/planet-diesel/gallery/session.php on line 55
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable): |
|
| Back to top |
|
|
AdBot
|
| Post subject: Installed block got it working..sorta? |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Aug 04, 2003 7:31 pm Post subject: |
|
|
fluentdesigns wrote: › Installed the improved random picture block and edited the files but i get this error after adding it to the site. the block shows up but theses show up over the block.
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51
Warning: Invalid argument supplied for foreach() in /var/www/virtual/planet-diesel/gallery/session.php on line 55
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable): for the session error, open the block file and put this:
Code: ›
global $gallery;
after this line at the top of the file:
Code: › <?php
for the second error, open session.php and go to line 55. you will see two instances of $_HTTP_SESSION_VARS, change them both to $_SESSION. |
|
| Back to top |
|
|
fluentdesigns
User


Joined: Jul 31, 2003 Posts: 38
|
Posted: Tue Aug 05, 2003 2:00 am Post subject: Re: Installed block got it working..sorta? |
|
|
Now its worst lol
Warning: Cannot send session cookie - headers already sent by (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51
Warning: Unable to create '/var/www/virtual/planet-diesel/albums/hourly.jpg': Permission denied in /var/www/virtual/planet-diesel/gallery/platform/fs_unix.php on line 24
Warning: fopen("/var/www/virtual/planet-diesel/albums/hourly.txt", "w") - Permission denied in /var/www/virtual/planet-diesel/gallery/platform/fs_unix.php on line 53
Warning: Supplied argument is not a valid File-Handle resource in /var/www/virtual/planet-diesel/gallery/random_support.php on line 118
Warning: Supplied argument is not a valid File-Handle resource in /var/www/virtual/planet-diesel/gallery/random_support.php on line 119 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Aug 05, 2003 7:26 am Post subject: |
|
|
those "permission denied" errors means that the webserver user does not have write access to the album directory. if you have shell access:
chmod -r 0777 albums
will fix those errors. |
|
| Back to top |
|
|
fluentdesigns
User


Joined: Jul 31, 2003 Posts: 38
|
Posted: Tue Aug 05, 2003 11:39 am Post subject: Re: Installed block got it working..sorta? |
|
|
Ok that worked now im down to this
Warning: Cannot send session cookie - headers already sent by (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51
Warning: Unable to open '/var/www/virtual/planet-diesel/albums/album01/unknown.thumb.jpg' for reading: No such file or directory in /var/www/virtual/planet-diesel/gallery/platform/fs_unix.php on line 24 |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
|
| Back to top |
|
|
fluentdesigns
User


Joined: Jul 31, 2003 Posts: 38
|
Posted: Tue Aug 05, 2003 12:19 pm Post subject: Re: Installed block got it working..sorta? |
|
|
LoL you werent suppose to see that site i was going to give url after I had all the errors fixed. That acually isnt the final url i ahvent decided on the name for this site so im using a temp one for now.
anyways down to two now!
Warning: Cannot send session cookie - headers already sent by (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Aug 05, 2003 1:08 pm Post subject: Re: Installed block got it working..sorta? |
|
|
ok, so in the block file you have
Code: › global $gallery;
right below the
Code: › <?php
line. do the same in the random_support.php file and see if it helps.
if not, open your php.ini file (usually in /etc/php4/php.ini) and find the entry for output_buffering. change it to On. |
|
| Back to top |
|
|
fluentdesigns
User


Joined: Jul 31, 2003 Posts: 38
|
Posted: Tue Aug 05, 2003 6:01 pm Post subject: Re: Installed block got it working..sorta? |
|
|
| What if the php.ini file cant be found? I found a php.ini.rpmnew file in the etc folder there isnt even a php4 folder in the etc |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Aug 05, 2003 7:37 pm Post subject: |
|
|
create a php file with the following code:
Code: ›
<?php
phpinfo();
?>
open this page in your browser, the first table will have the path to your php.ini file listed. |
|
| Back to top |
|
|
fluentdesigns
User


Joined: Jul 31, 2003 Posts: 38
|
Posted: Tue Aug 05, 2003 7:42 pm Post subject: Re: Installed block got it working..sorta? |
|
|
Ok says its in this dir
****removed****
but all that is there is a folder named php
go in there.. no ini file.
contents of folder:
****removed**** |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Aug 05, 2003 7:48 pm Post subject: |
|
|
that's not the right directory. here's mine:
Quote: ›
Configuration File (php.ini) Path /etc/php/apache1-php4/php.ini
if you have locate, just do a "locate php.ini" |
|
| Back to top |
|
|
fluentdesigns
User


Joined: Jul 31, 2003 Posts: 38
|
Posted: Tue Aug 05, 2003 8:00 pm Post subject: |
|
|
gave me these two files
/etc/php.ini.rpmnew
/etc/php.ini.rpmsave |
|
| Back to top |
|
|
fluentdesigns
User


Joined: Jul 31, 2003 Posts: 38
|
Posted: Tue Aug 05, 2003 11:16 pm Post subject: Re: Installed block got it working..sorta? |
|
|
Ok turned on the output buffer
still getting these
Warning: Cannot send session cookie - headers already sent by (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/planet-diesel/header.php:32) in /var/www/virtual/planet-diesel/gallery/session.php on line 51 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 06, 2003 7:19 am Post subject: |
|
|
| did you restart the apache server after you made the change? |
|
| Back to top |
|
|
|
|
|
|
|