PHP warning: Warning: Invalid argument supplied for foreach()
-
Hello,
I’ve recently taken over maintenance of a new website, which is using the latest version (3.4.4) of Responsive Photo Gallery plugin. I’ve created a development website, which runs PHP version 7.0.22. When visiting the gallery, e.g. using the link above, I see this PHP warning instead of the photos: Warning: Invalid argument supplied for foreach() in /home/(obfuscated)/public_html/urban/wp-content/plugins/responsive-photo-gallery/responsive-gallery-short-code.php on line 127.
The live site is at the same version of Responsibe Photo Gallery plugin, but its PHP version is only 5.5.38. When I visit the photo gallery page there (http://urban.realtor/?page_id=311) I see the photos below the header image.
We would like to update the PHP version of our web server. But we don’t want to break our photo gallery in the process. Can you advise on how to fix this PHP warning at the development website?
I looked for this error online, I do see it at one other website: https://www.kunvarji.com/gu/csr/
The page I need help with: [log in to see the link]
- The topic ‘PHP warning: Warning: Invalid argument supplied for foreach()’ is closed to new replies.