Parallels Web Presence Builder: a site cannot be opened: "Call to undefined method ProtDirUser"

Refers to:

  • Plesk 11.0 for Windows
  • Plesk 11.0 for Linux

Created:

2016-11-16 13:13:45 UTC

Modified:

2016-12-21 20:14:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Parallels Web Presence Builder: a site cannot be opened: "Call to undefined method ProtDirUser"

Symptoms

A site cannot be opened in Web Presence Builder. The following error appears in log file /var/log/sw-cp-server/error_log :

PHP Fatal error:  Call to undefined method ProtDirUser::getPassword() in /usr/local/psa/admin/plib/class.ProtDir.php on line 677

Cause

The root directory of the domain assigned to a Web Presence Builder (WPB) site is password protected.

Resolution

  1. Find protected directory on Plesk domain assigned to the WPB site:

    mysql> select d.name as domain, pd.path as "protected directory" from psa.protected_dirs pd, psa.domains d where pd.dom_id=d.id;
    +--------------+---------------------+
    | domain | protected directory |
    +--------------+---------------------+
    | %domain.tld% | %pd_name% |

  2. Delete the password protection for the directory:

    ~# /usr/local/psa/bin/protdir --remove %pd_name% -domain %domain.tld%

Have more questions? Submit a request
Please sign in to leave a comment.