Plesk shows: PHP Runtime Notice: Non-static method Plesk_Base_Utils_String::_getMessageDigestSharedKey() should not be called statically

Created:

2016-11-16 12:57:52 UTC

Modified:

2017-08-08 13:33:34 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk shows: PHP Runtime Notice: Non-static method Plesk_Base_Utils_String::_getMessageDigestSharedKey() should not be called statically

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Plesk is down, following error is displayed:

PHP Runtime Notice: Non-static method Plesk_Base_Utils_String::_getMessageDigestSharedKey() should not be called statically
Line: 579
File: /opt/psa/admin/plib/Plesk/Base/Utils/String.php

OR

Unable to enable/disable nginx:

# /usr/local/psa/admin/sbin/nginxmng -d
PHP Runtime Notice: Non-static method KeyLimitsChecker::_getBackwardRestriction() should not be called statically; File: /usr/local/psa/admin/plib/functions.php, Line: 2123
PHP Runtime Notice: Only variables should be passed by reference; File: /usr/local/psa/admin/plib/common_func.php3, Line: 358
PHP Runtime Notice: Declaration of NoteForm::assign() should be compatible with Form::assign(); File: /usr/local/psa/admin/plib/class.Note.php, Line: 130
PHP Runtime Notice: Declaration of NoteForm::parse() should be compatible with Form_Abstract::parse($name, $tmpl); File: /usr/local/psa/admin/plib/class.Note.php, Line: 130
PHP Deprecated Construction: Function mcrypt_cbc() is deprecated; File: /usr/local/psa/admin/plib/Plesk/Base/Utils/String.php, Line: 412

OR

Unable to check admin password:

# /usr/local/psa/bin/admin --show-password
PHP Deprecated Construction: Function mcrypt_cbc() is deprecated; File: /usr/local/psa/admin/plib/Plesk/Base/Utils/String.php, Line: 412

Cause

Incorrect or too verbose error reporting is specified in /usr/local/psa/admin/conf/php.ini .

Resolution

  1. Set following error reporting:

    # grep error_reporting /usr/local/psa/admin/conf/php.ini
    error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
  2. Restart sw-engine and sw-cp-server services:

    # service sw-engine restart
    # service sw-cp-server restart
Have more questions? Submit a request
Please sign in to leave a comment.