| Author |
Message |
AsianSkin
Beginner


Joined: Sep 15, 2003 Posts: 4
|
Posted: Mon Sep 15, 2003 3:17 am Post subject: Transferred existing Gallery to run under PHPNuke |
|
|
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: › |
|
| Back to top |
|
|
AdBot
|
| Post subject: Transferred existing Gallery to run under PHPNuke |
|
|
|
|
|
| Back to top |
|
 |
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Sep 15, 2003 3:37 am Post subject: |
|
|
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) |
|
| Back to top |
|
|
MorphiuZ
Beginner


Joined: Sep 09, 2003 Posts: 13
|
Posted: Mon Sep 15, 2003 6:50 pm Post subject: Re: Transferred existing Gallery to run under PHPNuke |
|
|
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? |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Sep 15, 2003 9:07 pm Post subject: Re: Transferred existing Gallery to run under PHPNuke |
|
|
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 |
|
| Back to top |
|
|
MorphiuZ
Beginner


Joined: Sep 09, 2003 Posts: 13
|
Posted: Mon Sep 15, 2003 9:12 pm Post subject: |
|
|
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? |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Sep 16, 2003 1:06 am Post subject: |
|
|
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. |
|
| Back to top |
|
|
MorphiuZ
Beginner


Joined: Sep 09, 2003 Posts: 13
|
|
| Back to top |
|
|
|
|
|
|
|