Member
Member
Alex   2020-04-29, 19:15
#1

Hello

How fix this error in Debug-2 ?

Zenphoto 1.5.6

settings php.ini
; Development Value: Off
; Production Value: Off
; http://php.net/magic-quotes-gpc
magic_quotes_gpc=Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://php.net/magic-quotes-runtime
;Off
magic_quotes_runtime=Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://php.net/magic-quotes-sybase
magic_quotes_sybase=Off

Errors in Debug-2

{4118:Wed, 29 Apr 2020 18:29:15 GMT}

EXCEPTION (8192): Function get_magic_quotes_gpc() is deprecated в /opt/lampp/htdocs/zp-core/functions-common.php строка 186

sanitize_string called from sanitize (functions-common.php [144])

from getPluginTabs (admin-functions.php [4579])

from require_once (admin-globals.php [137])

from pluginDoc.php [34]

{4118:Wed, 29 Apr 2020 18:29:15 GMT}

EXCEPTION (8192): Function get_magic_quotes_gpc() is deprecated в /opt/lampp/htdocs/zp-core/functions-common.php строка 186

sanitize_string called from sanitize (functions-common.php [144])

from getPluginTabs (admin-functions.php [4579])

from require_once (admin-globals.php [137])

from pluginDoc.php [34]

{4118:Wed, 29 Apr 2020 18:29:15 GMT}

EXCEPTION (8192): Function get_magic_quotes_gpc() is deprecated в /opt/lampp/htdocs/zp-core/functions-common.php строка 186

sanitize_string called from sanitize (functions-common.php [144])

from getPluginTabs (admin-functions.php [4579])

from require_once (admin-globals.php [137])

from pluginDoc.php [34]

{4118:Wed, 29 Apr 2020 18:29:15 GMT}

EXCEPTION (8192): Function get_magic_quotes_gpc() is deprecated в /opt/lampp/htdocs/zp-core/functions-common.php строка 186

sanitize_string called from sanitize (functions-common.php [144])

from getPluginTabs (admin-functions.php [4579])

from require_once (admin-globals.php [137])

from pluginDoc.php [34]

https://www.php.net/manual/en/function.get-magic-quotes-gpc.php
Warning
This function has been DEPRECATED as of PHP 7.4.0. Relying on this function is highly discouraged.

Administrator
Administrator
acrylian   2020-04-29, 19:45
#2

Wait for the next Zenphoto version. It does no harm for now, the function is just doing nothing, the feature magic quotes itself is gone since PHP 5.4 already.

Member
Member
Alex   2020-04-29, 19:58
#3

Thanks for the answer.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.