WordPress.org

Ready to get started?Download WordPress

Forums

AgentPress Listings
Conflict with media gallery (16 posts)

  1. jodzeee
    Member
    Posted 1 year ago #

    I decided I wanted to use a different carousel in my AgentPress theme ... this is the plugin I'm using. http://www.responsivejqueryslider.com/carousel.html

    When I go to change an image in the playlist; however, nothing in the media library is showing up. I found if I disable the AgentPress Listings plugin, it works.

    Is there anything that can be done to make them play well together?

    http://wordpress.org/extend/plugins/agentpress-listings/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    Have you contacted the slider folks about the issue?

    Alternatively, have you checked your javascript console to see if there is a javascript error?

  3. jodzeee
    Member
    Posted 1 year ago #

    Yes, I contacted them first and they told me it was because of the theme I'm using. Then I narrowed it down to this plugin. I'm pretty new to all of this. I followed the instructions in the codex for the javascript console and this is what it says:

    Error: Permission denied to access property 'toString'

    Does that help anything?

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    If it's "the theme you are using" then why does deactivating a plugin correct the problem?

    Error: Permission denied to access property 'toString'

    Yes, that's the actual problem. When your browser has a javascript error it stops processing javascript. Somewhere in the javascript console when that error is shown there should be a link or reference to which script the error is occurring in. Can you see if you can locate that and post which file it is?

  5. jodzeee
    Member
    Posted 1 year ago #

    Now for some reason, I'm not getting that error to show up in the console any more. The problem is still there, but nothing is coming up.

    Sometimes I get this error now (but not all the time)

    Error: TypeError: e is undefined
    Source File: http://localhost/myproject/wp-includes/js/jquery/jquery.js?ver=1.8.3
    Line: 2

    Is it possible the previous error I posted would not have had the link/reference because I don't remember seeing it and think I would have posted it here if I had.

  6. jodzeee
    Member
    Posted 1 year ago #

    I tried it in Chrome instead of Firefox and found this (twice):

    Uncaught TypeError: Cannot read property 'length' of undefined
    v.extend.each
    e.widget
    (anonymous function)
    (anonymous function)

    And it references these:

    jquery.js:2
    jquery.js:2
    jquery.ui.widget.min.js:5
    jquery.ui.mouse.min.js:5
    jquery.ui.mouse.min.js:5

    Which are located here:

    http://localhost/myproject/wp-includes/js/jquery/jquery.js?ver=1.8.3
    http://localhost/myproject/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.9.2
    http://localhost/myproject/wp-includes/js/jquery/ui/jquery.ui.mouse.min.js?ver=1.9.2

    Does that help?

  7. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    Those are all core files. It has to be something calling one of those.

    Are you using WP 3.2.1?

  8. jodzeee
    Member
    Posted 1 year ago #

    No, I'm using 3.5.1

  9. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    Have you tried it on a live site? Sometimes browsers have issues with scripts on localhost that don't happen on live sites.

  10. jodzeee
    Member
    Posted 1 year ago #

    Yes, the problem is present with the same errors on a live site.

  11. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    If you could find out what script is calling the WP core script function I might be able to help you further troubleshoot.

  12. jodzeee
    Member
    Posted 1 year ago #

    Here's what the plugin developer said. does that help?

    1. all_in_one_carousel\all_in_one_carousel.php

    jQuery('#upload_img_button_carousel_<?php echo $i?>').click(function() {
    formfield = 'img';
    the_i=<?php echo $i?>;
    tb_show('', 'media-upload.php?type=image&TB_iframe=true');
    return false;
    });
    
    jQuery('#upload_thumbnail_button_carousel_<?php echo $i?>').click(function() {
    formfield = 'thumbnail';
    the_i=<?php echo $i?>;
    tb_show('', 'media-upload.php?type=image&TB_iframe=true');
    return false;
    });

    2. all_in_one_carousel\tpl\playlist.php

    <script>
    jQuery(document).ready(function() {
            window.send_to_editor = function(html) {
             imgurl = jQuery('img',html).attr('src');
             //jQuery('#'+formfield).val(imgurl);
             if (formfield=='img') {
                 document.forms["form-playlist-all_in_one_carousel-"+the_i].img.value=imgurl;
             } else {
                 document.forms["form-playlist-all_in_one_carousel-"+the_i].thumbnail.value=imgurl;
             }
             //alert (the_i);
             jQuery('#'+formfield+'_'+the_i).attr('src',imgurl);
             tb_remove();
    
            }
    });
    </script>
  13. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    Does one of those two pieces of code contain/trigger the error?

  14. jodzeee
    Member
    Posted 1 year ago #

    I don't know. Can I connect you to the plugin developer via e-mail and maybe you guys can figure it out together? I'm kind of stuck in the middle and this is where it gets over my head.

  15. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    The plugin repository has over 24000 plugins (http://wordpress.org/extend/plugins/). We can't work with every plugin developer to sort out conflicts between our plugins and every other plugin.

  16. jodzeee
    Member
    Posted 1 year ago #

    I understand. I thought since we got this far it was worth a shot. Thank you for your time.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.