• Resolved Rich Tape

    (@iamfriendly)


    On the Media Library screen

    Notice: Array to string conversion in .../plugins/hammy/WPThumb/wpthumb.php on line 579

    Not entirely sure what it’s trying to do by casting the $args array as a string and looking for ‘=’ but I guess it’s trying to see if people pass in a string rather than an array, in which case it should probably be using array_map rather than casting it. I’m probably wrong though 😉

    Same warning when you have a thumbnail already uploaded on the edit post screen.

    Nothing major but would be nice to get this fixed up in the next release, Noel. (Then again it doesn’t seem to be your plugin directly causing the issue, rather the WPThumb include you’re using…)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Rich Tape

    (@iamfriendly)

    Silly me, I took the time to read what it was doing. It just needs an

    is_string( $args ) && ….

    check before the first clause

    Plugin Author Noel Tock

    (@noel_tock)

    Believe this has been fixed, let me know if you’re still having issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A few PHP warnings when WP_DEBUG on’ is closed to new replies.