WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
[resolved] Why the lightbox not working on the main homepage? (5 posts)

  1. mrprop
    Member
    Posted 2 years ago #

    Seeking for help on this. I'm not sure why the lightbox is working when it's at the post (http://mrproperty.me/sungai-nibong-residences) but not at the homepage (http://mrproperty.me). It was working until I upgraded to wordpress 3.3.1.

    I have wp-jquery-lightbox 1.3.4.2 installed.

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    Well... Your site throws a torrent of JavaScript-errors

    Uncaught TypeError: Cannot read property 'jQuery1328347544872' of undefined
    GET http://mrproperty.me/wp-content/themes/MrProp01/skins/1-default/i_post.png 404 (Not Found)
    Unsafe JavaScript attempt to access frame with URL http://mrproperty.me/ from frame with URL https://plusone.google.com/_/+1/fastbutton?url=http%3A%2F%2Fmrproperty.me%2Fsungai-nibong-residences&size=medium&count=true&annotation=&hl=en-US&jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fgapi%2F__features__%2Frt%3Dj%2Fver%3Dn-fizqNPQAw.en_US.%2Fsv%3D1%2Fam%3D!uXA1SJUHioGIFdxJYA%2Fd%3D1%2F#id=I1_1328347545143&parent=http%3A%2F%2Fmrproperty.me&rpctoken=289885564&_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart. Domains, protocols and ports must match.
    Unsafe JavaScript attempt to access frame with URL http://mrproperty.me/ from frame with URL https://plusone.google.com/_/+1/fastbutton?url=http%3A%2F%2Fmrproperty.me%2Fpenang-world-city-subject-to-eia&size=medium&count=true&annotation=&hl=en-US&jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fgapi%2F__features__%2Frt%3Dj%2Fver%3Dn-fizqNPQAw.en_US.%2Fsv%3D1%2Fam%3D!uXA1SJUHioGIFdxJYA%2Fd%3D1%2F#id=I2_1328347545149&parent=http%3A%2F%2Fmrproperty.me&rpctoken=396763207&_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart. Domains, protocols and ports must match.
    Unable to post message to http://www.stumbleupon.com. Recipient has origin http://mrproperty.me.

    And you include atleast three different versions of jQuery.

    ... take off and nuke the site from orbit. It's the only way to be sure.

  3. mrprop
    Member
    Posted 2 years ago #

    I'm not web developer so please bare with me. I have tried to remove the errors as many as I can.

    Is it to a point you could tell what's wrong?

  4. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    Not sure. But you probably just need to get rid of the extra jquery includes. You've got both
    [...] /themes/MrProp01/library/js/jquery-1.2.6.min.js
    and
    [...] /themes/MrProp01/jquery-1.3.2.js

    in there. A few lines later you have

    [...] wp-includes/js/jquery/jquery.js?ver=1.7.1

    The first two are really old. You need to go through your theme source and remove those references.

    Then add call to wp_enqueue_script in your theme's functions.php or header.php to include jquery. This ensures you only get one instance of the script and always the most recent version.

    If you don't know how to use that function, just copy it from my plugin.

  5. mrprop
    Member
    Posted 2 years ago #

    After a bit of clean up, it works now. Thank you so much for the clue!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic