php warning invalid argument supplied help

Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to
Ticket for: Post Grid
Jul 10, 2020 11:02 AM 1 Answers
Member Since Jul 2020
Subscribed Subscribe Not subscribe


Inside file: post-grid/includes/post-grid-layout-elements.php on line: 2875 which is this:

foreach($media_source as $source_id => $source_info){

it is reporting this inside the error_log

PHP Warning: Invalid argument supplied for foreach()

Hope you can help fix 🙂 we are on PHP: 7.4.7



0 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
Jul 12, 2020

Welcome to our forum.

Please make sure you have selected at least one media source under the media elements, or you can delete this element if you don’t need this.

View post on

I will fix the issue for an empty media source in next plugin update.


Sign in to Reply
Replying as Submit

Please use to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets