flock() error and slows down website drastically.
-
Hi! I sometimes get this error, and when I do – it will repeat itself hundreds or even thousands of times. It also slows down the whole website.
PHP Warning: flock() expects parameter 1 to be resource, bool given in /sites/redacted-site.dev/files/wp-content/plugins/gitium/functions.php on line 224
It appears to be because fopen() can’t open or create /tmp/.gitium-lock and returns false. I tried using the ‘gitium_lock_path’ filter defined on line 218 of that same fie (functions.php) to fix the issue, but while debugging, it doesn’t look like that filter even works? Nor is it defined anywhere in documentation that I can find.
It’s also worth noting that (as you can tell in the error) the root directory of my site is not the root directory of wordpress. So if I understand, on line 218,
‘/tmp/.gitium-lock’ is pointing towards a folder that it certainly doesn’t have access to.Can this get fixed? Is there something on my end I need to change?
- The topic ‘flock() error and slows down website drastically.’ is closed to new replies.