| Author | Message |
| Post Title: Transferred existing Gallery to run under PHPNuke | |
AsianSkin
Joined: Sep 15, 2003 Posts: 4
|
Posted: Mon Sep 15, 2003 3:17 am
Hi All
I had an existing gallery which was working fine under html. I then installed PHP Nuke and wanted to incorporate Gallery to run under Nuke. So, I decided to take the plunge and copy the Gallery directory to the phpnuke/modules directory, all except for the albums directory which stayed in the root. I then uncHMODed what I needed to to re-run Gallery setup. Gallery setup worked fine. CHMODed everything back again. Activated module under Nuke Admin, again, fine. But I must have buggered something up along the way because I now get these errors: Quote: ›
Warning: fopen(/home/douglasr/public_html/albums/Maps/photos.dat.lock): failed to open stream: Permission denied in /home/douglasr/public_html/phpnuke/modules/Gallery/platform/fs_unix.php on line 55 Error: Could not open lock file (/home/douglasr/public_html/albums/Maps/photos.dat.lock)! Warning: fopen(/home/douglasr/public_html/albums/Maps/album.dat.lock): failed to open stream: Permission denied in /home/douglasr/public_html/phpnuke/modules/Gallery/platform/fs_unix.php on line 55 Error: Could not open lock file (/home/douglasr/public_html/albums/Maps/album.dat.lock)! and apart from these errors, not all of the albums will display now. Is there any way of saving my gallery? Perhaps it is as simple as CHMOD permissions ? Thanks if you can help me clean up the mess I made of my gallery ! Quote: › |
| Author | Message |
| Post Title: | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Sep 15, 2003 3:37 am
Unless you have 'hacked' the core code - delete your current GALLERY install (leave albums folder in root). Download the latest GALLERY (1.4pl). Upload to yoursite.com/module/gallery. Run SETUP WIZARD.
YOU WON'T LOOSE ANY PHOTOS! (as long as you don't delete the ALBUMS folder that contains your images) |
| Author | Message |
| Post Title: Re: Transferred existing Gallery to run under PHPNuke | |
MorphiuZ
Joined: Sep 09, 2003 Posts: 13
|
Posted: Mon Sep 15, 2003 6:50 pm
I have the same problem as him, i even completely deleted the previous install of gallery on my server, and i completely re-uploaded the gallery (i left the albums there) and i installed it yaddayddda yadda... install went great... then it gives me the same errors when i want to upload a picture or use the random image block for gallery
i get the following errors when i upload: Quote: › - Adding psx-pickle.jpg
Warning: copy(/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/album01/psx_pickle.jpg): failed to open stream: Permission denied in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/platform/fs_unix.php on line 24 Warning: getimagesize(/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/album01/psx_pickle.jpg): failed to open stream: No such file or directory in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/util.php on line 501 Error: Invalid image: psx_pickle.jpg! Need help? Look in the Gallery FAQ Warning: unlink(/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/album01/serial.2.dat): Permission denied in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/platform/fs_unix.php on line 77 Warning: fopen(/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/album01/photos.dat.lock): failed to open stream: Permission denied in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/platform/fs_unix.php on line 53 Error: Could not open lock file (/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/album01/photos.dat.lock)! Warning: fopen(/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/album01/album.dat.lock): failed to open stream: Permission denied in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/platform/fs_unix.php on line 53 Error: Could not open lock file (/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/album01/album.dat.lock)! Warning: fopen(/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/album01/serial.3.dat): failed to open stream: Permission denied in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/platform/fs_unix.php on line 53 Warning: fopen(/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/serial.dat): failed to open stream: Permission denied in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/platform/fs_unix.php on line 53 Now... when i try to use the random image block... here is the following error i get: Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/session.php on line 55 Warning: copy(/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/hourly.jpg): failed to open stream: Permission denied in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/platform/fs_unix.php on line 24 Warning: fopen(/home/httpd/vhosts/pickle-ent.com/httpdocs/albums/hourly.txt): failed to open stream: Permission denied in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/platform/fs_unix.php on line 53 Warning: fwrite(): supplied argument is not a valid stream resource in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/random_support.php on line 119 Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/pickle-ent.com/httpdocs/modules/gallery/random_support.php on line 120 and then of course it has a block-window w/ the random image in it... and the image is said to be in a different directory then it really is. WEIRD! Think you could help me as well? |
| Author | Message |
| Post Title: Re: Transferred existing Gallery to run under PHPNuke | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Sep 15, 2003 9:07 pm
Make sure ALL files in your ALBUMS directory has been chmod'd to 777
If you have shell access, you can fix it like this: cd /path/to/albums cd .. chmod -R 777 albums If you don't have shell access, you can use your FTP client to recursively (every file and every directory) chmod the albums directory 777. Make sure you chmod the .users directory, which can sometimes be hidden from view |
| Author | Message |
| Post Title: | |
MorphiuZ
Joined: Sep 09, 2003 Posts: 13
|
Posted: Mon Sep 15, 2003 9:12 pm
Ok...all folders are chmodded... but... you were right... i cant see .users directory... I'm using WinXP and my server is a Unix server... running apache.
I am using CuteFTP and/or WS_FTP pro... how can i view the .users directory? |
| Author | Message |
| Post Title: | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Sep 16, 2003 1:06 am
Using the cuteftp
Site Manager>Edit>General Tab>Check the "Enable Filter" box. Click on the Filter button beside it, on the Options tab, check "Enable remote filters" and add "-a" to the "Remote filter:" field. |
| Author | Message |
| Post Title: | |
MorphiuZ
Joined: Sep 09, 2003 Posts: 13
|
Posted: Tue Sep 16, 2003 1:06 pm
k!... i got ALL of those problems taken care of... everything seems to be working smoothly.... BUT... i got the old school popular "unable to make thumbnail (0)!" or somthing like that when i try to upload files...
here is my error: Quote: ›
Executing: home/httpd/vhosts/pickle-ent.com/modules/netpbm/giftopnm /home/httpd/vhosts/pickle-ent.com/httpdocs/albums/Controller/psxpickle.gif | home/httpd/vhosts/pickle-ent.com/modules/netpbm/pnmscale -xysize 150 150 | home/httpd/vhosts/pickle-ent.com/modules/netpbm/ppmquant 256 | home/httpd/vhosts/pickle-ent.com/modules/netpbm/ppmtogif > /home/httpd/vhosts/pickle-ent.com/httpdocs/albums/Controller/psxpickle.thumb.gif Results: none Error messages: sh: home/httpd/vhosts/pickle-ent.com/modules/netpbm/giftopnm: No such file or directory sh: home/httpd/vhosts/pickle-ent.com/modules/netpbm/pnmscale: No such file or directory sh: home/httpd/vhosts/pickle-ent.com/modules/netpbm/ppmquant: No such file or directory sh: home/httpd/vhosts/pickle-ent.com/modules/netpbm/ppmtogif: No such file or directory Status: 127 (expected 0) Error: Unable to make thumbnail (0)! sorry for the extensive error posting I've looked around the net for a solution..but i can't find anything that works I've installed the gallery binaries of netpbm... I've chmodded them to 755 (including the directory) and i got the path 100% right in the configuration... :/ if anything i'll use ImageMagick...but i have NO clue how to install it... (too many files... it scares me...lol) thanks for your help tho guys I run 3d Contests on my site...and i cant have my users upload their pics for the contest Hope all the info i gave helps |