Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello friends. The plugin has crashed with the new version of WordPress 3.5 … Please help us. Can not live without scissors!

    Thank you!

    i need it too :/

    Temporary fix is modifying function scissors_admin_head in scissors.php to look like this:

    function scissors_admin_head()
    {
    	global $scissors_dirname;
    
    	wp_enqueue_script('scissors_crop', '/' . PLUGINDIR . '/'.$scissors_dirname.'/js/jquery.Jcrop.js', array('jquery') );
    	wp_enqueue_script('scissors_js', '/' . PLUGINDIR . '/'.$scissors_dirname.'/js/scissors.js' );
    
    	$thisUrl = admin_url('admin-ajax.php');
    	echo "<!-- JS loaded for Scissors in media library -->\n";
    	echo "<script type='text/javascript'>\n/* <![CDATA[ */\n";
    	echo "scissors = {\n";
    	echo "ajaxUrl: '$thisUrl'";
    	foreach(array('large', 'medium', 'thumbnail') as $size)
    	{
    		$width = intval(get_option("{$size}_size_w"));
    		$height = intval(get_option("{$size}_size_h"));
    		$aspectRatio = max(1, $width) / max(1, $height);
    		if(!get_option("{$size}_crop")) $aspectRatio = 0;
    		echo ",\n{$size}AspectRatio: $aspectRatio";
    	}
    	echo "\n}\n";
    	echo "/* ]]> */\n</script>\n";
    	echo "<!-- End of JS loaded for Scissors in media library -->\n";
    }

    I can confirm ikovacic’s fix. Many thanks!

    Quick follow ups:

    – Is this going to be baked into a soon-to-be-released update? I would like to vote for this as a working plugin.

    – Is this plugin “healthy”? Eg: is this going to continue to get updates?

    Thread Starter Biranit

    (@biranit)

    There is a “follow up” plugin for this one, that works on 3.5+ and continues to be maintained and updated:

    Scissors and Watermark
    http://wordpress.org/extend/plugins/scissors-watermark/

    Scissors and Watermark appears broken too.

    Thread Starter Biranit

    (@biranit)

    No, it is definitely working and up to date. Why do you think it’s broken? What is the problem you run into?

    Not sure of Jabawack’s specific issue but this has been my experience with Scissors and Watermark on WordPress 3.5:

    Upon Activation these are the messages at the top of the screen:

    The plugin Scissors and Watermark need to be set. Please visit the Settings page | Hide Notice.

    The plugin generated 242 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    So the error is of some concern but I forged ahead and clicked on “Settings” and made custom max dimensions for the “Large” size. After the settings were saved this still shows at the top of every WordPress admin page:

    The plugin Scissors and Watermark need to be set. Please visit the Settings page | Hide Notice.

    Not sure what this means and what isn’t being set. No errors in the apache logs so not much I can do to debug.

    Anyway, I uploaded an image larger than my “large” setting image and chose “edit”. In the Scissors and Watermark section I tried Resize, Crop and Rotate:

    Resize “worked” but offered none of my presets for thumbnail, medium or large. This is very bad for usability as I don’t want my site admins to have to remember an exact pixel value like 817px to get images sized correctly. It would be nice to allow images to be sized to the max width given, allowing the height to vary or for the height to be cropped.

    Crop simply doesn’t work. When I select an area and click “crop” the page refreshes with the original cropping.

    Rotate works.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Plugin no longer works in WordPress 3.5's new media admin’ is closed to new replies.