Database records with empty "name" field in Configurations table cause fatal PHP error during Apache reconfiguration

Created:

2016-11-16 12:58:25 UTC

Modified:

2017-08-08 13:33:44 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Database records with empty "name" field in Configurations table cause fatal PHP error during Apache reconfiguration

Applicable to:

  • Plesk 12.5 for Linux

Fixed since

The problem described in this KB article has been completely fixed since Parallels Plesk Panel 11.5 (see release notes ).

Symptoms

When trying to reconfigure the Apache web server, the following error is displayed:

# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all 
PHP Fatal error: Class name must be a valid object or a string in /usr/local/psa/admin/plib/Template/Scheme/Webserver.php on line 62

Cause

The issue is caused by a database inconsistency:

mysql> select id,name from Configurations where name='';
+-------+------+
| id    | name |
+-------+------+
| 35075 |      |
| 35131 |      |
+-------+------+
2 rows in set (0.01 sec)`   There should be no entries with name=''. 
  The reason these entries are appearing in the database is still under investigation.

Resolution

The issue will be fixed in a future update for which a new Knowledgebase article will be created. You may subscribe for new articles on Parallels Plesk Panel product if you wish to receive notifications about their creation.

Workaround

As a workaround you may remove the incorrect entries from the psa database:

#MYSQL_PWD=`cat /etc/psa/.psa.shadow`  mysql -uadmin psa
...
mysql> delete from Configurations where name='';
Have more questions? Submit a request
Please sign in to leave a comment.