Posted: Tue Apr 29, 2003 3:31 pm Post subject: Improved Random Block problems
Hello ~
After not being able to get the first random photo block to work despite meticulously checking and double-checking that I did everything I was instructed to do with editing the various files and whatnot, I deleted all the files related to the random block and used my original sessions.php file.
BTW, I'm using Nuke 6.5 and Gallery 1.3.3. The gallery and nuke have worked beautifully from the get-go.
Now I have uploaded the Improved Random Photo Block after making the required changes in the two files. I activated the block and positioned it on the right. The problem is that when the block is activated, the bottom of my website is completely cut off. No footer, no logo images at the bottom, no copyright information, nothing. No random photo block, either. When I positioned the random block above my "Who Is Where" block, it cut that off too.
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
Posted: Tue Apr 29, 2003 4:52 pm Post subject:
hmm...this may sound like a weird possible solution, but try it, it's worked for me on occasion.
if you're using a Un*x platform, programs can sometimes be picky if lines wrap around (ie, if you have your column limit set to 70 and the line wraps after that). I've found that by going through the file and getting rid of any wrapped lines can sometimes help things (it fixed a whole slew of problems with a php script i'm writing that autumatically creates a fax cover page). try it and see if it helps. if not, post back.
are these errors showing up when you're completely logged out (ie, not as a user or admin)?
have you double checked that you have the pathnames correctly specified, and that the trailing slash is included on them? ie:
This could be a PHP version issue, or the fact that you're using FrontPage Extensions (i have no idea what those are or what they do, so I'm not sure if this is valid or not). You might want to ask your host to upgrade PHP to 4.3.1 if not for solely the security fixes that are included with it.
The problem was my own fault ~ I did not have the gallery base directory path correct.
I installed the two files for the improved random photo block and activated the block. The only problem is that the block shows "No photo chosen." The album permission is for it to be viewable by everybody, and I checked that the path is indeed correct and I have the trailing slash. Could you tell me what another cause for this problem may be?
In random_support.php, I made certain this was correct as per your instructions: //$url .= "&op=modload&name=gallery&file=index&include=view_photo.php";//
//$albumURL .= "&op=modload&name=gallery&file=index&include=view_album.php";//
(The lines aren't commented out in the file, of course.)
The gallery directory in my website is spelled with a lowercase "g."
The gallery directory resides in the modules directory of my website.
The album directory resides in the root directory of my website. <--- Is that the problem? Are the albums supposed to reside in the gallery directory or something? If that's the case, then apparently my album directory is not properly set. However, Gallery itself works perfectly.
The trailing slashes are there, there is no capitalization error, the /*****/ is actually my account's username only changed to asterisks here for privacy's sake, and everything appears to be correct. The lines aren't commented out in the blocks-random.php file, of course.
this is what the top few lines of my block-random.php file looks like. make sure that all trailing slashes, and most importantly, semicolons at the end of the lines are all there.
my gallery resides inside my modules directory, and my albums are in my web server's root directory, so I know that isn't the issue.
make sure the album directory is owned by your webserver username (ie, apache, webserver, etc):
Code: › root@yankeesinthesouth:/home/httpd/htdocs # ls -l
total 3636
drwxr-xr-x 29 apache apache 4096 May 2 10:51 albums
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
Posted: Mon May 05, 2003 7:57 am Post subject:
to see what user/group owns the albums directory, go to your webserver root (or your account root, where the albums directory is stored), and type ls -l, and the output will be something similar to what i listed, but with a lot of other stuff (files, directories, etc) listed as well. Check for the album directory and see who is listed as the owning user and group. if it isn't the name of the webserver, you should do what i listed in the third code snippet to change it over.
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
Posted: Tue May 06, 2003 7:13 am Post subject:
if you right click on the column header of the remote server, you can choose "Long listing" and "File details" (select "owner"). unfortunately, although you can view the owner, if it isn't the name of the webserver, you won't be able to change it. if you have telnet/ssh access to the server, you might want to change it that way using the steps i outlined earlier.
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