Posted: Thu Aug 14, 2003 1:31 pm Post subject: Parse Error??
<
I'm having some strange error that I can't figure out what's wrong this is on the main page
www.kcvelo.com
I am using the new albums block and am getting this error.
Here is my code.
Code: ›
/* CHANGE THESE VARIABLES */
$GALLERY_BASEDIR = "/home/ramseyr/kcvelo.com/modules/gallery/";
define(WEB_BASE_ADDR,"http://www.kcvelo.com/modules/gallery/);
define(GALLERY_NAME,"gallery");
define(USE_THUMBS,1); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/home/kcvelo.com/albums/");
Here is the error
Parse error: parse error in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-ne
>
----
Thanks
Ramsey
$GALLERY_BASEDIR = "/home/.racso/ramseyr/kcvelo.com/modules/gallery/";
define(WEB_BASE_ADDR,"http://www.kcvelo.com/modules/gallery/);
define(GALLERY_NAME,"gallery");
define(USE_THUMBS,1); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/home/.racso/ramseyr/kcvelo.com/albums/");
slackbladder wrote: › There is no CACHE file in your ALBUMS directory? Maybe paths are still incorrect. What is your actual server PATH?
/home/ramseyr/kcvelo.com/
/home/.racso/ramseyr/kcvelo.com/
I have changed the path to read
/home/.racso/ramseyr/kcvelo.com/
I have tried it also without the . in-front and I still get the same message.
the line it complains about is line #29 which is
I did that and it tells me that my server path is /home/ramseyr/kcvelo.com
I trashed the old block and uploaded a new one and the erroe I was getting is now gone replace with a new one
*****************
Warning: open_basedir restriction in effect. File is in wrong directory in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php on line 36
Fatal error: Failed opening required '/home/kcvelo.com/modules/gallery/init.php' (include_path='.:/usr/local/lib/php') in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php
******************
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Thu Aug 14, 2003 2:55 pm Post subject:
So your REFs are this:?
$GALLERY_BASEDIR = "/home/ramseyr/kcvelo.com/modules/gallery/";
define(WEB_BASE_ADDR,"http://www.kcvelo.com/);
define(GALLERY_NAME,"gallery");
define(USE_THUMBS,1); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/home/ramseyr/kcvelo.com/albums/");
And in your session.php (/modules/gallery/) (around line 50) is this:
/* Start a new session, or resume our current one */
session_start();
/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
foreach($_SESSION as $key => $value) {
eval("\$$key = & \$_SESSION[\"$key\"];");
}
}
$GALLERY_BASEDIR = "/home/ramseyr/kcvelo.com/modules/gallery/";
define(WEB_BASE_ADDR,"http://www.kcvelo.com/);
define(GALLERY_NAME,"gallery");
define(USE_THUMBS,1); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/home/ramseyr/kcvelo.com/albums/");
And in your session.php (/modules/gallery/) (around line 50) is this:
/* Start a new session, or resume our current one */
session_start();
/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
foreach($_SESSION as $key => $value) {
eval("\$$key = & \$_SESSION[\"$key\"];");
}
}
No my sessions.php reads like the following
/* Start a new session, or resume our current one */
session_start();
/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
foreach($HTTP_SESSION_VARS as $key => $value) {
eval("\$$key = & \$HTTP_SESSION_VARS[\"$key\"];");
}
}
Any ideas?
If you go to my nuke page www.kcvelo.com you will now see a whole slew of errors. I had the path wrong and after I corrected it i ended up with those errors. This is driving me crazy.
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Thu Aug 14, 2003 3:11 pm Post subject: Re: Parse Error??
Replace the code in your sessions.php file with this:
Code: ›
/* Start a new session, or resume our current one */
session_start();
/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
foreach($_SESSION as $key => $value) {
eval("\$$key = & \$_SESSION[\"$key\"];");
}
}
It should fix the sessions error.
Were the config refs correct?
Code: ›
$GALLERY_BASEDIR = "/home/ramseyr/kcvelo.com/modules/gallery/";
define(WEB_BASE_ADDR,"http://www.kcvelo.com/);
define(GALLERY_NAME,"gallery");
define(USE_THUMBS,1); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/home/ramseyr/kcvelo.com/albums/");
slackbladder wrote: › Replace the code in your sessions.php file with this:
Code: ›
/* Start a new session, or resume our current one */
session_start();
/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
foreach($_SESSION as $key => $value) {
eval("\$$key = & \$_SESSION[\"$key\"];");
}
}
It should fix the sessions error.
Were the config refs correct?
Code: ›
$GALLERY_BASEDIR = "/home/ramseyr/kcvelo.com/modules/gallery/";
define(WEB_BASE_ADDR,"http://www.kcvelo.com/);
define(GALLERY_NAME,"gallery");
define(USE_THUMBS,1); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/home/ramseyr/kcvelo.com/albums/");
Here are the errors I am getting know..
Warning : open_basedir restriction in effect. File is in wrong directory in /home/.racso/ramseyr/kcvelo.com/modules/gallery/platform/fs_unix.php on line 53
Warning : fopen("/home/ramseyr/kcvelo.com/albums/album_list.cache", "w") - Operation not permitted in /home/.racso/ramseyr/kcvelo.com/modules/gallery/platform/fs_unix.php on line 53
Warning : fwrite(): supplied argument is not a valid File-Handle resource in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php on line 80
Warning : fclose(): supplied argument is not a valid File-Handle resource in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php on line 82
Warning : open_basedir restriction in effect. File is in wrong directory in /home/.racso/ramseyr/kcvelo.com/modules/gallery/platform/fs_unix.php on line 53
Warning : fopen("/home/ramseyr/kcvelo.com/albums/album_list.cache", "r") - Operation not permitted in /home/.racso/ramseyr/kcvelo.com/modules/gallery/platform/fs_unix.php on line 53
Warning : fgets(): supplied argument is not a valid File-Handle resource in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php on line 107
Warning : fgets(): supplied argument is not a valid File-Handle resource in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php on line 107
Warning : fgets(): supplied argument is not a valid File-Handle resource in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php on line 107
Warning : fgets(): supplied argument is not a valid File-Handle resource in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php on line 107
Warning : fgets(): supplied argument is not a valid File-Handle resource in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php on line 107
Man, you are way to patient... I'm about ready to throw in the towel.
Do any of these errors look familiar?
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Thu Aug 14, 2003 3:28 pm Post subject:
If you look in the error above - they are still making reference to .rasco
Warning : fgets(): supplied argument is not a valid File-Handle resource in /home/.racso/ramseyr/kcvelo.com/blocks/block-NG-NEW-newAlbums.php on line 107
Are you sure the config references are right?
$GALLERY_BASEDIR = "/home/ramseyr/kcvelo.com/modules/gallery/";
define(WEB_BASE_ADDR,"http://www.kcvelo.com/);
define(GALLERY_NAME,"gallery");
define(USE_THUMBS,1); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/home/ramseyr/kcvelo.com/albums/");
I would also check the SETUP on GALLERY (/modules/gallery/setup/)
I'm glad you mentioned the setup. My setup folder was for some reason had no owner or any permissions it was set to 000. I also changed the path to include .rasco Now my only problem is that on my front page i have more albums trying to be displayed than whats in my gallery.
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Thu Aug 14, 2003 3:49 pm Post subject:
After you have SETUP GALLERY permissions to that folder should be 0
The BLOCK is trying to display 5 albums but you only have 1. It's not designed to have less than 5. Either add 4 more albums or change the following in the BLOCK code:
while ($i<5) {
to
while ($i<1) {
However if you only have one album - it's not much use having a LATEST ALBUM BLOCK
Oh! I see. I am setting this up so eventually there will be more than one album. I am also still having problems with the site spewing out session errors. I am on a Mac running Safari and If I "reset safari" meaning it clears out everything then I get no errors. Until I reset it again. It also does it in all the other browsers I use. Camino, IE, Mozilla.. here is the error i get
Warning: open(/tmp/sess_98e680f9ea197f53d2df9f56a209b13f, O_RDWR) failed: Permission denied (13) in /home/.racso/ramseyr/kcvelo.com/modules/gallery/session.php on line 50
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum