WordPress.org

Ready to get started?Download WordPress

Forums

Liveblog
[resolved] Drag and drop images not uploading (25 posts)

  1. fcampagna
    Member
    Posted 1 year ago #

    I have successfully used the liveblog plugin before, but, now, when I drag and drop an image it does not upload. Instead, the browser just displays the image. The box turns green when the image is hovering like it is going to upload, but it does no happen.

    http://wordpress.org/extend/plugins/liveblog/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Have you recently upgraded your theme, plugins, or WordPress? Alternatively, have you added any new JavaScript to the page? It sounds like you may have a JS conflict occurring.

  3. fcampagna
    Member
    Posted 1 year ago #

    I'm able to create a staging site and I deactivated all plugins, and it was still happening. I upgraded to WP 3.5 when it came out. The theme hasn't changed.

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Is your theme enqueuing an older version of jQuery? Is there a public URL where I can take a peek?

  5. fcampagna
    Member
    Posted 1 year ago #

    rightweather.net is the production site, but the live blog is for members only. Do you need to see the actual live blog page?

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    You might be able to debug it yourself. On the page used for the liveblog, can you check for any JavaScript errors?

  7. fcampagna
    Member
    Posted 1 year ago #

    The only JS error I get is a warning about the YouTube embed being unsafe.

  8. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Odd. Can you try posting a liveblog update and checking out the status code and response?

  9. fcampagna
    Member
    Posted 1 year ago #

    I have no idea what I'm looking for. Do you want me to cut and paste the status code and response?

  10. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Sure, or screenshots would be great as they'll contain all of the information and context.

  11. fcampagna
    Member
    Posted 1 year ago #

  12. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Yeah. Can you show me the response tab too?

  13. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Oh, nevermind. The issue is with uploading. Which browser are you using, and have you tried others? Does the core media uploader in the admin work for you?

  14. fcampagna
    Member
    Posted 1 year ago #

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    {"entries":[{"id":"1355","html":"<div id=\"liveblog-entry-1355\" class=\"liveblog byuser comment-author-rightweather bypostauthor even thread-even depth-1 liveblog-entry\">\n\t<header class=\"liveblog-meta\">\n\t\t<span class=\"liveblog-author-avatar\"><img alt='' src='http:\/\/0.gravatar.com\/avatar\/a0a49a81ded117956bdbbea71c43eee7?s=30&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D30&r=G' class='avatar avatar-30 photo' height='30' width='30' \/><\/span>\n\t\t<span class=\"liveblog-author-name\"><a href='http:\/\/rightweather.net' rel='external nofollow'>Fred Campagna<\/a><\/span>\n\t\t<span class=\"liveblog-meta-time\"></a><a href="#liveblog-entry-1355"><span class=\"date\">December 26, 2012<\/span><span class=\"time\">7:34 pm<\/span><\/a><\/span>\n\t<\/header>\n\t<div class=\"liveblog-entry-text\">\n\t\t<p>Rain\/snow mix has arrived in Bristol. Full anticipate a change to all snow for 2-3 hours. <\/p>\n\t<\/div>\n\t<ul class=\"liveblog-entry-actions\">\n\t\t
    <li><button class=\"liveblog-entry-delete\">Delete<\/button><\/li>\n\t<\/ul>\n<\/div>\n"}],"latest_timestamp":null}

    Can't get a screengrab of that.

  15. fcampagna
    Member
    Posted 1 year ago #

    {"entries":[{"id":"1355","html":"<div id=\"liveblog-entry-1355\" class=\"liveblog byuser comment-author-rightweather bypostauthor even thread-even depth-1 liveblog-entry\">\n\t<header class=\"liveblog-meta\">\n\t\t<span class=\"liveblog-author-avatar\"><img alt='' src='http:\/\/0.gravatar.com\/avatar\/a0a49a81ded117956bdbbea71c43eee7?s=30&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D30&r=G' class='avatar avatar-30 photo' height='30' width='30' \/><\/span>\n\t\t<span class=\"liveblog-author-name\"><a href='http:\/\/rightweather.net' rel='external nofollow' class='url'>Fred Campagna<\/a><\/span>\n\t\t<span class=\"liveblog-meta-time\"><a href=\"#liveblog-entry-1355\"><span class=\"date\">December 26, 2012<\/span><span class=\"time\">7:34 pm<\/span><\/a><\/span>\n\t<\/header>\n\t<div class=\"liveblog-entry-text\">\n\t\t<p>Rain\/snow mix has arrived in Bristol. Full anticipate a change to all snow for 2-3 hours. <\/p>\n\t<\/div>\n\t<ul class=\"liveblog-entry-actions\">\n\t\t<li><button class=\"liveblog-entry-delete\">Delete<\/button><\/li>\n\t<\/ul>\n<\/div>\n"}],"latest_timestamp":null
  16. fcampagna
    Member
    Posted 1 year ago #

    I am using Chrome on a Mac, but I have tried it with Firefox and Safari, too. All do the same thing. The core uploaded works fine for me.

  17. fcampagna
    Member
    Posted 1 year ago #

    Just tried it in IE with the same result.

  18. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Hmm... any chance you can give me access to the liveblog so I can do some testing? My email is d@danielbachhuber.com

  19. fcampagna
    Member
    Posted 1 year ago #

    Just emailed you.

  20. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    I think this is the issue:

    Uncaught TypeError: Property '$' of object #<Window> is not a function

    It's caused by this block:

    var widget = new Aeris.widgets.Currents($('#widget-currents'));
    // show the Currents widget in the "widget-sample" div
    //var currentsTop = new Aeris.widgets.Currents($('#widget-sample'));
    var widget = new Aeris.widgets.Advisories(jQuery('#widget-advisories'));
    var currentwidget = new Aeris.widgets.CurrentsCompact(jQuery('#widget-currentscompact'));
    }

    I'm not sure where that's added though. Can you try removing it and seeing if it's fixed?

  21. fcampagna
    Member
    Posted 1 year ago #

    Yes. Removing all of that did the trick. Any idea how I can get them to play well together?

  22. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Change instances of $('#widget-currents') to jQuery('#widget-currents') (e.g. the '$' is changing to 'jQuery')

  23. fcampagna
    Member
    Posted 1 year ago #

    Unfortunately, making that change did not help. If I completely remove the following code, it works fine. Do you see anything that stands out as causing the conflict? I don't want to remove this part of my site.

    <script type="text/javascript">
       window.Aeris = window.Aeris || {
          onLoad: function() {
             // Initialize the SDK with your options
             Aeris.init({
                client_id: '4',
                client_secret: 'X4mtWr9hk',
                widgets: true
             });
          },
          onReady: function() {
    
    var widget = new Aeris.widgets.Currents(jQuery('#widget-currents'));
             // show the Currents widget in the "widget-sample" div
             //var currentsTop = new Aeris.widgets.Currents(jQuery('#widget-sample'));
    		var widget = new Aeris.widgets.Advisories(jQuery('#widget-advisories'));
    var currentwidget = new Aeris.widgets.CurrentsCompact(jQuery('#widget-currentscompact'));
          }
       };
    
       // Load the SDK asynchronously
       (function(w, d) {
          var loader = function() {
            Aeris.secure = (d.location.protocol === 'https:');
            var b = '//' + ((Aeris.secure === true) ? 'js-secure' : 'js') + '.aerisapi.com/';
            var v = Aeris.version;
            var script = d.createElement('script'), tag = d.getElementsByTagName('script')[0];
            script.type = 'text/javascript';
            script.async = true;
            script.src = b + ((v && v !== '') ? v + '/' : '') + 'aeris.js';
            tag.parentNode.insertBefore(script, tag);
          }
          w.addEventListener ? w.addEventListener('load', loader, false) : w.attachEvent('onload', loader);
       })(window, document);
       </script>
  24. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Oh, it's loading some other JavaScript asynchronously that's probably conflicting too. They'll need to update their JavaScript to load in no-conflict mode. Otherwise, only one or the other will work properly.

  25. Uprootednut
    Member
    Posted 1 year ago #

    Same issue on the following page http://www.casually-addicted.net/playstation-meeting-2013-live/any idea how I can get the image uploader working in the live blog?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.