WordPress.org

Ready to get started?Download WordPress

Forums

Custom Image Sizes
Always spits out warnings (3 posts)

  1. graphicagenda
    Member
    Posted 2 years ago #

    Warning: trim() expects parameter 1 to be string, array given in \wp-content\plugins\custom-image-sizes\filosofo-custom-image-sizes.php on line 47

    What will this look like fixed?

    CODE:
    $size_name = trim($size_name);

    http://wordpress.org/extend/plugins/custom-image-sizes/

  2. Cyborg Feelings
    Member
    Posted 2 years ago #

    I get the same error :-(
    And cant find any solutions..

    Did you find any thing more about it?
    I will keep you updated if I fing how to solve this.. I need to fix it..

  3. andersthorborg
    Member
    Posted 2 years ago #

    Add this at the top of the filter_image_downsize-function:

    if(is_array($size_name)){
      $size_name = implode('x', $size_name);
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic