Quantcast
Channel: Plesk – System Network Programming Solution
Viewing all articles
Browse latest Browse all 81

Plesk StatInfo-> getProductVersion failed: file_get_contents () failed

$
0
0

While accessing the Plesk control panel, you may encounter an error message as follows:

ERROR: PleskFatalException StatInfo-> getProductVersion failed
OR
ERROR: PleskFatalException StatInfo-> getProductVersion failed: file_get_contents () failed: mktime() [<a href='function.mktime'>function.mktime</a>]

The error indicates that the file /usr/local/psa/version which contains the Plesk version is empty AND/OR the plesk version in the ‘psa.misc’ table is incorrect. This is mostly caused due to a Plesk upgrade OR by removing/installing some Plesk modules.

To fix the issue do the following:

1. First, check the Plesk version installed on the server

# rpm -qi psa

note down the ‘version’ and ‘release’ values (these values will be different on your server).

Version     : 9.5.3 Release     : cos5.build95301122.20

now, check the OS installed on the server (for example, on CentOS)

# cat /etc/redhat-release CentOS release 5.5 (Final)

Using the above Plesk and OS info, insert a line as follows (your values will differ) in the /usr/local/psa/version file.

9.5.3 CentOS 5 95301122.20

Save the file and restart the psa serivce. If this doesn’t fix the issue, goto step 2.

2. First check the current value of  Plesk in the psa.misc table.

mysql> select * from psa.misc where param='version';

If the value is not 0953 (example from my server), run the mysql update query to set the proper value. You should use the value that is returned by the ‘rpm -qi psa’  command on your server.

mysql> update psa.misc set val="0953" where param="version";

Exit and restart mysql. That is it.


Viewing all articles
Browse latest Browse all 81

Trending Articles