Jump to content

TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given.

You are viewing a curated collection of the most significant posts in this topic.

Featured Replies

Posted

Could contain: Text

I have been getting a lot of these errors recently.

  • 2 years later...

No, these issues are new. They've got occured when I upgraded my IPB

Could contain: Page, Text

  • Community Expert

I usually see this issue logged when the setting to cache templates to disk is enabled. Check, and if you have it enabled, try disabling it and the error should go away.

Unless you need it enabled for some reason? It usually causes only more trouble enabled, though. 🤷‍♂️

Yes, tempates disk cache is enable.

I clean all cache and this issue gone

  • Author
On 8/13/2024 at 4:13 PM, Marc said:

Please disable that and let us know if that resolves the issue in the first instance

I do not think this issue is about disk caching, but the fact that the data being saved is a false (boolean).

Looks to me that there is an issue elsewhere, and turning off disk caching doesn't fix the issue, but just prevents the error. This issue only started after the core updated to 8.1.

I haven't had a chance to actually debug this issue further, but what I have seen, I don't think turning off disk caching is the actual solution to this issue.

  • 1 month later...

Has anyone found a solution for 
 

`TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given.`

disable `template cache on your disk` is not solution

 

Recently Browsing 0

  • No registered users viewing this page.