ladybug
ladybug copied to clipboard
Symfony\Component\Filesystem\Exception\IOException: Unable to write to the "/tmp/ladybug_cache" directory.
I'm having this Exception.
Symfony\Component\Filesystem\Exception\IOException: Unable to write to the "/tmp/ladybug_cache" directory.
I use ladybug to depure web applications (user www) and console applications (my user), so probably need create /tmp/ladybug_cache with 777 permissions
Hello desarrolla2, to solve this problem you just have to modify the file LadyBug/Application.php:
$cachePath = _DIR _.'/cache/'; $file = sprintf('%s/ladybug_cache/%s.php', $cachePath, $parametersHash);
It works for me
see http://symfony.com/doc/current/components/config/caching.html for more infos
@truongdk would you send a PR?
Regards!
@truongdk @desarrolla2 that creates a cache
directory inside the project, it's not the intended behaviour
I have the same problem. I use the version ~1.0, and it is my composer.json:
"php" : ">=5.3.3",
"symfony/symfony" : "2.3.*",
"doctrine/orm" : "~2.2,>=2.2.3,<2.5",
"doctrine/dbal" : "<2.5",
"doctrine/doctrine-bundle" : "~1.2",
"twig/extensions" : "1.0.*",
"symfony/assetic-bundle" : "~2.3",
"symfony/swiftmailer-bundle" : "~2.3",
"symfony/monolog-bundle" : "~2.4",
"sensio/distribution-bundle" : "~2.3",
"sensio/framework-extra-bundle" : "~3.0,>=3.0.2",
"sensio/generator-bundle" : "~2.3",
"incenteev/composer-parameter-handler" : "~2.0",
"raulfraile/ladybug-bundle" : "~1.0",
"predis/predis" : "^1.0",
"snc/redis-bundle" : "1.1.x-dev",
"jms/translation-bundle" : "1.1.0"
"require-dev" : {
"behat/behat" : "2.4.*@stable",
"behat/mink" : "1.4.*@stable",
"behat/mink-extension" : "*",
"behat/mink-goutte-driver" : "*",
"behat/mink-selenium2-driver" : "*",
"behat/symfony2-extension" : "*"
},
For people that are experiencing the same problem utilizing Plesk 12.5+ and can't get it to work despite chmodding /tmp/ladybug_cache to 777 over and over again, look out for folders named like /tmp/systemd-private-....-plesk-php70-fpm-service-.... - select the one corresponding to your utilized PHP version, within them you can find another tmp/ladybug_cache, which is the actual temporary folder. Seems to be another Plesk feature...