Support » Plugin: AgentPress Listings » Conflict with media gallery

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    Have you contacted the slider folks about the issue?

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

    jodzeee

    (@jodzeee)

    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?

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    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?

    jodzeee

    (@jodzeee)

    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.

    jodzeee

    (@jodzeee)

    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?

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

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

    Are you using WP 3.2.1?

    No, I’m using 3.5.1

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

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

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

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

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

    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>

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

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

    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.

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    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.

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Conflict with media gallery’ is closed to new replies.