• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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