Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

PHP Warning: fopen(/storage/cache/cache.seopro.cat_tree.1638473536): failed to open stream: No such file or directory in //system/library/cache/file.php on line 28


ky4ka
 Share

Recommended Posts

2021-12-02 22:32:22 - PHP Warning:  fopen(//storage/cache/cache.seopro.cat_tree.1638473536): failed to open stream: No such file or directory in //public_html/system/library/cache/file.php on line 28
2021-12-02 22:32:22 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in //public_html/system/library/cache/file.php on line 30
2021-12-02 22:32:22 - PHP Warning:  filesize(): stat failed for //storage/cache/cache.seopro.cat_tree.1638473536 in //luccar.ru/public_html/system/library/cache/file.php on line 32
2021-12-02 22:32:22 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in //public_html/system/library/cache/file.php on line 40
2021-12-02 22:32:22 - PHP Warning:  fclose() expects parameter 1 to be resource, bool given in //public_html/system/library/cache/file.php on line 42
2021-12-03 11:52:16 - PHP Warning:  filesize(): stat failed for /storage/cache/cache.seopro.product_categories.1638521536 in //public_html/system/library/cache/file.php on line 32
2021-12-03 11:52:17 - PHP Warning:  fopen(//storage/cache/cache.seopro.product_categories.1638521537): failed to open stream: No such file or directory in //public_html/system/library/cache/file.php on line 28
2021-12-03 11:52:17 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in //public_html/system/library/cache/file.php on line 30
2021-12-03 11:52:17 - PHP Warning:  fread() expects parameter 1 to be resource, bool given in //public_html/system/library/cache/file.php on line 35
2021-12-03 11:52:17 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in //public_html/system/library/cache/file.php on line 40
2021-12-03 11:52:17 - PHP Warning:  fclose() expects parameter 1 to be resource, bool given in //public_html/system/library/cache/file.php on line 42

Здравствуйте, может кто подсказать как исправить ошибку? какого файла не хваиет и почему его нельзя открыть) права усиновлены 700.

Link to comment
Share on other sites


36 минут назад, AlexDW сказал:

 

 

Спасипотому что, в остор 3.0.3 уже ик было прописано изначально:

public function delete(string $key) {
		$files = glob(DIR_CACHE . 'cache.' . basename($key) . '.*');

		if ($files) {
			foreach ($files as $file) {
				if ([email protected]($file)) {
					clearstatcache(false, $file);
				}
			}
		}
	}
}

 

 

Сравнил с примером ( https://github.com/opencart/opencart/blob/master/upload/system/library/cache/file.php ) может гдело в void после delete(string $key) или он им не нужен? 

Edited by ky4ka
Link to comment
Share on other sites


3 часа назад, AlexDW сказал:

void згдесь ни при чем

 

попробуйте после строки

public function get($key) {

 

добавить

clearstatcache();

 

и обновите кеш модификаторов для верности

Спасипотому что, добавил.. буду следить появится ли она еещё или нет 

Link to comment
Share on other sites


В 03.12.2021 в 19:02, AlexDW сказал:

void згдесь ни при чем

 

попробуйте после строки

public function get($key) {

 

добавить

clearstatcache();

 

и обновите кеш модификаторов для верности

нее. не помогло.. 

 

продолжает появляться. 

 

 

Циии

2021-12-04 16:06:47 - PHP Warning:  fopen(/home/o/oleg49kr/luccar.ru/storage/cache/cache.seopro.product_categories.1638623090): failed to open stream: No such file or directory in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 28
2021-12-04 16:06:47 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 30
2021-12-04 16:06:47 - PHP Warning:  filesize(): stat failed for /home/o/oleg49kr/luccar.ru/storage/cache/cache.seopro.product_categories.1638623090 in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 32
2021-12-04 16:06:47 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 40
2021-12-04 16:06:47 - PHP Warning:  fclose() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 42
2021-12-05 0:15:41 - PHP Warning:  fopen(/home/o/oleg49kr/luccar.ru/storage/cache/cache.seopro.keywords.1638652538): failed to open stream: No such file or directory in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 28
2021-12-05 0:15:41 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 30
2021-12-05 0:15:41 - PHP Warning:  filesize(): stat failed for /home/o/oleg49kr/luccar.ru/storage/cache/cache.seopro.keywords.1638652538 in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 32
2021-12-05 0:15:41 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 40
2021-12-05 0:15:41 - PHP Warning:  fclose() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 42
2021-12-05 1:16:39 - PHP Warning:  fopen(/home/o/oleg49kr/luccar.ru/storage/cache/cache.seopro.product_categories.1638656199): failed to open stream: No such file or directory in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 28
2021-12-05 1:16:39 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 30
2021-12-05 1:16:39 - PHP Warning:  fread() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 35
2021-12-05 1:16:39 - PHP Warning:  flock() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 40
2021-12-05 1:16:39 - PHP Warning:  fclose() expects parameter 1 to be resource, bool given in /home/o/oleg49kr/luccar.ru/public_html/system/library/cache/file.php on line 42

 

Link to comment
Share on other sites


В 03.12.2021 в 20:02, AlexDW сказал:

добавить

clearstatcache();

вместо

clearstatcache();

 

попробуйте

clearstatcache(true);

 

и кеш модификаторов не забудьте обновить

 

если не поможет - имеет смысл задать вопрос своему хостеру

  • +1 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.