Back to Instagram Feed Support

g.frenken54258
g.frenken54258

When testing your plugin to use it on my website, I was unable to display Instagram posts. The cause of this issue is that in the file "classes/component/FeedCoreData.php", you use array_key_exists() to check if a property exists within an object. This functionality is deprecated in PHP 7.4 and higher.

To fix the issue, I replaced if (array_key_exists('data',$media)) with (property_exists($media, 'data')) on line ~115 and if (array_key_exists('next', $obMedia->paging)) with (property_exists($obMedia->paging, 'next')) on line ~131.

Could you please release an update with these changes?

Last updated

Darkrogua
Darkrogua

g.frenken54258 said:

When testing your plugin to use it on my website, I was unable to display Instagram posts. The cause of this issue is that in the file "classes/component/FeedCoreData.php", you use array_key_exists() to check if a property exists within an object. This functionality is deprecated in PHP 7.4 and higher.

To fix the issue, I replaced if (array_key_exists('data',$media)) with (property_exists($media, 'data')) on line ~115 and if (array_key_exists('next', $obMedia->paging)) with (property_exists($obMedia->paging, 'next')) on line ~131.

Could you please release an update with these changes?

look at the solutions in the adjacent topics, study the documentation and video on installing and configuring the plugin. if you don’t find the answer, I will help

g.frenken54258
g.frenken54258

I have already solved the issue and provided the solution.

Darkrogua
Darkrogua

g.frenken54258 said:

I have already solved the issue and provided the solution.

done! Sorry I misunderstood you, my English is lame. Thank you for helping us make the plugin better.

Last updated

1-4 of 4