Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Mysql showing warning while using strapping-mediawiki skin #31

Open
mestrap opened this issue Jun 4, 2013 · 2 comments
Open

Mysql showing warning while using strapping-mediawiki skin #31

mestrap opened this issue Jun 4, 2013 · 2 comments

Comments

@mestrap
Copy link

mestrap commented Jun 4, 2013

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
Copy link
Contributor

garrett commented Jun 13, 2013

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
Copy link
Contributor

garrett commented Jun 18, 2013

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants