• Resolved bnovembit

    (@bnovembit)


    Hi there,

    Please, see the error message:

    PHP Warning: Invalid argument supplied for foreach() in /home/241661.cloudwaysapps.com/rcjjtwcpch/public_html/wp-admin/includes/media.php on line 1813

    the developer’s note:

    “We have canonical-attachments plugin, which hooks into attachment_fields_to_edit and in some conditions, e.g. when the attachment is image returns nothing, which causes those notices.

    To get everything working, the return statement must be outside of the if statement.”

    and the part of the code responsible for the issue:

    https://prnt.sc/r40kgp

    Please, let me know if we can expect a fix with the next update.

    Many thanks!

  • The topic ‘PHP Warning: Invalid argument supplied for foreach()’ is closed to new replies.