foxhound |
|
---|---|
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:
Warning: mb_stripos() [function.mb-stripos]: Empty delimiter in /home/armaholi/public_html/testers/armaholictest/system/common.php on line 483 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. I can fix the error by commenting this line in the common.php: && mb_stripos($sys['referer'], $cfg['hostip']) === false(line 483) 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. Just check for yourself: http://www.armaholic.com/testers/armaholictest/ 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. I have tried updating to 0.6.13, did not help. I have cleared the DB (logs, trash, referrers etc), did not fix it. 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. The only thing which works is commenting line 483 in common.php. Do you guys have any idea whats going on? <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
|
Dieser Beitrag wurde von foxhound (am 19. Januar 2011, 07:26, vor 14 Jahre) bearbeitet |
Trustmaster |
|
---|---|
Please check if server IP is set in Admin => Configuration => Main. Seems like $cfg['hostip'] is empty and causes this warning.
May the Source be with you!
|
foxhound |
|
---|---|
How thankfull I am now, you saved me lots of work.
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). Adding the IP to the server IP field fixed it right away. Thank you very much :-) 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. Only answer if you want to, I am just curious. :-) <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
Trustmaster |
|
---|---|
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
![]() May the Source be with you!
|
foxhound |
|
---|---|
Ok, I see. Thanks again for the help!!
![]() My live site is now running 0.6.13 with mod_deflate and its looking to perform great (site speed). <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
GHengeveld |
|
---|---|
If you're really into speed I suggest installing APC, although you need server root access for that.
|
foxhound |
|
---|---|
Saved for future reference, thanks for that link!
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|