• Resolved swinggraphics

    (@swinggraphics)


    Please check the type before passing the value to foreach to avoid generating warnings.

    [30-Apr-2024 22:16:17 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /var/www/html/wp-content/plugins/nitropack/classes/WordPress/NitroPack.php on line 167
    [30-Apr-2024 22:16:17 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /var/www/html/wp-content/plugins/nitropack/classes/WordPress/NitroPack.php on line 180

Viewing 1 replies (of 1 total)
  • Plugin Support Marina @ NitroPack

    (@nitromarina)

    Hello @swinggraphics,

    Thank you for bringing this to our attention. Our development team will add the suggested check in the next release to prevent such warnings.

    To fully address the issue, we would appreciate your help in investigating why these warnings appeared on your website. If you are willing to assist, please contact our support team via support.nitropack.io with your website details and steps to reproduce.

    Thanks for your cooperation.

    Best regards!

Viewing 1 replies (of 1 total)
  • The topic ‘foreach() argument must be of type array|object’ is closed to new replies.