dokufreaks / plugin-cloud

GNU General Public License v2.0
19 stars 13 forks source link

Warning: Invalid argument supplied for foreach() #60

Closed bgx4k3p closed 7 years ago

bgx4k3p commented 7 years ago

Just updated to the latest plugin and started getting this error showing on top of my pages:

Warning: Invalid argument supplied for foreach() in 
/dokuwiki/lib/plugins/cloud/syntax.php on line 198

Release 2017-02-19b "Frusterick Manners"

lpaulsen93 commented 7 years ago

Please re-install and re-test. I fixed a missing null pointer check and that hopefully fixes your problem.

bgx4k3p commented 7 years ago

Works fine now, no more errors. Thanks for the quick fix!

lpaulsen93 commented 7 years ago

I'm sorry for the inconvenience. Unfortunately I did not see the error in my tests. I assume that this difference might be because of different PHP versions. I use PHP7. Which version do you use?

bgx4k3p commented 7 years ago

The built-in PHP in Mac OS X 10.12.6

PHP 5.6.30 (cli) (built: Feb  7 2017 16:18:37) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
lpaulsen93 commented 7 years ago

Ok, thanks.