Plesk layout is broken after upgrade: the page displays empty content

Created:

2016-11-16 13:08:33 UTC

Modified:

2017-08-16 16:57:14 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk layout is broken after upgrade: the page displays empty content

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Symptoms

After upgrade from Plesk 12.0 to Plesk 12.5 or Plesk Onyx, Plesk is not showing pages content. The pages elements are missing. For example, domain or subscription does not show any menus and the page is just empty, or Backup Manager screen is empty, or SSL Certificates are not showed.

Plesk layout is broken. One of the following errors is caught by Firebug:

JavaScript error: Uncaught TypeError: Smb.Dropdown is not a function
JavaScript error: TypeError: Smb.Dropdown is not a constructor

Or:

TypeError: filterConfig is undefined

Similar errors may appear upon interaction with Plesk interface. For example:

Internal error.
TypeError: filterConfig is undefined

Or:

Cannot view jails list at Tools & Settings > IP Address Banning > Jails:

Internal error: f2bmng failed: ERROR:f2bmng:Command '['/bin/rpm', '-qf', '--queryformat', '%{NAME}\\n', '/etc/fail2ban/jail.conf', '/etc/fail2ban/jail.d/plesk.conf', '/etc/fail2ban/jail.local']' returned non-zero exit status 1
Message f2bmng failed: ERROR:f2bmng:Command '['/bin/rpm', '-qf', '--queryformat', '%{NAME}\\n', '/etc/fail2ban/jail.conf', '/etc/fail2ban/jail.d/plesk.conf', '/etc/fail2ban/jail.local']' returned non-zero exit status 1
File Agent.php
Line 217
Type PleskUtilException

Or:

Fail2Ban service restart error:

ERROR: PleskUtilException
f2bmng failed: ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR NOK: (13, 'Permission denied')
ERROR:f2bmng:Command '['/usr/bin/fail2ban-client', 'reload']' returned non-zero exit status 255 

Or:

File Manager and Mail tab cannot be accessed.

The following errors can be found in /var/log/sw-cp-server/error_log:

2017/08/04 15:05:04 [error] 32152#0: *50 access forbidden by rule, client: 203.0.113.2, server: , request: "GET /theme-skins/heavy-metal/fonts/open-sans-regular.woff2 HTTP/1.1", host: "203.0.113.3:8443", referrer: "https://203.0.113.3:8443/theme-skins/heavy-metal/css/main.css?1471927183"
2017/08/04 15:05:04 [error] 32152#0: *50 access forbidden by rule, client: 203.0.113.2, server: , request: "GET /theme-skins/heavy-metal/fonts/open-sans-regular.woff HTTP/1.1", host: "203.0.113.3:8443", referrer: "https://203.0.113.3:8443/theme-skins/heavy-metal/css/main.css?1471927183"

Cause

Incomplete upgrade. In particular, duplicated plesk-core and plesk-l10n packages, or the packages (or files from packages) were not upgraded properly.

Resolution

  1.  Login to the server over RDP/SSH
  2. Install yum-utils package:

    # yum install yum-utils
  3. Check for duplicated packages with the command:

    # package-cleanup --dupes
    Loaded plugins: fastestmirror
    ...
    psa-12.0.18-cos6.build1200140606.15.x86_64
    psa-12.5.30-cos6.build1205150826.19.x86_64
    ...
  4. Make sure that there is no important package can be removed. Try to clean out the older versions of packages:

    # package-cleanup --cleandupes
  5. Try to upgrade again.

If actions above does not help, do the following:

Delete the following file:

# mv /usr/local/psa/admin/application/smb/views/scripts/partials/shortcuts.phtml

Otherwise move application folder

# mv /usr/local/psa/admin/application{,_backup}

Unpack .rpm/.deb plesk-core and plesk-l10n packages and put application folder into /usr/local/psa/admin/. For example:

# mkdir ~/tmp-core

# wget http://autoinstall.plesk.com/PSA_12.5.30/dist-deb-Debian-7.0-x86_64/base/plesk-core_12.5.30-debian7.0.build1205150826.19_amd64.deb
# dpkg -x ~/plesk-core_12.5.30-debian7.0.build1205150826.19_amd64.deb ~/tmp-core
# cp -pR ~/tmp-core/opt/psa/admin/application /usr/local/psa/admin/
Have more questions? Submit a request
Please sign in to leave a comment.