Warning about mbstring.http_input and mbstring.http_output?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
charliee
Registered User
Posts: 169
Joined: Sun Nov 06, 2011 2:49 am

Warning about mbstring.http_input and mbstring.http_output?

Post by charliee »

Hi, recently the webprovider updated php and i started to get warnings about
mbstring.http_input and mbstring.http_output.

When i checked the values in php information it was "no value", when i change from php 5.6 to 5.4 i got the value "pass" and no warnings.

Webprovider claims to have made no changes to server configuration and that it must be phpbb not working right, to me it feels more like the webprovider have messed up since different versions of php also loads different configuration files.

Input on this?
Regards
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23055
Joined: Fri Aug 29, 2008 9:49 am

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by Mick »

You should speak to your host again about mbstring (show them the error message) If you feel you're getting messed around ask to speak to level 2 support, or you can try adding these two lines to your .htaccess file.

Code: Select all

mbstring.http_input = pass
mbstring.http_output = pass
"The more connected we get the more alone we become" - Kyle Broflovski©
charliee
Registered User
Posts: 169
Joined: Sun Nov 06, 2011 2:49 am

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by charliee »

I tried the .htaccess edit already and it made the forum unaccessible.
User avatar
RMcGirr83
Former Team Member
Posts: 21902
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by RMcGirr83 »

Your host is a nub. When they compiled PHP 5.6 they didn't pass the same as what is compiled in PHP 5.4.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23055
Joined: Fri Aug 29, 2008 9:49 am

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by Mick »

charliee wrote:I tried the .htaccess edit already and it made the forum unaccessible.
That kind of information is important at the outset, what else did you try, have you got access to php.ini? You should speak to your host in any case.
"The more connected we get the more alone we become" - Kyle Broflovski©
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10422
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by Noxwizard »

To add it to the .htaccess file, you need to use these:

Code: Select all

php_value mbstring.http_input pass
php_value mbstring.http_output pass
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
charliee
Registered User
Posts: 169
Joined: Sun Nov 06, 2011 2:49 am

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by charliee »

RMcGirr83 wrote:Your host is a nub.
The host is one.com.
Mick wrote:have you got access to php.ini? You should speak to your host in any case.
Talked to the host and they claimed to not have made any changes and that the error must be with phpbb software and said a custom php.ini can not be used.
For the time being the forum is running under php 5.4 instead which got the "pass" value so atleast its not an urgent issue.
Noxwizard wrote:To add it to the .htaccess file, you need to use these:

Code: Select all

php_value mbstring.http_input pass
php_value mbstring.http_output pass
This is the error i get when do the edit.
500
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@one.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23055
Joined: Fri Aug 29, 2008 9:49 am

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by Mick »

charliee wrote:Talked to the host and they claimed to not have made any changes and that the error must be with phpbb software
Well there's something going on:
charliee wrote:The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator . . .
Back to mbstring, I'm involved with three boards with that host and I've never had this issue. They are all on 5.6.7 without any problems. It isn't a major concern at the moment, 5.4 will be around for a while but I'd keep asking them how come 5.4 works and 5.6 doesn't, as per Rich.
"The more connected we get the more alone we become" - Kyle Broflovski©
charliee
Registered User
Posts: 169
Joined: Sun Nov 06, 2011 2:49 am

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by charliee »

Mick wrote:Back to mbstring, I'm involved with three boards with that host and I've never had this issue. They are all on 5.6.7 without any problems.
Then you are not on a server located in Copenhagen, Denmark?
It isn't a major concern at the moment, 5.4 will be around for a while but I'd keep asking them how come 5.4 works and 5.6 doesn't, as per Rich.
That is the plan, the main question is why phpbb reports different settings for php 5.4 and 5.6.
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by Oyabun1 »

charliee wrote:the main question is why phpbb reports different settings for php 5.4 and 5.6.
Probably because the settings are different. It seems your host has compiled PHP 5.4 and 5.6 with different modules. phpBB is just reporting what it is not finding.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23055
Joined: Fri Aug 29, 2008 9:49 am

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by Mick »

charliee wrote:Then you are not on a server located in Copenhagen, Denmark?
Yes, Danish server.
"The more connected we get the more alone we become" - Kyle Broflovski©
jazz123
Registered User
Posts: 45
Joined: Tue Oct 15, 2013 4:23 pm

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by jazz123 »

Some suggestions:
(I'm assuming you use apache and probably linux here - if not ignore me)

What I'd do is first run phpinfo() and check that mbstrings have been compiled in
If not - are you on Centos-6 - if so your provider may not realise that Centos-6 (final)
does not include mbstrings

I don't know how much control you have on your server but if it doesn't show up as
installed your provider may not know that a manual install of mbstrings "probably" doesn't put
the .so file where your server expects it - you may have to move it or add a search path

This is all assuming the phpbb guys can't spot anything simpler of course.

good luck
charliee
Registered User
Posts: 169
Joined: Sun Nov 06, 2011 2:49 am

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by charliee »

Got a reply today which said phpbb doesnt work well with their servers and php 5.6 and a link to the current configuration which very clearly shows "no value" is set for mbstring.

http://one-docs.com/php5
User avatar
david63
Registered User
Posts: 19030
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by david63 »

phpBB works very well with php 5.6.

Looks to me as if it is time to find a new host that knows what they are talking about
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
User avatar
Tomba
Registered User
Posts: 137
Joined: Tue Jun 18, 2002 7:52 am
Location: Belgium
Name: Steven De Groote
Contact:

Re: Warning about mbstring.http_input and mbstring.http_output?

Post by Tomba »

I think most of you are missing the point here, as these two settings are deprecated in php 5.6.
I do have mbstring compiled for example, but because I have not explicitly set these values, phpBB incorrectly comes complaining about this as well.
php manual wrote:mbstring.http_input string
Warning
This feature has been DEPRECATED as of PHP 5.6.0. Relying on this feature is highly discouraged.
Defines the default HTTP input character encoding.

PHP 5.6 and later users should leave this empty and set default_charset instead.
So, it is basically up to phpBB to ensure proper compatibility.
Locked

Return to “[3.0.x] Support Forum”