Problem solved I think (I just deleted line 19 from the php)
However I am getting this error after saving any edits
A database query syntax error has occurred. This may indicate a bug in the
software. The last attempted database query was:
(SQL query hidden)
from within function "SMWSqlStore2IdCache::getId". Database returned error
"1146: Table 'iwbiw_wiki.wikismw_ids' doesn't exist (localhost)".
View this message in context: http://wikimedia.7.n6.nabble.com/Warning-Cannot-modify-header-information-issue-tp4984593p4984757.html
Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com.