• Resolved wtvxy

    (@wtvxy)


    [31-Dec-2021 06:00:39 UTC] PHP Warning: flock(): FileStreamWrapper::stream_lock is not implemented! in /public_html/wp-content/plugins/docket-cache/includes/src/Filesystem.php on line 953

    How to fix this?

Viewing 1 replies (of 1 total)
  • Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi there,

    Seems like it is related to PHP, the flock function failed to lock the cache file when we try to read it. Please try to flush the cache file first.

    Filesystem.php line 953:

    if (flock($handle, \LOCK_SH)) {
                try {
                    $data = @include $file;
                } catch (\Throwable $e) {
                    $error = $e->getMessage();
    
                    $file_error = $e->getFile();
                    if ($this->is_cache_file($file_error)) {
                        $errmsg = 'E: '.$error.\PHP_EOL;
                        $errmsg .= 'L: '.$e->getLine().\PHP_EOL;
                        $errmsg .= 'F: '.basename($file_error).\PHP_EOL;
                        $this->suspend_cache_file($file, $errmsg);
                    }
    
                    $this->log('err', 'internalproc-internalfunc', 'cache_get: '.$error);
                    $data = false;
                }
    
                @flock($handle, \LOCK_UN);
            }
            @fclose($handle);

    Thanks.

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning: flock(): FileStreamWrapper::stream_lock is not implemented’ is closed to new replies.