Craft CMS Asked by Graham Bennett on February 24, 2021
I have a Craft 2 install that’s been working fine until recently when the admin page is giving an error:
file_put_contents(): Exclusive locks are not supported for this stream
The front end is fine.
It seems (according to https://docs.craftcms.com/v3/config/config-settings.html) that NFS filesystems do not like Exclusive Locks, and the host uses NFS (the webserver the site is on connects to a backend filer via NFS to read the actual webfiles)
so I have tried changing
/config/general.php
so that useFileLock is set to ‘false’ but this hasn’t changed anything.
Thanks in advance!
Two things:
Make sure you're using false
the boolean and not 'false'
the string.
After you change useFileLocks
to false
, clear the craft/storage/runtime/cache
folder as I believe that setting is cached for whatever the cacheDuration config setting is set to.
Answered by Brad Bell on February 24, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP