[SOLVED] Add Item From Browser not working but other methods work fine (Matrix Theme)

fluginator

Joined: 2013-02-27
Posts: 4
Posted: Thu, 2013-02-28 03:09

I use the Matrix Theme for my whole website and until 1 week ago was able to use the "Add items" "From web browser" option in Gallery2 with no problem. I updated my server and updated my gallery version from 2.2 to 2.3 and that's when it seems to have stopped working.

What happens is, once I click "Add Items" the Progress bar shows up and does not move. The page sites there indefinitely. I have performed some investigating and I can add items by any other means such as from local server and the applet. I performed a test where I created an album that used another theme (slider). I can add Items From Web Browser successfully in other themes even ... just not my default Matrix theme :(

If your wondering if it is a php issue:
"Note: You can upload up to 30 megabytes at one time. No individual file may be larger than 20 megabytes. If you want to upload more than that, you must upload the files separately, use a different upload format, or ask your system administrator to allow larger uploads."
Any test image has been under 2MB
I did notice I have a php.ini and a php.inirpmnew. Not sure what that's about.

Gallery URL = http://www.jaredsphotos.info/main.php
Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.22 apache2handler
Webserver = Apache/2.2.3 (CentOS)
Database = mysqli 5.0.95, lock.system=flock
Toolkits = Exif, Getid3, LinkItemToolkit, Thumbnail, ArchiveUpload, Ffmpeg, ImageMagick, jpegtran, Gd, NetPBM, Dcraw
Acceleration = partial/21600, partial/21600
Operating system = Linux localhost.localdomain 2.6.18-348.1.1.el5.centos.plus #1 SMP Tue Jan 22 19:16:31 EST 2013 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17
Rows in GalleryAccessMap table = 27
Rows in GalleryAccessSubscriberMap table = 4307
Rows in GalleryUser table = 2
Rows in GalleryItem table = 4259
Rows in GalleryAlbumItem table = 67
Rows in GalleryCacheMap table = 140

 
fluginator

Joined: 2013-02-27
Posts: 4
Posted: Thu, 2013-02-28 03:13

Please note also that there are no error message that show up in my browser. I had put the gallery in debug mode also and no errors. I checked my php error log and my general server error log and nothing :(

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-02-28 05:01

Sounds like when you upgraded not all files were overwritten/updated
FAQ: How can I make sure that my installation files are all intact?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
fluginator

Joined: 2013-02-27
Posts: 4
Posted: Thu, 2013-02-28 14:24

I'm afraid that does not seem to be the case
"System Checks
PHP Version Success
FILE Directive Success
Safe Mode Success
exec() allowed Success
set_time_limit() allowed Success
Memory limit (64Mb) Success
File uploads allowed Success
Maximum upload size (20Mb) Success
Maximum POST size (30Mb) Success
Translation support Success
Gallery file integrity Success
"

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-02-28 14:47
Quote:
I can add Items From Web Browser successfully in other themes even ... just not my default Matrix theme :(

All themes share the same core templates for itemAddFromBrowser gallery2/modules/core/templates/ItemAddFromBrowser.tpl
So if it works in one theme it should work in all.
Try activating the developer's tools in chrome or use Firebug in Firefox to see if there are javascript errors or check the net tab for errors.

All I can do is guess without actually testing your site.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
fluginator

Joined: 2013-02-27
Posts: 4
Posted: Thu, 2013-02-28 15:32

Thanks so much for pointing me in the right direction. I activated the developer tools and noticed that the page was hanging on a script. I had forgotten I had added a fotomoto script a short time ago in my local theme.tpl file. Anyway I reverted back to the default theme.tpl gallery file for the Matrix theme and Add Items from web browser works fine. I re-added all my customizations to the theme.tpl file (except for the fotomoto script) and the add items is still working :)

I added the fotomoto script to the very end of the them.tpl file (just before the /body tag). After clearing my template cache to make sure I was using my "new" customized theme.tpl file, I successfully added some photos using the "Add Items" "From Web Browser". So I must have placed the script in the wrong location before causing it to hang when adding photos.