Fatal error triggered (PHP 8.1)
-
Hello,
the following error gets triggered by my website running PHP 8.1:
PHP Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /var/www/mydomain.com/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:3227
I think I got rid of it by changing the code to
if ($fp = @fopen( $gc_flag, 'w' )) @fclose( $fp );
but a default fix in an upcoming update would be great!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal error triggered (PHP 8.1)’ is closed to new replies.