There is a known bug in the latest version of WP-prettyPhoto that basically prevents it to work as intended. While you wait for an official fix, which will come soon, here is what you can do to make it work:
- First, identify the problem. Look at the source code of your page, within the prettyPhoto javascript stub, there is a value called “autoplay”. If that is not set to true or false, you have the bug.
- In your admin options, deactivate the plugin then reactivate it.
- Go in the WP-prettyPhoto options and change the value of “autoplay”, you can change it back later.
- Look at your source again, “autoplay” should be set and your pictures/videos should pop up nicely.
Thanks to Brad Keeling who reported the bug to me (as opposed to bitching on twelve different forums) and confirmed the fix.



January 23rd, 2010 at 3:41 pm
Still doesn’t work. I think I’ll go manually set it in the code.
January 23rd, 2010 at 3:51 pm
Hmmm… I manually changed it in the code and confirmed that it’s set properly on the page… and WP-prettyPhoto still doesn’t work.
Well, thanks to both of you for your efforts. I wish I could get it to work.
January 24th, 2010 at 10:26 pm
I’ve tried this as well and it’s not working. Hope to see the issue worked out soon.
January 25th, 2010 at 4:47 am
On a hunch, I went back, played some more with the solution and can confirm it works on 2.9.1.
I found the trick to be:
1. Install wp-prettyPhoto to WP’s plugin directory.
2. Activate it in WP’s Dashbaord.
3. Confirm a page/post with a link to an image is not launching wp-prettyPhoto.
4. Go back to WP’s Dashboard, to wp-prettyPhoto’s settings and select the following box: “True to Autoplay, False not to”
5. Go to the WP Dashboard Plugins area and deactivate wp-prettyPhoto.
6. Now enable it.
7. Do NOT change the “True to Autoplay, False not to” setting until a new version/fix comes along. If you do, like I did, you’ll have to deactivate the plugin and start from step 2 again.
*** It’s most important to follow steps 4,5, 6 exactly as I’ve described them (which is the downfall of the post above… it wasn’t exactly clear what to click, when).
Anyhoo, enjoy!
January 25th, 2010 at 4:50 am
8. You will notice wp-prettyPhoto now works, because wp-prettyPhoto’s javascript settings will change from this:
“ autoplay: , ”
to this:
” autoplay: 1, “
January 25th, 2010 at 9:36 am
I’ve tried this as well both ways checked… deactivate-activate and unchecked… deactivate-activate. Neither of these work for me. I’m using wpmu latest version for the record.
January 27th, 2010 at 10:54 am
line 436 of wp-prettyphoto.php
autoplay: {$wppp_autoplay},
should be:
autoplay: ‘{$wppp_autoplay}’,
change that and you should be good to go!
January 28th, 2010 at 5:44 am
I have a different problem – the images do not load completely. Have a look here for an example: http://weblang.pl/draft-page-2/
Any help would be appreciated. It’s a great plugin and it’s a real shame I can’t get it working
January 29th, 2010 at 9:47 am
@ Andrew
Unfortunately for me this is still a no go…
Anticipating a fix =)
January 29th, 2010 at 11:14 am
did the plugin work on the wp galleries images that link to the file?
it is not working now and i am not sure if this is going to be solved in a upcoming fix or it was never meant to do that.
it works if its a image inserted in a post just not on images inserted with the gallery function of wp.
thanks
Cezar
January 29th, 2010 at 12:46 pm
@ dgodfather
load up firebug on firefox and goto the console tab… if there is a problem it should spit out and error. thats how i fixed my issue with the autoplay.
January 29th, 2010 at 8:25 pm
Loaded it up, fixed the errors and still nothing…
Thanks for trying to help out!
February 1st, 2010 at 3:58 pm
me again,
i see there was no answer to my previous question. i hope it isn’t because i was unclear in my question.
thanks,
Cezar
February 2nd, 2010 at 2:41 pm
Ansel, thanks for making that a bit more clear (it helped). It actually uses the prettyPhoto pop-up window now.
However, the images don’t display in the pop-up. The pop-up window is the correct size for the image it would display, but I’ve tried several different images and file types and is still doesn’t display.
Anyone have an idea??
February 5th, 2010 at 10:51 am
Hi, I tried Ansel Taft’s fix and I get the following error when clicking on an image: Image cannot be loaded. Make sure the path is correct and the image exists
Of course I made sure the image exists and the path is correct: when copied and pasted the path in the browser’s address bar the image comes up.
February 5th, 2010 at 10:58 am
This’ll be fixed in an upcoming release, most likely this weekend (Feb 6th-7th). Stay tuned.
February 5th, 2010 at 8:51 pm
WP 2.9 won’t even let me install… manually, or otherwise. Error no matter what I do. Just says the uploaded file cannot be moved.
I’ve tried everything, almost. Sucks, because Prettyphoto FTW, as far as I’m concerned.
February 5th, 2010 at 8:56 pm
Ok, now it says…. (reported on line 21)
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’
Help, anyone?
February 6th, 2010 at 1:54 pm
@Steve: You’re having two problems. Your server is all messed up or running something pretty weird, which causes the FTP problem – you could be out of disk space or something like that. As for the other error, that is documented and the cause is you’re running PHP4 which is widely considered deprecated. WP-prettyPhoto does not and will not support it.
February 7th, 2010 at 2:09 am
I installed a new wordpress theme that requires wp-prettyphoto, and I am also getting the same error:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’
My godaddy hosting is using php4, so does this mean then that by upgrading to php 5 the plugin will work?
Thanks for your response.
February 10th, 2010 at 9:03 am
@pluc – You’re awesome. I flipped my PHP toggle to PHP5, and bing, bam, boom… fixed. Works awesome. I totally love it. Thanks a ton for helping me figure this out… I was stumped. Virtual hi five to you!
@Kim – Yeah, you need to switch to PHP version 5, and get off of the crap GoDaddy hosting. Switch over to Mediatemple’s Grid Server service; it’’s awesome… I’ve put a number of clients on it. If you switch to MT’s GS, make me the referrer (rovettidesign.com), and I get a free month of hosting, and you get a good feeling inside that you’ve helped me manage my studio costs… LOL
February 10th, 2010 at 10:47 am
I have the same issue as Tyler: lightbox opens, but image is not displayed. Close the box and briefly see the image which looks like it has been hiding behind the lightbox background. Anyone else seen this? Happens with all file types and prettyPhoto themes for me
February 10th, 2010 at 11:25 am
Great!! I was just thinking what was wrong while I tried to update a page of a client of mine. Super!! Fixed worked as a charm. Keep up the good work, love PrettyPhoto!
February 15th, 2010 at 11:43 pm
I’m sorry, but mine is fubar’d.
http://www.didgefestival.com/?page_id=2
Any ideas?
February 18th, 2010 at 9:11 pm
I’ve got a different problem: at one point, the flash contents which I have uploaded and linked appear as “?t/uploads/2010/02/videoplayer-3.swf”, with that strange question mark in place of “wp-conten”.
I think there are some hidden replace routines which break my code. I don’t get how to solve this.
Bye,
Luca
February 19th, 2010 at 11:59 am
Folks, if you experience issues, please post on the support forum – http://is.gd/8JgR1 – thank you.
March 10th, 2010 at 10:16 pm
I have just got a blog and use about 50 different plugins. Thank you very much for your plugin. It complete my website
May 12th, 2010 at 11:23 pm
I am having the same problem that Will described on Feb. 10th, above.. Was there any idea how to resolve this issue? I just uploaded the prettyPhoto plugin today and immediately was not working.
May 13th, 2010 at 12:40 pm
@Sitka Was never able to reproduce the bug. Can I see it in action somewhere?
May 24th, 2010 at 1:29 am
Hi, I went to activate the plugin, but it won’t activate because of this error message I’m getting.
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /data/0/0/18/81/18407/user/19921/htdocs/wp-content/plugins/wp-prettyphoto/wp-prettyphoto.php on line 21
thanks for your help
July 7th, 2010 at 7:17 pm
I’m getting the same error when I try to “Activate” the PlugIn:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /data/0/0/18/81/18407/user/19921/htdocs/wp-content/plugins/wp-prettyphoto/wp-prettyphoto.php on line 21
I recently upgraded to WP3.0. Maybe it’s a new issue.
July 7th, 2010 at 7:20 pm
It’s not a new issue. It’s more than time you upgrade to PHP5.
July 12th, 2010 at 5:19 pm
The newest version does not work on a Wordpress 3 multiblog system
Clicking on an image just causes … nothing