[ZBX-8726] Warning messages with PHP 5.6 in frontend Created: 2014 Sep 08  Updated: 2017 May 30  Resolved: 2014 Oct 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.3.5
Fix Version/s: 2.4.2rc1, 2.5.0

Type: Incident report Priority: Trivial
Reporter: Andris Mednis Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian testing, PHP 5.6.


Issue Links:
Duplicate
duplicates ZBX-8527 include/classes/class.cjson.php : Use... Closed
duplicates ZBX-8525 mbstring.internal_encoding notice for... Closed

 Description   

"Monitoring->Dashboard" screen and other frontend screens display warnings like:
ini_set(): Use of mbstring.internal_encoding is deprecated [dashboard.php:145 ? make_latest_issues() ? CTag->setMenuPopup() ? CTag->attr() ? CTag->setAttribute() ? CHtml::serialize() ? CJs::encodeJson() ? CJson->encode() ? ini_set() in /var/www/html/zabbix24/include/classes/json/CJson.php:137]
ini_set(): Use of mbstring.internal_encoding is deprecated [dashboard.php:145 ? make_latest_issues() ? CTag->setMenuPopup() ? CTag->attr() ? CTag->setAttribute() ? CHtml::serialize() ? CJs::encodeJson() ? CJson->encode() ? ini_set() in /var/www/html/zabbix24/include/classes/json/CJson.php:161]
ini_set(): Use of mbstring.internal_encoding is deprecated [dashboard.php:145 ? make_latest_issues() ? CTag->setMenuPopup() ? CTag->attr() ? CTag->setAttribute() ? CHtml::serialize() ? CJs::encodeJson() ? CJson->encode() ? ini_set() in /var/www/html/zabbix24/include/classes/json/CJson.php:137]
ini_set(): Use of mbstring.internal_encoding is deprecated [dashboard.php:145 ? make_latest_issues() ? CTag->setMenuPopup() ? CTag->attr() ? CTag->setAttribute() ? CHtml::serialize() ? CJs::encodeJson() ? CJson->encode() ? ini_set() in /var/www/html/zabbix24/include/classes/json/CJson.php:161]
ini_set(): Use of mbstring.internal_encoding is deprecated [dashboard.php:145 ? make_latest_issues() ? CTag->setMenuPopup() ? CTag->attr() ? CTag->setAttribute() ? CHtml::serialize() ? CJs::encodeJson() ? CJson->encode() ? ini_set() in /var/www/html/zabbix24/include/classes/json/CJson.php:137]
ini_set(): Use of mbstring.internal_encoding is deprecated [dashboard.php:145 ? make_latest_issues() ? CTag->setMenuPopup() ? CTag->attr() ? CTag->setAttribute() ? CHtml::serialize() ? CJs::encodeJson() ? CJson->encode() ? ini_set() in /var/www/html/zabbix24/include/classes/json/CJson.php:161]
ini_set(): Use of mbstring.internal_encoding is deprecated [dashboard.php:145 ? make_latest_issues() ? CTag->setMenuPopup() ? CTag->attr() ? CTag->setAttribute() ? CHtml::serialize() ? CJs::encodeJson() ? CJson->encode() ? ini_set() in /var/www/html/zabbix24/include/classes/json/CJson.php:137]
ini_set(): Use of mbstring.internal_encoding is deprecated [dashboard.php:145 ? make_latest_issues() ? CTag->setMenuPopup() ? CTag->attr() ? CTag->setAttribute() ? CHtml::serialize() ? CJs::encodeJson() ? CJson->encode() ? ini_set() in /var/www/html/zabbix24/include/classes/json/CJson.php:161]



 Comments   
Comment by richlv [ 2014 Sep 08 ]

seems to be a duplicate of ZBX-8525, closing

Comment by Andris Mednis [ 2014 Sep 08 ]

ZBX-8525 describes this issue with PHP 5.6 RCx (release candidates) and won't be fixed. On August 28, 2014 PHP 5.6.0 was released, it is included in "Debian testing". Reopening.

Comment by Ivo Kurzemnieks [ 2014 Sep 26 ]

(1) json rpc giving an error:
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

iivs RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-8726/ r49415

kristsk CLOSED.

Comment by Ivo Kurzemnieks [ 2014 Sep 26 ]

(2) Added translation strings:

  • 'PHP always_populate_raw_post_data'
  • 'PHP always_populate_raw_post_data must be set to -1.'

kristsk CLOSED.

Comment by Ivo Kurzemnieks [ 2014 Sep 26 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-8726/ r49424

Comment by Oleksii Zagorskyi [ 2014 Sep 29 ]

Tested the dev branch.
Those "deprecated" warnings disappeared even with default ;always_populate_raw_post_data = On in php.ini

Of course I see corresponding note on dashboard that -1 is required.

Comment by Krists Krigers (Inactive) [ 2014 Sep 30 ]

TESTED.

Comment by Ivo Kurzemnieks [ 2014 Oct 08 ]

Fixed in pre-2.4.2rc1 r49679 and pre-2.5.0 (trunk) r49680

Comment by richlv [ 2014 Oct 08 ]

(3) subissue 2 seems to talk about a new requirement. we should probably document it in requirement section and upgrade notes

iivs In requirements sections we do not write all the PHP directives, so I added a sentence in upgrade notes https://www.zabbix.com/documentation/2.4/manual/installation/9_upgrade_notes_for_2.4.2

RESOLVED

<richlv> upgrade notes looks good to me, but it seems strange that we don't have directive requirements listed anywhere. maybe we should do that ?

iivs Actually we do have PHP options listed. I added this option in:

RESOLVED.

jelisejev Made a minor correction https://www.zabbix.com/documentation/3.0/manual/installation/install?do=diff&rev2%5B0%5D=1414147616&rev2%5B1%5D=1414481826&difftype=sidebyside

Otherwise good. CLOSED.

Generated at Fri Apr 19 06:43:46 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.