php error
Posted: Fri Oct 13, 2023 6:23 am
Hi I have a problem within my opencart site in version 2.0.1.1. with php 7.4. These errors are generated in the error log file:
PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock () expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file.php on line 51
2023-10-12 21:56:32 - PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file.php on line 51
2023-10-12 21:56:32 - PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 53
2023-10-12 21:56:32 - PHP Warning: fflush() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 55
2023-10-12 21:56:32 - PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 57
2023-10-12 21:56:32 - PHP Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 59
/httpdocs/system/library/cache/file.php online 53
2023-10-12 21:56:32 - PHP Warning: fflush() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 55
2023-10-12 21:56:32 - PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 57
2023-10-12 21:56:32 - PHP Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 59
These errors cause me to display the front of the site incorrectly. Can you help me solve this problem? Thank you
PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock () expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file.php on line 51
2023-10-12 21:56:32 - PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /var/www/vhosts/PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file.php on line 51
2023-10-12 21:56:32 - PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 53
2023-10-12 21:56:32 - PHP Warning: fflush() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 55
2023-10-12 21:56:32 - PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 57
2023-10-12 21:56:32 - PHP Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 59
/httpdocs/system/library/cache/file.php online 53
2023-10-12 21:56:32 - PHP Warning: fflush() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 55
2023-10-12 21:56:32 - PHP Warning: flock() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 57
2023-10-12 21:56:32 - PHP Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/vhosts/######/httpdocs/system/library/cache/file .php online 59
These errors cause me to display the front of the site incorrectly. Can you help me solve this problem? Thank you