{"id":5,"date":"2010-03-24T03:17:35","date_gmt":"2010-03-24T03:17:35","guid":{"rendered":"http:\/\/www.millservices.co.uk\/blog\/?p=5"},"modified":"2016-10-02T23:29:00","modified_gmt":"2016-10-02T23:29:00","slug":"wp-cache-error","status":"publish","type":"post","link":"https:\/\/www.millservices.co.uk\/blog\/wordpress\/wp-cache-error\/","title":{"rendered":"WP-Cache Error &#038; WordPress Login Error?"},"content":{"rendered":"<p>Are you seeing this error message at the top of every page of your WordPress blog? (<strong>The fix is below&#8230;<\/strong>)<\/p>\n<blockquote><p><span style=\"color: #000080;\"><strong>Warning<\/strong>: sem_get() [function.sem-get]: failed for key 0x152b: Permission denied in <strong>\/home\/username\/public_html\/wp-content\/plugins\/wp-cache\/wp-cache-phase2.php<\/strong> on line <strong>98<\/strong><\/span><\/p><\/blockquote>\n<p>You might also be getting something like this at the foot of every page too:-<\/p>\n<blockquote><p><span style=\"color: #000080;\"><strong>Warning<\/strong>: sem_acquire(): supplied argument is not a valid SysV semaphore resource in <strong>\/home\/username\/public_html\/wp-content\/plugins\/wp-cache\/wp-cache-phase2.php<\/strong> on line <strong>107<\/strong><span style=\"color: #000080;\"><strong><br \/>\n<\/strong><\/span><\/span><\/p><\/blockquote>\n<p>You&#8217;re not the only one. Google is full of sites showing this error (about 50,000 pages on this quick search):-<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9 alignnone\" title=\"wp-cache error\" src=\"https:\/\/www.millservices.co.uk\/blog\/wp-content\/uploads\/wp-cache-error-google.jpg\" alt=\"\" width=\"300\" height=\"243\" \/><\/p>\n<p>If you&#8217;re seeing this error, you probably can&#8217;t log in to the admin area of your blog either! Here&#8217;s how to fix it.<!--more--><\/p>\n<h2>How To Fix It Fast<\/h2>\n<p>The error is coming from one of your plugins called WP-Cache. It&#8217;s the plugin that is supposed to help speed up your blog. But this plugin is now very old and hasn&#8217;t been updated for years. (For a better one keep reading below).<\/p>\n<h3>1. Get Your Blog Working<\/h3>\n<p>Top priority &#8211; let&#8217;s make this error go away.<\/p>\n<p>You need to disable that plugin. You probably can&#8217;t login to the WordPress admin area due to the same error. But you can get round this by editing your WordPress config file (wp-config.php) which you&#8217;ll find in the folder you installed your blog.<\/p>\n<p><strong>NOTE: be very careful editing this file, as you can break your blog even more. I recommend you keep a backup copy before making any changes.<\/strong><\/p>\n<p>Edit the wp-config.php file and remove this line:-<\/p>\n<pre>define('WP_CACHE', true);<\/pre>\n<p>(If your host uses cpanel, you can edit using the built in code editor. Otherwise download using FTP, edit, then upload the amended version)<\/p>\n<p>You should now be able to log in to your blog admin area. Now go to your plugins and disable WP Cache.<\/p>\n<p>Your blog should now be functioning normally without showing any errors.<\/p>\n<h3>2. Now Install WP Super Cache<\/h3>\n<p>If your blog gets very little traffic, you may want to leave it at that. Especially as installing WP Super Cache isn&#8217;t particularly easy.<\/p>\n<p>WP Super Cache does what WP Cache used to do well. The most critical difference being that WP Super Cache is still actively being developed. Which is important when WordPress keeps changing and improving all the time.<\/p>\n<p>You can download it here:-<br \/>\n<a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-super-cache\/\" target=\"_blank\">http:\/\/wordpress.org\/extend\/plugins\/wp-super-cache\/<\/a><\/p>\n<p><strong>NOTE: Follow the install instructions in the Read Me very closely. Especially the instructions about removing left over traces of the old WP Cache.<\/strong><\/p>\n<h3><strong>3. Please Link To This Page<br \/>\n<\/strong><\/h3>\n<p>If this fixed your problem, please send a link to this page. It will help the other 50,000 or so blogs suffering the same thing! Thanks.<strong><br \/>\n<\/strong><\/p>\n<h2>So Why The Errors?<\/h2>\n<p>In short, I don&#8217;t know yet. But I&#8217;d be interested to hear if anyone knows?<\/p>\n<p>I&#8217;ve seen a whole bunch of blogs all suddenly display this error. Those blogs were all hosted with Bluehost, so maybe a change Bluehost have made has caused WP Cache to fail? That&#8217;s not to say it&#8217;s the fault of Bluehost as WP Cache is old and unsupported code.<\/p>\n<p>Have you seen this error on your Bluehost blogs? Or on blogs hosted elsewhere?<\/p>\n<p>Or do you know what is causing the errors?<\/p>\n<p>Please leave a comment below. Thanks.<\/p>\n<div id=\"_mcePaste\" style=\"overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;\">\n<pre><strong>\/home\/username\/public_html\/<\/strong><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Are you seeing this error message at the top of every page of your WordPress blog? (The fix is below&#8230;) Warning: sem_get() [function.sem-get]: failed for key 0x152b: Permission denied in \/home\/username\/public_html\/wp-content\/plugins\/wp-cache\/wp-cache-phase2.php on line 98 You might also be getting something like this at the foot of every page too:- Warning: sem_acquire(): supplied argument is not &hellip; <a href=\"https:\/\/www.millservices.co.uk\/blog\/wordpress\/wp-cache-error\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WP-Cache Error &#038; WordPress Login Error?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":25,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":282,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/posts\/5\/revisions\/282"}],"wp:attachment":[{"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.millservices.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}