After upgrade PHP to 5.3, my website shows PHP error: Directive is deprecated in PHP 5.3

Created:

2016-11-16 13:21:56 UTC

Modified:

2017-08-16 18:25:20 UTC

0

Was this article helpful?


Have more questions?

Submit a request

After upgrade PHP to 5.3, my website shows PHP error: Directive is deprecated in PHP 5.3

Applicable to:

  • Plesk 11.x for Linux
  • Plesk 11.x for Windows
  • Plesk 12.0 for Linux

Symptoms

After upgrade PHP to 5.3, my website shows PHP error:

    PHP Warning:  Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

Cause

Deprecated php directives are enabled in php.ini

Resolution

  1. Open /etc/php.ini, domain php.ini file (/var/www/vhosts/system/domain.tld/etc/php.ini)

  2. Make sure that PHP.ini does not contain information about deprecated directives:

    register_globals = On
    register_long_arrays = On

If there are such lines, please delete or comment them as below:

    ;register_globals = On
;register_long_arrays = On
Have more questions? Submit a request
Please sign in to leave a comment.