{"id":1341,"date":"2011-05-15T10:43:54","date_gmt":"2011-05-15T14:43:54","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1341"},"modified":"2013-03-20T08:44:21","modified_gmt":"2013-03-20T12:44:21","slug":"plesk-statinfo-getproductversion-failed-file_get_contents-failed","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/plesk-statinfo-getproductversion-failed-file_get_contents-failed","title":{"rendered":"Plesk StatInfo-> getProductVersion failed: file_get_contents () failed"},"content":{"rendered":"<p>While accessing the Plesk control panel, you may encounter an error message as follows:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">ERROR: PleskFatalException StatInfo-&gt; getProductVersion failed<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">OR<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">ERROR: PleskFatalException StatInfo-&gt; getProductVersion failed: <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">file_get_contents () failed: mktime() <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">[&lt;a href='function.mktime'&gt;function.mktime&lt;\/a&gt;]<\/span><\/pre>\n<\/blockquote>\n<p>The &#8220;Plesk getProductVersion failed &#8221; message states that either the Plesk version file \/usr\/local\/psa\/version is empty AND\/OR the plesk version in the &#8216;psa.misc&#8217; table is incorrect. This is mostly caused due to a failed Plesk upgrade OR by removing\/installing some Plesk modules.<\/p>\n<p>To fix the issue do the following:<\/p>\n<p><span style=\"color: #0000ff;\"><strong>1.<\/strong><\/span> First, check the Plesk version installed on the server<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># rpm -qi psa<\/span><\/pre>\n<\/blockquote>\n<p>note down the &#8216;version&#8217; and &#8216;release&#8217; values (these values will be different on your server).<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">Version : 9.5.3 Release : cos5.build95301122.20<\/span><\/pre>\n<\/blockquote>\n<p>now, check the OS installed on the server (for example, on CentOS)<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">#<\/span><span style=\"color: #0000ff;\"> cat \/etc\/redhat-release <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">CentOS release 5.5 (Final)<\/span><\/pre>\n<\/blockquote>\n<p>Using the above Plesk and OS info, insert a line as follows (your values will differ) in the \/usr\/local\/psa\/version file.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">9.5.3 CentOS 5 95301122.20<\/span><\/pre>\n<\/blockquote>\n<p>Save the file and restart the psa serivce. <strong><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\"><strong>2. <\/strong><\/span>If the above fix doesn&#8217;t work, do the following<br \/>\n<\/strong><\/p>\n<p>Check the current value of\u00a0 Plesk in the psa.misc table.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">mysql&gt; select * from psa.misc where param='version';<\/span><\/pre>\n<\/blockquote>\n<p>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 &#8216;rpm -qi psa&#8217;\u00a0 command on your server.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">mysql&gt; update psa.misc set val=\"0953\" where param=\"version\";<\/span><\/pre>\n<\/blockquote>\n<p>Exit and restart mysql. That is it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While accessing the Plesk control panel, you may encounter an error message as follows:<\/p>\n<p>ERROR: PleskFatalException StatInfo-&gt; getProductVersion failed<br \/>\nOR<br \/>\nERROR: PleskFatalException StatInfo-&gt; getProductVersion failed:<br \/>\nfile_get_contents () failed: mktime()<br \/>\n[&lt;a href=&#8217;function.mktime&#8217;&gt;function.mktime&lt;\/a&gt;]<\/p>\n<p>The &#8220;Plesk getProductVersion failed &#8221; message states that either the Plesk version file \/usr\/local\/psa\/version is empty AND\/OR the plesk version in the &#8216;psa.misc&#8217; table is incorrect. This is mostly caused due to a failed Plesk upgrade OR by removing\/installing some Plesk modules.<br \/>\nTo fix the issue do the following:<br \/>\n1. First, check the Plesk version installed on the server<\/p>\n<p># rpm -qi psa<\/p>\n<p>note down [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1233,1235,1237,1236,1232,1231,1234],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1341"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1341"}],"version-history":[{"count":10,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1341\/revisions"}],"predecessor-version":[{"id":2296,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1341\/revisions\/2296"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}