• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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