Title: Stack Overflow on [gallery]
Last modified: August 19, 2016

---

# Stack Overflow on [gallery]

 *  [shirgans](https://wordpress.org/support/users/shirgans/)
 * (@shirgans)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/stack-overflow-on-gallery/)
 * Hi,
 * I am using WAMP as localhost on my pc, and upload all data to the hosting (using
   IIS 6.0). I am using [lightbox gallery ](http://wordpressgogo.com/development/lightbox-gallery.html)
   in one post, and in the sidebar, to show recent photos from that gallery (on 
   the sidebar). my code on the sidebar as follows:
 *     ```
       echo do_shortcode('[gallery id="66" size="large" columns="4" num="12" pagenavi="0"]');
       ```
   
 * this works great on my WAMP, but causing **stack overflow **on the hosting… when
   I leave it on the sidebar just as
 *     ```
       [gallery]
       ```
   
 * it works (but showing the photos from the current page… so it’s not really working.
   Actually the only thing seems to cause this problem is `id="66"` which call the
   photos from post id 66…
 * Suggestions are most welcome !
 * Thanks

The topic ‘Stack Overflow on [gallery]’ is closed to new replies.

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [iis](https://wordpress.org/support/topic-tag/iis/)
 * [stack overflow](https://wordpress.org/support/topic-tag/stack-overflow/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [shirgans](https://wordpress.org/support/users/shirgans/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/stack-overflow-on-gallery/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
