Cannot add photos from local server?

GFXDude2010

Joined: 2009-06-20
Posts: 15
Posted: Mon, 2009-07-06 00:19

I've only got this to work one time, and after that it hasn't worked since.

I log in, go to the album I want to add the pictures to, and click add items.

Next I select From Local Server and choose /home/.debrief/eswau/gallery.eswau.org/images/Albums/Patches/Flaps/1964-1977 which is the path which I uploaded the photos to for the album 1964-1977. The pictures are there.

Then I click Find Files. It finds the files, and I check the "Check All Known Types" box, then hit Add Files (I leave Titles and Create Thumbnails Now both checked).

Then it sits on a loading screen... I've attached a screenshot of the screen I get.

Any Ideas?

Thanks!

AttachmentSize
ugh.JPG29.6 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Mon, 2009-07-06 03:15

FAQ: What information is required when I ask for help in the forums?
php info link
toolkits that are activated and the priority?
disable the exif module.

/home/.debrief/eswau/gallery.eswau.org/images/Albums should not be the same path as your g2data

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
GFXDude2010

Joined: 2009-06-20
Posts: 15
Posted: Mon, 2009-07-06 10:26

Gallery version: 2.3
PHP version: 5.2.6
PHPInfo Link: http://www.gallery.eswau.org/phpinfo.php
Webserver: Apache 2.0.54
Database: 5.something...
Activated toolkits: Ffmpeg, Gd, ImageMagick, Jpegtran, NetPBM1
Operating system: Debian
Browser: Firefox

Toolkits:
Ffmpeg
Gd
ImageMagick
Jpegtran
NetPBM

Priority:
NetPBM
Gd
ImageMagick

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Mon, 2009-07-06 14:05

Since you have IM and NetPBM I would disable and uninstall GD. Move IM to the top of the priority list.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
GFXDude2010

Joined: 2009-06-20
Posts: 15
Posted: Mon, 2009-07-06 22:39

I did what you suggested, and it still doesn't work...

If you want to see what I mean check this link: http://www.gallery.eswau.org/main.php?g2_itemId=1076

Any other ideas?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-07-07 01:22

Please re-run the system info under Site Admin > Maintenance and post what's there now. Click Run Now to refresh that data.

Please put gallery into debug mode and try uploading an image or rebuilding an album by clicking on Edit Album > Album (tab) and selecting the appropriate options to rebuild the thumbs and resized versions, then click Save.

Copy and paste the debug output into a plain text file (notepad), zip it and attach to this thread.
FAQ: How to set/use Gallery in debug mode?

If we don't see what's wrong from that info then Dave or I might ask for login details to take a closer look.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
GFXDude2010

Joined: 2009-06-20
Posts: 15
Posted: Tue, 2009-07-07 11:22

System information Tue 07 Jul 2009 04:17:48 AM PDT Success
Get system details; useful for copy/paste into G2 support forum.
Last Run Details:

Gallery URL = http://www.gallery.eswau.org/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 cgi-fcgi
Webserver = Apache
Database = mysqli 5.0.67-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, jpegtran, LinkItemToolkit, NetPBM, Thumbnail, ImageMagick, SquareThumb
Acceleration = none, none
Operating system = Linux quimby 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+tg+++opt+c8+gr2b-v6.194 #1 SMP Tue Jun 6 15:52:09 PDT 2006 i686
Default theme = classic
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)
Rows in GalleryAccessMap table = 31
Rows in GalleryAccessSubscriberMap table = 24
Rows in GalleryUser table = 2
Rows in GalleryItem table = 23
Rows in GalleryAlbumItem table = 14
Rows in GalleryCacheMap table = 0

I tried adding items, and it still didn't work in debugging mode. I attached the information from the debug popup when I clicked "Find Files" after selecting the directory on the server, I attached the information from the debug popup when I clicked "Add Items" and I also included the information that was on the same screen as the "Adding Items" loading bar. On that page, it said GalleryPlatform.class was missing in /gallery.eswau.org/modules/core/classes, but I've attached a screen shot showing that the file is infact there...

Hope this helps!

AttachmentSize
when_clicked_add_files(on same screen as loading bar).txt23.21 KB
when_clicked_find_files.txt27.19 KB
when_clicked_add_files(debug popup).txt24.03 KB
debug.JPG115.89 KB
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-07-07 15:30

FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?

Double and triple check the permissions on your g2data directory and it's sub-directories. Make sure that the user the web server or PHP is run as has permission to change those directories.

Which would explain both problems you were having.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-07-07 15:34

Oh and I'm also seeing this messsage:

Quote:
Warning: copy(/home/.debrief/eswau/gallery.eswau.org/g2data/albums/Patches/Flaps/1964 - 1977/s1a.jpg) [function.copy]: failed to open stream: No such file or directory

Why is there a forward slash in your file name? That's not a legal character for a file name that I know of in any operating system I've used. If that file is there, I'm not sure how you got the slash in the name, but Gallery and any other program I've ever used isn't going to like that. The server should have in fact puked when you tried to name it that.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
GFXDude2010

Joined: 2009-06-20
Posts: 15
Posted: Tue, 2009-07-07 23:50

A forward slash in the file name? The filename is s1a.jpg, 1964-1977 is the directory. I've set 777 as the file permissions for g2data just to make sure there isn't a conflict there. Someting I did just notice is the space before and after the dash in 1964-1977. I think that could be the problem! On the server there are no spaces there.

 
GFXDude2010

Joined: 2009-06-20
Posts: 15
Posted: Wed, 2009-07-08 00:10

Ugh I'm confused, am I supposed to upload the images I want in the g2data path? Because I had them there initially, then moved them to /Images/Albums but it's still trying to read from g2data/albums....

EDIT: Okay I just said screw it, did a fresh install, and made sure I uploaded everything correctly, and got it working! Thanks to all that helped the new guy out!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-07-08 00:06

oh man, I really wasn't looking that close or getting crossed-eyed....

Yeah, this is odd:

Quote:
copy(/home/.debrief/eswau/gallery.eswau.org/images/Albums/Patches/Flaps/1964-1977/s1a.jpg, /home/.debrief/eswau/gallery.eswau.org/g2data/albums/Patches/Flaps/1964 - 1977/s1a.jpg)

See it's doing the copy operation from where you upload into your g2data, but adding a space around the dash for the directory name.

Does the album, Patches/Flaps/1964 - 1977 already exist in your Gallery? Are you adding these from a zip file that contains these directories or is /images/Albums/Patches/Flaps/1964-1977 an existing directory that's listed as a legal path for the "From Local Server" import method?

I'll have to test that on my server to see if I get the same behavior. Can you try taking the dash out and see if that makes a difference?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-07-08 00:09
Quote:
am I supposed to upload the images I want in the g2data path? Be

NO, that won't work. Don't touch or mess with anything under g2data and you should be fine. Let Gallery deal with all that.

Quote:
Because I had them there initially, then moved them to /Images/Albums but it's still trying to read from g2data/albums....

Ah. How about deleting all the albums you have in Gallery through Gallery's interface by clicking on Delete Album

Then make sure that the g2data/albums directory is empty. It shouldn't contain anything at that point, if it does, delete (well move) those files/directories some place else.

Now try creating albums through Gallery's interface by clicking Add Album, and importing pictures from the Local Server that way from your /images/albums/.... path.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
GFXDude2010

Joined: 2009-06-20
Posts: 15
Posted: Wed, 2009-07-08 00:17
Quote:
Ah. How about deleting all the albums you have in Gallery through Gallery's interface by clicking on Delete Album

Then make sure that the g2data/albums directory is empty. It shouldn't contain anything at that point, if it does, delete (well move) those files/directories some place else.

Now try creating albums through Gallery's interface by clicking Add Album, and importing pictures from the Local Server that way from your /images/albums/.... path.

Heh that's exactly what I did and I've got it working now! I think that I initially uploaded everything to g2data the moved them, the album names were still there, well some of them atleast. It's working great now! Sorry for all the trouble! And thanks for the great help!