Title: problem with lightbox plugin
Last modified: August 18, 2016

---

# problem with lightbox plugin

 *  [tales](https://wordpress.org/support/users/tales/)
 * (@tales)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/problem-with-lightbox-plugin/)
 * Hi, after upgrade WP my lightbox plugin stops working.
    I found some clues about
   the problem. On the wp-lightbox2.php file there is one function above:
 * `function wp_lightbox2_replace($string) {
    $pattern = '/(<a><img)/ie'; $replacement
   = '(strstr("25","rel=") ? "1" : "</a><a><img")'; return preg_replace($pattern,
   $replacement, $string); }"  It seems that this function looks for the string 
   href=” and img on the page and put the code rel=”lightbox” on it.
 * But on WP 2.1 the when i looked at the page code, i found links like: <img src
   =’http:/….>
    As far as i understood the functon looks for <img src=”[http://&#8230](http://&#8230);..
   > So the plugin looks for ” and wp 2.1 uses links with ‘ Can anyone give me a
   help tho solve this issue?

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/problem-with-lightbox-plugin/#post-510769)
 * You probably need to upgrade to the latest version.
    Lightbox ([http://www.m3nt0r.de/blog/lightbox-wordpress-plugin/](http://www.m3nt0r.de/blog/lightbox-wordpress-plugin/))
   2.0 Plugin 0.6 Final
 *  Thread Starter [tales](https://wordpress.org/support/users/tales/)
 * (@tales)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/problem-with-lightbox-plugin/#post-510800)
 * Hi, samboll.. I tried the 0.6 and the 0.63 without success.
    Every image that
   i upload to a post the image url goes like <img src=’[http://&#8230](http://&#8230);./
   file.jpg’> whith single cotes on the image url, if i manualy edit the tag changig
   the single for double cotes like <img src=”[http://&#8230](http://&#8230);./file.
   jpg”> makes the lightbox works fine.
 * I’ve just testes right now, created an test post uploaded an image and the url
   was created with single cotes.
 * [http://talesparreiras.com/blog/2007/01/25/test-post/](http://talesparreiras.com/blog/2007/01/25/test-post/)
 * in this case the plugin not works, bus if i manuly edit the url changing the 
   cotes it will work.
 * How to make the WordPress post using double cotes like in older versions?

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

The topic ‘problem with lightbox plugin’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [tales](https://wordpress.org/support/users/tales/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/problem-with-lightbox-plugin/#post-510800)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
