Saturday, January 23rd, 2010 | Author: pluc | Views: 1,976

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:

  1. 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.
  2. In your admin options, deactivate the plugin then reactivate it.
  3. Go in the WP-prettyPhoto options and change the value of “autoplay”, you can change it back later.
  4. 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.


Category: WP-prettyPhoto
You can leave a response, or trackback from your own site.

33 Comments

  1. Still doesn’t work. I think I’ll go manually set it in the code. :(

  2. 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.

  3. I’ve tried this as well and it’s not working. Hope to see the issue worked out soon.

  4. 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!

  5. 8. You will notice wp-prettyPhoto now works, because wp-prettyPhoto’s javascript settings will change from this:
    “ autoplay: , ”
    to this:
    ” autoplay: 1, “

  6. 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.

  7. line 436 of wp-prettyphoto.php
    autoplay: {$wppp_autoplay},
    should be:
    autoplay: ‘{$wppp_autoplay}’,
    change that and you should be good to go!
     

  8. 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 :-(

  9. @ Andrew
    Unfortunately for me this is still a no go…
    Anticipating a fix =)

  10. 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

  11. @ 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.

  12. Loaded it up, fixed the errors and still nothing…
    Thanks for trying to help out!

  13. 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

  14. 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??

  15. 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.

  16. This’ll be fixed in an upcoming release, most likely this weekend (Feb 6th-7th). Stay tuned.

  17. 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.

  18. 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?

  19. @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.

  20. 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.

  21. @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

  22. 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

  23. 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!

  24. I’m sorry, but mine is fubar’d.
    http://www.didgefestival.com/?page_id=2
    Any ideas?
     
     

  25. 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

  26. Folks, if you experience issues, please post on the support forum – http://is.gd/8JgR1 – thank you.

  27. I have just got a blog and use about 50 different plugins. Thank you very much for your plugin. It complete my website

  28. 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.

  29. @Sitka Was never able to reproduce the bug. Can I see it in action somewhere?

  30. 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

  31. 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.

  32. It’s not a new issue. It’s more than time you upgrade to PHP5.

  33. The newest version does not work on a Wordpress 3 multiblog system :-(
    Clicking on an image just causes … nothing :-(

Leave a Reply