Essentially what happens is when attempting to upgrade a Wordpress plugin, the upgrade fails with a message similar to this -
Unpacking the update.
Installing the latest version.
Deactivating the plugin.
Removing the old version of the plugin.
Could not create directory. DIRECTORY\wwwroot/wp-content/plugins/akismet/
Plugin upgrade Failed.
I'm running Wordpress 2.9.2 on a Windows 2008R2 VPS, with PHP 5.2.13 and wincache 1.1
Checking on the VPS, the plugin directory is there but inaccessible even as an administrator, with "access is denied". Restarting IIS results in the folder disappearing. The plugin can then be installed.
Clearly there's some locking problem occurring somewhere. Disabling wincache stops the problem.
<div mce_keep="true">Are you seeing this with behaviour with only object-cache.php present? Or presence of object-cache.php doesn't matter?</div>
<div mce_keep="true">Did you see this problem with older versions of WINCACHE like 1.0.0, 1.0.1 or you are seeing it only with WINCACHE version 1.1?</div>
I've had the problem for a while but not had time to worry about it, I suspect it was introduced with the 1.1beta when I installed it. Disabling wincache for the site in php.ini seemed to stop this particular problem. I was still having problems with plugin
installations reporting "plugin does not have a valid header" though so I've just upgraded my site to Wordpress 3.0 and that problem is gone. I haven't renabled wincache for the site as others on the thread reference above report it happening with WP3.0 also.
None of them mention object-cache.php so they either (like me) forgot completely about installing it, or they're not using it. I only remembered it because the new WP3.0 dashboard reported it's presence.
I just had a conversation with the developer and as guessed WINCACHE file change notification feature is causing the problem. So another workaround is to disable wincache file change notification. Just set wincache.fcndetect=0 in your php.ini file. Details
about this directive can be found at
http://us2.php.net/manual/en/wincache.configuration.php#ini.wincache.fcndetect.
david steads...
8 Posts
Wincache 1.1 and Wordpress plugin problem
Jul 21, 2010 10:38 PM|LINK
I've been having a problem with Wordpress and it seems to be caused by wincache. Several others have reported the same problem on the Wordpress.com forums
Essentially what happens is when attempting to upgrade a Wordpress plugin, the upgrade fails with a message similar to this -
I'm running Wordpress 2.9.2 on a Windows 2008R2 VPS, with PHP 5.2.13 and wincache 1.1
Checking on the VPS, the plugin directory is there but inaccessible even as an administrator, with "access is denied". Restarting IIS results in the folder disappearing. The plugin can then be installed.
Clearly there's some locking problem occurring somewhere. Disabling wincache stops the problem.
don.raman
1207 Posts
Microsoft
Moderator
Re: Wincache 1.1 and Wordpress plugin problem
Jul 21, 2010 11:20 PM|LINK
Thanks for reporting. We are looking into this and will update this thread once we know the reason.
Regards,
Don.
david steads...
8 Posts
Re: Wincache 1.1 and Wordpress plugin problem
Jul 21, 2010 11:38 PM|LINK
Thanks. I should have noted I was using object-cache.php 0.1 also.
don.raman
1207 Posts
Microsoft
Moderator
Re: Wincache 1.1 and Wordpress plugin problem
Jul 21, 2010 11:54 PM|LINK
Hi,
Can you clarify few things:
Thanks,
Don.
david steads...
8 Posts
Re: Wincache 1.1 and Wordpress plugin problem
Jul 22, 2010 12:05 AM|LINK
I've had the problem for a while but not had time to worry about it, I suspect it was introduced with the 1.1beta when I installed it. Disabling wincache for the site in php.ini seemed to stop this particular problem. I was still having problems with plugin installations reporting "plugin does not have a valid header" though so I've just upgraded my site to Wordpress 3.0 and that problem is gone. I haven't renabled wincache for the site as others on the thread reference above report it happening with WP3.0 also. None of them mention object-cache.php so they either (like me) forgot completely about installing it, or they're not using it. I only remembered it because the new WP3.0 dashboard reported it's presence.
hydn
66 Posts
Re: Wincache 1.1 and Wordpress plugin problem
Aug 03, 2010 06:51 AM|LINK
login to wincache.php and click "Clear All" under ucache tab. Plugin will install and run properly now.
My prob with uscahce is getting it to obey TTL settings
don.raman
1207 Posts
Microsoft
Moderator
Re: Wincache 1.1 and Wordpress plugin problem
Aug 03, 2010 06:57 AM|LINK
Thanks Hayden. This is a good workaround. However we are working on a fix.
Don.
manoloxxl
42 Posts
Re: Wincache 1.1 and Wordpress plugin problem
Aug 09, 2010 10:06 PM|LINK
Same Problem here (Win 2008 R2)
Wincache, Wordpress & same file / folder behaviour.
Deactivating the PlugIn solves the problem. A update woul be great,
don.raman
1207 Posts
Microsoft
Moderator
Re: Wincache 1.1 and Wordpress plugin problem
Aug 09, 2010 11:21 PM|LINK
A bug has been filed at http://pecl.php.net/bugs/bug.php?id=18010. And we are actively working on a fix.
Thanks,
Don.
don.raman
1207 Posts
Microsoft
Moderator
Re: Wincache 1.1 and Wordpress plugin problem
Aug 09, 2010 11:55 PM|LINK
Hi,
I just had a conversation with the developer and as guessed WINCACHE file change notification feature is causing the problem. So another workaround is to disable wincache file change notification. Just set wincache.fcndetect=0 in your php.ini file. Details about this directive can be found at http://us2.php.net/manual/en/wincache.configuration.php#ini.wincache.fcndetect.
Thanks,
Don.