Blank page is shown when selecting Customize button

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:23:56 UTC

Modified:

2016-12-21 20:37:45 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Blank page is shown when selecting Customize button

Symptoms

There are several possible symptoms:

  1. The error below appears when selecting Customize button at Home - Subscriptions - example.com - Customize .

    ERROR: Call to a member function getPerformanceSettings() on a non-object (PhpSettings.php:56)
  2. The following error message is displayed in Plesk interface

    New configuration files for the Apache web server were not created due to the errors in configuration templates: Fatal error: Call to a member function isDefault() on a non-object in /usr/local/psa/admin/conf/templates/default/domainVhost.php. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter.
  3. The following error appears when trying to reconfigure domain

    # /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain example.com
    PHP Fatal error: Call to a member function isDefault() on a non-object in /usr/local/psa/admin/plib/Smb/Plesk/Bridge/Domain.php on line 966

Cause

Missing phpSettingsId entry in PhpSettings table of Plesk database:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa

mysql> select d.name, sp.name, sp.value from domains d, Subscriptions s, SubscriptionProperties sp where d.id=s.object_id and s.Object_type='domain' and s.id=sp.subscription_id and sp.name='phpSettingsId' and d.name='example.com';
+-------------+---------------+-------+
| name | name | value |
+-------------+---------------+-------+
| example.com | phpSettingsId | 2 |
+-------------+---------------+-------+
1 row in set (0.00 sec)

mysql> select * from PhpSettings where id=2;
Empty set (0.02 sec)

Resolution

  1. Before making changes in Plesk database create its dump:

    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow ` psa > psa_dump_`date +%F`.sql
  2. Login to Plesk database:

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
  3. Insert required entry:

    mysql> insert into PhpSettings values (2,0);
    Query OK, 1 row affected (0.08 sec)
  4. Rebuild configuration of affected domains:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-domain example.com
Have more questions? Submit a request
Please sign in to leave a comment.