You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ValueError: fread(): Argument #2 ($length) must be greater than 0 in xxx/counter/counter.php:209
Stack trace:
#0 xxx/counter/counter.php(209): fread() #1 xxx/counter/counter.php(234): Esi\SimpleCounter\Counter->readWriteFile() #2 xxx/counter/counter.php(273): Esi\SimpleCounter\Counter->process() #3 xxx/index.php(401): include('...') #4 {main}
thrown in xxx/counter/counter.php on line 209" while reading upstream,
The text was updated successfully, but these errors were encountered:
Thank you for the report @iammeken :) I've never personally encountered this issue, however, could you try something for me? I believe this will resolve it for you.
In counter.php find:
if (self::USE_FLOCK AND \flock($fp, \LOCK_EX)) {
And before that, add:
\clearstatcache();
Should look something like this:
\clearstatcache();
if (self::USE_FLOCK AND \flock($fp, \LOCK_EX)) {
FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ValueError: fread(): Argument #2 ($length) must be greater than 0 in xxx/counter/counter.php:209
Stack trace:
#0 xxx/counter/counter.php(209): fread()
#1 xxx/counter/counter.php(234): Esi\SimpleCounter\Counter->readWriteFile()
#2 xxx/counter/counter.php(273): Esi\SimpleCounter\Counter->process()
#3 xxx/index.php(401): include('...')
#4 {main}
thrown in xxx/counter/counter.php on line 209" while reading upstream,
The text was updated successfully, but these errors were encountered: