Magento FPC throwing "Could not open stream: no such file or directory"

Our Magento started throwing this error for full Cache page entries two days ago and is constantly flooding the magazine. No errors at the front, but judging by the speed, it is not cached. So the log is full of this:

DEBUG (7): file_get_contents(/...var/full_page_cache//mage--tags/mage---713_CATALOG_PRODUCT_67229): failed to open stream: No such file or directory ...lib/Mage/Cache/Backend/File.php

Installed a new magento in subdir, everything works fine. returned the code up to three months ago, the same error. disabled all custom modules, no effects. permissions seem good because magento can write to all folders.

we noticed that the file is created in var / full_page_cache, and then disappears right away. just mage--tagsremains populated .. we installed redis and processed the FPC, errors started appearing after we disabled it (and Magento abandoned its own FPC)

Any ideas?

UPDATE: Errors occur while Navision sync (Using magento api) is running.

+4
source share
1 answer

Check your caching path from the error log:

file_get_contents(/...var/full_page_cache//mage--tags/mage---713_CATALOG_PRODUCT_67229): failed to open stream: No such file or directory ...lib/Mage/Cache/Backend/File.php

The path is invalid in the section "... full_page_cache // mage-tags ...". Change // to / and delete.

0
source

Source: https://habr.com/ru/post/1539818/


All Articles