WordPress.org

Ready to get started?Download WordPress

Forums

SliceShow
White screen mediauploader (12 posts)

  1. Maartje_1992
    Member
    Posted 11 months ago #

    Hi there,

    I really like your plugin because you can create a lot of slideshows.
    Since yesterday I found a problem.

    I want to insert a picture, but when I click 'insert into post' it doesn't work, and I get a white screen.

    http://i43.tinypic.com/207l2lh.png

    It looks like that ^

    Do you know how I can change this..?
    I already removed the plugin and installed again.

    Maartje

    http://wordpress.org/plugins/sliceshow/

  2. WordBuddyPress
    Member
    Posted 9 months ago #

    Same problem here. It is really annoying and costs money (because my customer is waiting)!!! Is the developer going to read the support page???

  3. WordBuddyPress
    Member
    Posted 9 months ago #

    Maybe this helps:
    I tried deactivating all plugins and then try it,
    I tried deleting it and reinstalling sliceshow,
    the only change I made before it stopped working was, that I installed "Simple Images Sizes" and added a new size, since it didn't work then I deleted this plugin but nothing changed.

  4. Tyler Jones
    Member
    Plugin Author

    Posted 9 months ago #

    Sorry hadn't seen this thread.

    That's odd, are you getting error messages in your server error log? What version of WordPress are you using?

  5. WordBuddyPress
    Member
    Posted 9 months ago #

    I am using the newest version of WordPress (3.7.1) but the error already occurred on the previous version.
    I didn't find anything in my server error log.

  6. WordBuddyPress
    Member
    Posted 9 months ago #

    Where can I find the SliceShow in the Database?

  7. ITS Alaska
    Member
    Posted 8 months ago #

    Just started having this issue. The issue appears to be TypeError: classes is undefined, caused by classes = jQuery('img', html).attr('class'); on line 25 of js/custom-js.js.

    My guess is that with classes = jQuery('img', html).attr('class'); (line 2 of the same file), the image doesn't have a class. I think the issue would be fixed if you checked the classes variable before trying to doing stuff with it.

    I'd love to be able to use this plugin on another site, so please fix this.

  8. rdws
    Member
    Plugin Author

    Posted 5 months ago #

    I just ran across this thread and would like to help figure out a solution. Which option in the media uploader are you using: "From URL" or "Media Library"?

    From what I can tell the current way the plugin is setup won't work with the "From URL" option even with ITS Alaska's fix from above because it relies on the image having a post id.

  9. wza
    Member
    Posted 1 month ago #

    The problem exists when using Media Library, after choosing Insert Into Post

    I have two similar websites, both use the exact same plugins, both versions are the same, yet one website has this problem while the other doesn't. The only diff is the Force Regenerate Thumbnails plugin, which I deleted, but still I'm getting the TypeError: classes is undefined error

    Anyone found a fix for this yet?

  10. wza
    Member
    Posted 1 month ago #

    if on custom-js.js on line 25 i replace

    window.send_to_editor = function(html) {
    			imgurl = jQuery('img',html).attr('src');
    			classes = jQuery('img', html).attr('class');
    			id = classes.replace(/(.*?)wp-image-/, '');
    			formfield.val(id);
    			preview.attr('src', imgurl);
    			tb_remove();
    		}

    with

    window.send_to_editor = function(html) {
    			imgurl = jQuery(html).attr('src');
    			classes = jQuery(html).attr('class');
    			id = classes.replace(/(.*?)wp-image-/, '');
    			formfield.val(id);
    			preview.attr('src', imgurl);
    			tb_remove();
    		}

    everything works again. is there a clean fix for this?

  11. zedna
    Member
    Posted 1 month ago #

    Hi i have the same problem, unfortunately wza, your solution doesn´t work for me. And white screen i have in every was of inserting video.

  12. royalguy
    Member
    Posted 1 week ago #

    in js/custom-js.js
    near line 22

    replace

    window.send_to_editor = function(html) {
    	imgurl = jQuery('img',html).attr('src');
    	classes = jQuery('img', html).attr('class');
    	id = classes.replace(/(.*?)wp-image-/, '');
    	formfield.val(id);
    	preview.attr('src', imgurl);
    	tb_remove();
    }

    with

    window.send_to_editor = function(html) {
    	jQuery('body').append('<div id="myTmpDiv">'+html+'</div>');
    	imgurl = jQuery('#myTmpDiv img').attr('src');
    	classes = jQuery('#myTmpDiv img').attr('class');
    	jQuery('#myTmpDiv').remove();
    	id = classes.replace(/(.*?)wp-image-/, '');
    	formfield.val(id);
    	preview.attr('src', imgurl);
    	tb_remove();
    }

    here, first, i set html response to temp div and then read IMG SRC and CLASSES from there and then remove that temp div.

    Good luck

Reply

You must log in to post.

About this Plugin

About this Topic