Title: Javascript Image Gallery Not Working
Last modified: August 20, 2016

---

# Javascript Image Gallery Not Working

 *  [mark2](https://wordpress.org/support/users/mark2/)
 * (@mark2)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/javascript-image-gallery-not-working/)
 * Hi All,
 * I’m having an issue with my image gallery… The thumbnails for the images are 
   working fine, however, I’ve lost all functionality of being able to browse through
   the image gallery. (See link for an example: [http://contractsupply.mark2marketing.com/products/metal-chairs/pt-006/](http://contractsupply.mark2marketing.com/products/metal-chairs/pt-006/)).
   You should be able to click on the image, which should generate a larger version,
   but it’s not working.
 * I should also note that this site was transferred from my local computer to the
   server. This issue did not happen on the local version of the site…
 * When looking at the source code, I also noticed that on the Javascript used to
   generate the image gallery, there are differences between the live & local version
   of the site.
 * Live (Not Working):
    `href="javascript:ShowGallery('', 'http://contractsupply.
   mark2marketing.com/wp-content/uploads/2011/01/PT006childseatlarge.jpg', 'picture',,)`
 * Local (Working):
    `href="javascript:ShowGallery('', 'http://localhost/contractsupply/
   wordpress/wp-content/uploads/2011/01/PT006childseatlarge.jpg', 'picture', 363,
   268)`
 * Note the _363, 268_ (which are the image dimensions) missing from the live version.
   I’m thinking this is the problem… could it be that when I backed up the database
   from my local, these values didn’t get backed up?
 * Any help would be much appreciated… thanks!

Viewing 1 replies (of 1 total)

 *  [cazwilson09](https://wordpress.org/support/users/cazwilson09/)
 * (@cazwilson09)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/javascript-image-gallery-not-working/#post-2307464)
 * I’ve had a similar problem in the last couple of weeks with 2 different sites
   on different servers. All of a sudden (due to a WordPress upgrade?) the thumbnails
   were linking to a new web page showing the larger image, rather than the popup
   viewer.
 * I have fixed them now, but in and adhoc manner – one of them had Gallery Cleaner
   installed. I deactivated it, no help, then reactivated it, and it now works fine.
 * The other, didn’t have Gallery Cleaner installed. I installed and activated it
   which fixed the popup situation, but the 3 column layout was now appearing as
   one column, even though 3-column script was present. I deactivated Gallery Cleaner
   again. Fixed layout but popup not working. Activated it again, back to one column
   layout. Deactivated again – everything fine!
 * Neither site used any other gallery plugins. Just the default WordPress plugin.
 * Sure all’s working fine for now, but that’s just a bit buggy and inconsistent.
   I thought it worth reporting.

Viewing 1 replies (of 1 total)

The topic ‘Javascript Image Gallery Not Working’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [cazwilson09](https://wordpress.org/support/users/cazwilson09/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/javascript-image-gallery-not-working/#post-2307464)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
