Title: Lightbox doesn&#039;t work
Last modified: August 21, 2016

---

# Lightbox doesn't work

 *  Resolved [Laurent](https://wordpress.org/support/users/mrllp/)
 * (@mrllp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/)
 * Hello,
 * First of all thank you for you great plugin, it’s easy to use and to configure.
   Altough I have one small problem, when I click on the pictures, they don’t open
   in a lightbox frame but directly open the image file.
 * Regarding the “Link image to” option, if I select the attachment page it works
   but Lightbox display doesn’t.
 * Do you have an idea of what I can do to solve that ?
 * Here’s the link to my gallery : [http://www.matthiasandsea.be/albums/galerie-photo](http://www.matthiasandsea.be/albums/galerie-photo)
 * Thank you in advance,
    MrLLp
 * [http://wordpress.org/plugins/easy-photo-album/](http://wordpress.org/plugins/easy-photo-album/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [TV productions](https://wordpress.org/support/users/tv-productions/)
 * (@tv-productions)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219402)
 * It seems that an other plugin adds an old version of jQuery to the webpage (version
   1.4.4), while Easy Photo Albums uses version 1.10.2. jQuery 1.10.2 is included
   on the right page, but that plugin overrides it.
 * _A part of the head of your url:_
 *     ```
       <!-- Portfolio Slideshow-->
       <noscript><link rel="stylesheet" type="text/css" href="http://www.matthiasandsea.be/wp-content/plugins/portfolio-slideshow/css/portfolio-slideshow-noscript.css?ver=1.5.1" /></noscript><script type="text/javascript">/* <![CDATA[ */var psTimeout = new Array();  var psAutoplay = new Array();  var psFluid = new Array(); var psTrans = new Array(); var psSpeed = new Array(); var psLoop = new Array();/* ]]> */</script>
       <!--//Portfolio Slideshow-->
   
       <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
       <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
       <script>
       var $j2 = jQuery.noConflict();
       ```
   
 * The problem is: `<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/
   jquery.min.js"></script>`. I don’t know which plugin adds this code, so you have
   to find out by yourself. The best solution would be to remove or update that 
   plugin (it uses not the right functions to insert the jQuery code).
 * _An other solution_
    Open the file `EPA_PostType.php` (probably in `wp-content/
   plugins/easy-photo-album/`. Search for the next lines of code (starting at line
   486):
 *     ```
       wp_enqueue_script ( 'lightbox2-js', plugins_url ( 'js/lightbox.js', __FILE__ ), array (
       	                                                'jquery'
       	                                ), '2.6', true );
       ```
   
 * and replace it with:
 *     ```
       wp_enqueue_script ( 'lightbox2-js', plugins_url ( 'js/lightbox.js', __FILE__ ), array (
       	                                                'jquery'
       	                                ), '2.6', false );
       ```
   
 * Save the file to your server.
    I don’t know for sure if this works, but you can
   try. WARNING: you have do this again after every update of Easy Photo Album!
 *  Thread Starter [Laurent](https://wordpress.org/support/users/mrllp/)
 * (@mrllp)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219458)
 * Hello,
 * Thank you very much for having a look at my problem.
    Indeed, it was that old
   jQuery that prevent lightbox to work right. I removed it directly from the header.
   php since it wasn’t used by a plugin but by the photo slider that I manually 
   implemented.
 * Again, thank you for finding the solution, I will definitely use your nice plugin
   in my future WordPress sites 😉
 * Greets,
    MrLLp
 *  [Testing](https://wordpress.org/support/users/zull/)
 * (@zull)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219537)
 * Hi,
    I have the same problem here: [http://az-demos.com/jhon/#galeria](http://az-demos.com/jhon/#galeria)
 * I change the line in EPA_PostType.php source but nothing..
    Can you help me?
 *  Plugin Author [TV productions](https://wordpress.org/support/users/tv-productions/)
 * (@tv-productions)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219538)
 * [@testing](https://wordpress.org/support/users/testing/)
 * It seems that the required css and javascript isn’t included on the page. You
   can try to enable the option `in main loop` on the settings page. If that doesn’t
   work, I need more information about how your theme works before I can help you.
 *  [Testing](https://wordpress.org/support/users/zull/)
 * (@zull)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219539)
 * Hi, I add the css & javascript and now is working =)
 * But when I want delete some images from any album I got this error:
    Warning:
   Invalid argument supplied for foreach() in /home/azdemos/public_html/jhon/wp-
   content/plugins/easy-photo-album/EPA_PostType.php on line 383 Warning: Cannot
   modify header information – headers already sent by (output started at /home/
   azdemos/public_html/jhon/wp-content/plugins/easy-photo-album/EPA_PostType.php:
   383) in /home/azdemos/public_html/jhon/wp-includes/pluggable.php on line 899
 * I have onlu 2 albums with 3 images… but I can’t check and delete any image of
   the albums. Is something wrong?
 *  Plugin Author [TV productions](https://wordpress.org/support/users/tv-productions/)
 * (@tv-productions)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219540)
 * [@testing](https://wordpress.org/support/users/testing/)
 * It seems you’ve found a bug! Thank you for that. I was able to reproduce it and
   now I’ve fixed for the next release.
 * Just to help you out: delete those two albums and create a new one and do what
   you want.
 *  [fxonline](https://wordpress.org/support/users/fxonline/)
 * (@fxonline)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219551)
 * Hello,
 * I have a problem about lightbox view. My web site address is [http://www.ena-med.com/cok-kullanimlik-fibrin-ignesi.html](http://www.ena-med.com/cok-kullanimlik-fibrin-ignesi.html).
   When I click an image for lightbox view, Lightbox display doesn’t work.
 * Do you have an idea of what I can do to solve that ?
 * Best Regards,
 *  Plugin Author [TV productions](https://wordpress.org/support/users/tv-productions/)
 * (@tv-productions)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219552)
 * [@fxonline](https://wordpress.org/support/users/fxonline/)
 * In my browsers (latest versions of Firefox, Chrome and Internet Explorer) does
   the Lightbox work at your website.
 *  [Mela_k](https://wordpress.org/support/users/mela_k/)
 * (@mela_k)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219557)
 * Hello, i use your plugin on a website that i’m currently developping. I think
   it’s really great but unfortunately, the lightbox doesnt work.
 * Here is a page where your plugin is used:
 * [http://www.cinevideo816.be/RCV/albums/federation-des-cineastes-et-videastes-francophones-de-belgique/](http://www.cinevideo816.be/RCV/albums/federation-des-cineastes-et-videastes-francophones-de-belgique/)
 * Can you help me ?
 * Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Lightbox doesn't work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-photo-album_babfd0.svg)
 * [Easy Photo Album](https://wordpress.org/plugins/easy-photo-album/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-photo-album/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-photo-album/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-photo-album/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-photo-album/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-photo-album/reviews/)

 * 9 replies
 * 5 participants
 * Last reply from: [Mela_k](https://wordpress.org/support/users/mela_k/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/lightbox-doesnt-work-4/#post-4219557)
 * Status: resolved