YOOtheme Pro is here! The best WordPress and Joomla theme. Learn more

Avatar b.j.morgan asked

Widgetkit 2.8.0 - Instagram Error

I'm getting a couple warnings from Instagram content and it is not rendering on the page. Can anyone else confirm?

Warning: Invalid argument supplied for foreach() in /var/www/administrator/components/com_widgetkit/plugins/content/instagram/src/InstagramApp.php on line 42

Warning: end() expects parameter 1 to be array, null given in /var/www/administrator/components/com_widgetkit/plugins/content/instagram/src/InstagramApp.php on line 91

Joomla 3.6.3
Widgetkit 2.8.0
Zoo 3.3.22
PHP 7.0.8
Gantry 5

  • Widgetkit

14 Answers

2

Avatar sijmen.cozijnsen answered

Hello Yootheme,

After the latest updates the images in the Instagram widget are note loaded all of a sudden. Sometimes the following errormessage is showing:

Warning: Invalid argument supplied for foreach() in     /home/stoerevrwn/public_html/dev/administrator/components/com_widgetkit/plugins/content/instagram/src/InstagramApp.php on line 42  
Warning: end() expects parameter 1 to be array, null given in /home/stoerevrwn/public_html/dev/administrator/components/com_widgetkit/plugins/content/instagram/src/InstagramApp.php on line 91

Both lines refer to the $json variable.

What is going wrong? It was working perfectly last week...

Same issue using PHP 5.6 and 7.0, Widgetkit 2.9.12 (October 2017), Joomla 3.8.2 and I do not have the open_basedir set

If you need more info, please tell me what to provide.

1

Avatar anthony.geselle answered

same here as well!
tried making the widget again, but no change...
it DID work before the update ...

1

Avatar yannicklepogam answered

it is linked to open_basedir introduced in instagram.app. waiting for advise from my host to see if it can be solved/activated from their side.

1

Avatar mike.kiy answered

Having the same issue as sijmen cozijnsen

Advice appreciated :)

0

Avatar lucas Support answered

Warning: Invalid argument supplied for foreach() in /home/juner.com.br/public/administrator/components/com_widgetkit/plugins/content/instagram/src/InstagramApp.php on line 42 Warning: end() expects parameter 1 to be array, null given in /home/juner.com.br/public/administrator/components/com_widgetkit/plugins/content/instagram/src/InstagramApp.php on line 91

0

Avatar julien.corbat answered

Same here....

Warning: Invalid argument supplied for foreach() in /home/clients/530b666be5fd09a6925ea3adf74e14c2/web/wp-content/plugins/widgetkit/plugins/content/instagram/src/InstagramApp.php on line 42

Warning: end() expects parameter 1 to be array, null given in /home/clients/530b666be5fd09a6925ea3adf74e14c2/web/wp-content/plugins/widgetkit/plugins/content/instagram/src/InstagramApp.php on line 91

Edited

0

Avatar netnog answered

Same error, is there a solution?

Know someone who can answer? Share a link to this question via email or twitter.