<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : function.mb-stripos is causing an error</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 18:22:16 -0000</pubDate>

		<item>
			<title>foxhound</title>
			<description><![CDATA[Saved for future reference, thanks for that link!]]></description>
			<pubDate>Fri, 21 Jan 2011 07:54:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6133&d=0#post28058]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[If you're really into speed I suggest installing <a href="http://pecl.php.net/package/apc" rel="nofollow">APC</a>, although you need server root access for that.]]></description>
			<pubDate>Thu, 20 Jan 2011 19:35:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6133&d=0#post28045]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[Ok, I see. Thanks again for the help!! <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /><br />
My live site is now running 0.6.13 with mod_deflate and its looking to perform great (site speed).]]></description>
			<pubDate>Thu, 20 Jan 2011 18:44:44 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6133&d=0#post28043]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[You're welcome. I think mod_deflate has affected output of PHP warnings somehow, which is disabled by default. It's not a big issue to fix it as you see <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Thu, 20 Jan 2011 01:54:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6133&d=0#post28024]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[How thankfull I am now, you saved me lots of work.<br />
I was about to delete the default tables one by one, recreating them from the default Cotonti DB to see which table in my DB caused this (and seeing the fix I doubt the hours would have had any results).<br />
<br />
Adding the IP to the server IP field fixed it right away. Thank you very much :-)<br />
<br />
<br />
May I ask, why this issue popped up after we enabled mod_deflate.c cause of the missing IP? This site has been running without the server IP in that field since end 2006.<br />
Only answer if you want to, I am just curious.<br />
<br />
:-)]]></description>
			<pubDate>Thu, 20 Jan 2011 00:20:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6133&d=0#post28023]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Please check if server IP is set in Admin =&gt; Configuration =&gt; Main. Seems like $cfg['hostip'] is empty and causes this warning.]]></description>
			<pubDate>Wed, 19 Jan 2011 19:06:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6133&d=0#post28017]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[We enabled mod_deflate.c on our server and since than if people visit our website from an external link this error shows on top of the page: <pre class="code">Warning: mb_stripos() &#091;function.mb-stripos&#093;: Empty delimiter in /home/armaholi/public_html/testers/armaholictest/system/common.php on line 483</pre>
<br />
I have been breaking this down for the last few hours as this error does not show up when I use a fresh cotonti databse on the testsite and visit it from an external link. However, if I use our current databse on the test site and visit through an external link the above error pops up.<br />
<br />
I can fix the error by commenting this line in the common.php: <pre class="code">&amp;&amp; mb_stripos($sys&#091;'referer'&#093;, $cfg&#091;'hostip'&#093;) === false</pre> (line 483)<br />
This will fix the issue in our current database but I am not convinced thats a real fix. I wonder why on a fresh database this is no issue at all while on our current and active databse this is causing an error.<br />
<br />
Just check for yourself: <a href="http://www.armaholic.com/testers/armaholictest/" rel="nofollow">http://www.armaholic.com/testers/armaholictest/</a><br />
This will show you a bugged page (layout) with the error mentioned on top. When you however browse the site all is fine. Its just cause of some weird error with the referrer.<br />
<br />
I have tried updating to 0.6.13, did not help.<br />
I have cleared the DB (logs, trash, referrers etc), did not fix it.<br />
I have cleared all custom tables from the DB (from plugins) to bring it back to only the default tables but that too did not help.<br />
The only thing which works is commenting line 483 in common.php.<br />
<br />
Do you guys have any idea whats going on?]]></description>
			<pubDate>Wed, 19 Jan 2011 05:55:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6133&d=0#post28009]]></link>
		</item>
	</channel>
</rss>