Unable to manage subscription hosting setting: Deprecated: Function ereg()

Refers to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:17:25 UTC

Modified:

2016-12-21 20:22:37 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to manage subscription hosting setting: Deprecated: Function ereg()

Symptoms

Unable to manage subscription hosting setting:

--TEST-- Test ereg() function : basic functionality (without $regs) --FILE-- *** Testing ereg() : basic functionality *** Done--EXPECTF-- *** Testing ereg() : basic functionality *** --> Pattern: '..(a|b|c)(a|b|c)..'; string: '--- ab ---' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '()'; string: '' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '()'; string: 'abcdef' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '[x]|[^x]'; string: 'abcdef' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; string: '--- aaa bbb ccc ddd ---' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '\\\\\\`\\^\\.\\[\\$\\(\\)\\|\\*\\+\\?\\{\\''; string: '\\`^.[$()|*+?{'' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '\\a'; string: 'a' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '[0-9][^0-9]'; string: '2a' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '^[[:alnum:]]{62,62}$'; string: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '^[[:digit:]]{5}'; string: '0123456789' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '[[:digit:]]{5}$'; string: '0123456789' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '[[:blank:]]{1,10}'; string: ' ' Deprecated: Function ereg() is deprecated in %s on line %d int(1) --> Pattern: '[[:print:]]{3}'; string: ' a ' Deprecated: Function ereg() is deprecated in %s on line %d int(1) Done

The following error is shown in /usr/local/psa/admin/log/panel.log :

PHP Warning: include(/opt/psa/admin/plib/Smb/View/regular_expressions.inc): failed to open stream: No such file or directory; File: /opt/psa/admin/plib/Smb/View/MainMenu.php, Line: 17
file: /opt/psa/admin/plib/Smb/Exception/Syntax.php
line: 56

Cause

/opt/psa/admin/plib/Smb/View/MainMenu.php file is corrupted.

Resolution

Replace corrupted file with the correct one

  1. Backup original file:

    # cp -p /opt/psa/admin/plib/Smb/View/MainMenu.php{,.orig}
  2. Find the package file belongs to:

    • Ubuntu/Debian:

      # dpkg -S /opt/psa/admin/plib/Smb/View/MainMenu.php
      plesk-core: /opt/psa/admin/plib/Smb/View/MainMenu.php
    • CentOS:

      # rpm -qf /usr/local/psa/admin/plib/Smb/View/MainMenu.php
      plesk-core-11.5.30-cos6.build115130819.13.x86_64
  3. Download corresponding package from the http://autoinstall.plesk.com and extract it:

    # mkdir /root/__package
    # cd /root/__package
    • For example, Plesk 11.5 on Ubuntu/Debian:

      # wget http://autoinstall.plesk.com/PSA_11.5.30/dist-deb-Ubuntu-12.04-x86_64/base/plesk-core_11.5.30-ubuntu12.04.build115130819.13_amd64.deb
      # ar p plesk-core_11.5.30-ubuntu12.04.build115130819.13_amd64.deb data.tar.gz | tar zx
    • For example, Plesk 11.5 on CentOS:

      # wget http://autoinstall.plesk.com/PSA_11.5.30/dist-rpm-CentOS-6-x86_64/base/plesk-core-11.5.30-cos6.build115130819.13.x86_64.rpm
      # rpm2cpio plesk-core-11.5.30-cos6.build115130819.13.x86_64.rpm | cpio -idmv
  4. Copy corrupted files:

    -Ubuntu/Debian:

        # cp ./opt/psa/admin/plib/Smb/View/MainMenu.php /opt/psa/admin/plib/Smb/View/MainMenu.php
    • CentOS:
      # cp ./usr/local/psa/admin/plib/Smb/View/MainMenu.php /usr/local/psa/admin/plib/Smb/View/MainMenu.php
Have more questions? Submit a request
Please sign in to leave a comment.