Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Parse Error??
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Author Message
ramsey

Beginner
Beginner


Joined: Aug 14, 2003
Posts: 11

PostPosted: Thu Aug 14, 2003 1:31 pm    Post subject: Parse Error?? Reply with quote

<

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
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Parse Error??  

Back to top
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Aug 14, 2003 1:38 pm    Post subject: Reply with quote

define(ALBUM_DIRECTORY,"/home/kcvelo.com/albums/");

Is that right?

Should it not be:

define(ALBUM_DIRECTORY,"/home/ramseyr/kcvelo.com/albums/");

or:

$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/");
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ramsey

Beginner
Beginner


Joined: Aug 14, 2003
Posts: 11

PostPosted: Thu Aug 14, 2003 1:49 pm    Post subject: Reply with quote

Quote: ›
="slackbladder"]define(ALBUM_DIRECTORY,"/home/kcvelo.com/albums/");

Is that right?

Should it not be:

define(ALBUM_DIRECTORY,"/home/ramseyr/kcvelo.com/albums/");


You are correct. I changed that cleared out cache and I still get the same error. I can't figure this out.

Ramsey
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Aug 14, 2003 1:53 pm    Post subject: Reply with quote

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/
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ramsey

Beginner
Beginner


Joined: Aug 14, 2003
Posts: 11

PostPosted: Thu Aug 14, 2003 2:16 pm    Post subject: Reply with quote

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

define(GALLERY_NAME,"gallery");

I'm stumped
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Aug 14, 2003 2:23 pm    Post subject: Re: Parse Error?? Reply with quote

Create a blank phpinfo.php file:

Place the following code in to it:

Code: ›
<?php
phpinfo();
?>


Save, upload to your webspace, then call it from your browser. It will tell you your server paths (if your host hasn't disable the function that is!!)

Delete the file after use!! (security risk)
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ramsey

Beginner
Beginner


Joined: Aug 14, 2003
Posts: 11

PostPosted: Thu Aug 14, 2003 2:40 pm    Post subject: Reply with quote

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
******************

Does this help?

Ramsey
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Aug 14, 2003 2:55 pm    Post subject: Reply with quote

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\"];");
}
}
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ramsey

Beginner
Beginner


Joined: Aug 14, 2003
Posts: 11

PostPosted: Thu Aug 14, 2003 3:05 pm    Post subject: Reply with quote

slackbladder wrote: › 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\"];");
}
}
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.
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Aug 14, 2003 3:11 pm    Post subject: Re: Parse Error?? Reply with quote

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/");
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ramsey

Beginner
Beginner


Joined: Aug 14, 2003
Posts: 11

PostPosted: Thu Aug 14, 2003 3:22 pm    Post subject: Reply with quote

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?

Thanks
Ramsey
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Aug 14, 2003 3:28 pm    Post subject: Reply with quote

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/)
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ramsey

Beginner
Beginner


Joined: Aug 14, 2003
Posts: 11

PostPosted: Thu Aug 14, 2003 3:42 pm    Post subject: Reply with quote

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.
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Aug 14, 2003 3:49 pm    Post subject: Reply with quote

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 Smile
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ramsey

Beginner
Beginner


Joined: Aug 14, 2003
Posts: 11

PostPosted: Thu Aug 14, 2003 3:57 pm    Post subject: Reply with quote

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

Thanks
Ramsey
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Goto page 1, 2  Next

 
Jump to:  
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia