Ad Widget

Collapse

php 8 and get_magic_quotes_gpc() function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • m_pahlevanzadeh
    Junior Member
    • Jun 2022
    • 28

    #1

    php 8 and get_magic_quotes_gpc() function

    I installed zabbix 6.2 on apache2 and php8.1 I get the following error in apache log:
    Code:
    [Thu Jul 14 03:53:24.117248 2022] [php:error] [pid 27466] [client 127.0.0.1:34640] PHP Fatal error:  Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /var/www/html/zabbix/include/defines.inc.php:941\nStack trace:\n#0 /var/www/html/zabbix/include/classes/core/ZBase.php(80): require_once()\n#1 /var/www/html/zabbix/include/classes/core/ZBase.php(118): ZBase->init()\n#2 /var/www/html/zabbix/include/config.inc.php(32): ZBase->run()\n#3 /var/www/html/zabbix/index.php(26): require_once('...')\n#4 {main}\n  thrown in /var/www/html/zabbix/include/defines.inc.php on line 941
    May be this function has been deprecated since 7.x .

    How do I solve this problem?
  • m_pahlevanzadeh
    Junior Member
    • Jun 2022
    • 28

    #2
    Thanks zabbix team, Solved by this commit : https://git.zabbix.com/projects/ZBX/...6236fc243dac38

    Comment

    • m_pahlevanzadeh
      Junior Member
      • Jun 2022
      • 28

      #3
      Unfortunately, it's UI version 5. Do you have any idea for UI 6?

      Comment

      Working...