• Resolved Oxibug

    (@oxibug)


    Hi There!

    I noticed some issues in the access log file while using Regenerate Thumbnails plugin,

    PHP message: PHP Warning:  array_diff(): Expected parameter 2 to be an array, string given in /wp-content/plugins/wp-smushit/core/class-settings.php on line 376
    
    PHP message: PHP Warning:  array_merge(): Expected parameter 1 to be an array, string given in /wp-content/plugins/wp-smushit/core/class-settings.php on line 378', 
    referer: /wp-admin/tools.php?page=regenerate-thumbnails

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @oxibug !

    Hope you’re doing well today!

    Thank you for reporting this! I’ll create a task for our Smush team to add some additional checks in those files to prevent the warning from appearing.

    As a note, from the code it looks like those warnings are harmless and PHP can deal with those without any additional issues, it will just let the developers know about this by logging this warning.

    Kind regards,
    Pawel

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @oxibug !

    As the case has been handed over to our Smush team and there’s no further discussion on this topic, I’ll mark the ticket as resolved for now.

    Of course if you’d like to add something here, please feel free to do so any time!

    Warm regards,
    Pawel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning: array_diff and array_merge functions expect an array’ is closed to new replies.