Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stat() errors #205

Open
darxmac opened this issue Jul 24, 2017 · 1 comment
Open

stat() errors #205

darxmac opened this issue Jul 24, 2017 · 1 comment

Comments

@darxmac
Copy link

darxmac commented Jul 24, 2017

I'm trying to use php-cvr in a CakePHP plugin, but it fails when the FileCache engine tries to check if a cache file exists or not, and when it does not, stat() fails like this:

1) Shop\Test\TestCase\Controller\PaymentsControllerTest::testStripeErrors
RuntimeException: stat(): stat failed for /var/folders/4m/9gjjdkm95_90s3jpbrm0q33h0000gn/T/caketest/cake_translations_cake_en__u_s__p_o_s_i_x in /projectvendor/php-vcr/php-vcr/src/VCR/Util/StreamProcessor.php:307
Stack trace:
#0 /projectvendor/php-vcr/php-vcr/src/VCR/Util/StreamProcessor.php(307): stat('/var/folders/4m...')
#1 [internal function]: VCR\Util\StreamProcessor->url_stat('/var/folders/4m...', 2)
#2 /projectvendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php(388): SplFileInfo->isFile()
#3 /projectvendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php(184): Cake\Cache\Engine\FileEngine->_setKey('cake_translatio...')
#4 /projectvendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php(148): Cake\Cache\Engine\FileEngine->read('cake_translatio...')

any ideas ?

When running the tests with the cache file in place, it works fine

@snelg
Copy link

snelg commented Nov 9, 2017

Ran into this myself. Tracked down the root problem and submitted pull request #231 to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants