OSAS / strapping-mediawiki

base skin for MediaWiki, based on Bootstrap — layer your own style (fonts, graphics, color) on top
Other
146 stars 35 forks source link

Mysql showing warning while using strapping-mediawiki skin #31

Open mestrap opened 11 years ago

mestrap commented 11 years ago

I have installed mediawiki in a wamp server in my local system before uploading it to my website and added strapping-mediawiki skin to it. The skin is working fine but its showing below error. untitled

Warning: Invalid argument supplied for foreach() in C:\wamp\www\wiki\skins\strapping\Strapping.skin.php on line 685

How can i remove this error

garrett commented 11 years ago

What versions of MediaWiki and Strapping (git sha1) are you using?

The foreach() calls this is referring to is most likely the one which uses $content as $key => $val for the content. (I added some code which shifted it down a little, so the line number is a little higher as of yesterday.)

There's supposed to be a check to make sure $content exists. I've changed the !$content to isset($content) — this probably fixes your issue. I will push the fix in a few minutes. Please let me know if it works for you.

Thanks!

garrett commented 11 years ago

As of the recent changes, does everything work for you now?