• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHPH-Error after Update

H

HeinerJ

Guest
Our Plesk Installation reports an error after an automatic update on Friday 01/13/2012. In Logfile /var/log/sw-cp-server/error_log each request results in the following message:

(mod_fastcgi.c.2588) FastCGI-stderr: PHP Fatal error: Call to undefined function of_get_key_by_product() in /opt/psa/admin/plib/common_func.php3 on line 4785

---------------------------------------------------------------
PRODUCT: Parallels Plesk Panel 10
VERSION: 10 (Update on Friday was to 10.4.4 as far as I know)
OPERATING SYSTEM: Linux Debian
ARCHITECTURE: Virtualized Server / X86 - 64


PROBLEM DESCRIPTION AND STEPS TO REPRODUCE

ACTUAL RESULT: Login-Page from Plesk Panel not showing up (working)

EXPECTED RESULT: Login to Plesk Panel

ANY ADDITIONAL INFORMATION: See description at the beginning of this post, e.g. the error message
--------------------------------------------------------------
 
Did you try to fix it with bootstrapper repair procedure? (Details you can find in KB)
 
I tried now.

On several steps of the script the bootstrapper.sh also reports:

PHP Fatal error: Call to undefined function of_get_key_by_product() in /opt/psa/admin/plib/common_func.php3 on line 4785

It ends with messages

Congratulations!
All stages of the upgrade were successful.
psa is now running on your system.
and the login-URL's, but the service is still not available
 
Make sure that you have correct permissions here:

# ll /etc/sw/
total 4
drwxrws--- 7 root swkey-data 4096 Jan 17 05:32 keys

# ll /etc/sw/keys/
total 32
drwxrws--- 2 root swkey-data 4096 Jan 12 23:14 backup
-rw-r--r-- 1 root swkey-data 22 Nov 2 18:37 info
drwxrws--- 2 root swkey-data 4096 Nov 10 01:12 instances
drwxrws--- 2 root swkey-data 4096 Jan 12 23:14 keys
drwxrws--- 2 root swkey-data 4096 Dec 7 14:14 lock
-rw-rw---- 1 root swkey-data 4869 Jan 17 05:32 registry.xml
drwxrws--- 2 root swkey-data 4096 Dec 7 14:14 restart
 
# ls -l /etc/sw
total 4
drwxrws--- 7 psaadm swkey-data 4096 2012-01-13 04:10 keys

# ls -l /etc/sw/keys/
total 32
drwxrws--- 2 psaadm swkey-data 4096 2012-01-13 04:10 backup
-rw-r--r-- 1 root swkey-data 22 2010-12-09 00:35 info
drwxrws--- 2 root swkey-data 4096 2011-04-11 10:54 instances
drwxrws--- 2 psaadm swkey-data 4096 2012-01-13 04:10 keys
drwxrws--- 2 psaadm swkey-data 4096 2011-04-11 14:09 lock
-rw-rw---- 1 root swkey-data 4948 2012-01-13 04:10 registry.xml
drwxrws--- 2 psaadm swkey-data 4096 2011-04-11 14:13 restart

# id psaadm
uid=2524(psaadm) gid=2522(psaadm) groups=2522(psaadm),2523(psaserv),2526(swkey-data),2527(psasb)

The permissions are in my opinion correct.
Especially the error message call to undefined function looks to me like a php-file is corrupt, either a missing include in the common_func.php3 or a missing or corrupt file containing this function.
 
Back
Top