• Resolved Mike Matenkosky

    (@hikinmike)


    I just tried to add a series image. I selected ‘edit’ on the series. Clicked on the thumbnail to ‘Associate an image from your media library to this series’. I uploaded a new image via the Media Library and saved it. Then I got this: Warning: Cannot use a scalar value as an array in /home/xxxxx/www/sandbox/wordpress/wp-includes/media.php on line 2898.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Mike Matenkosky

    (@hikinmike)

    Found out the theme threw the warning and not the plugin. Calling this resolved.

    Thread Starter Mike Matenkosky

    (@hikinmike)

    To add. I was using this on my theme’s functions.php to remove images that I don’t need:

    
    function remove_additional_image_sizes() {
    
    	remove_image_size( 'sermon_small' );
    	remove_image_size( 'sermon_medium' );
    	remove_image_size( 'sermon_wide' );
    	remove_image_size( 'detail' );
    	remove_image_size( 'post-thumbnail' );
    	remove_image_size( 'stargazer-full' );
    	
    }
    add_action( 'init', 'remove_additional_image_sizes' );
    

    Didn’t realize it needed details so I removed that from my functions.php file and no more warning.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot use a scalar value as an array…’ is closed to new replies.