Note that there are some explanatory texts on larger screens.

plurals
  1. POSymfony2 :500 Internal error on assetic generated file in dev mode
    primarykey
    data
    text
    <p>I use assetic on my Symfony2 project and when i put my project on a new server environement i have the following 500 internal Server Error on the top of the CSS and JS generated files on dev environement. It seems that assetic can't access to the temp directory to generate the file.</p> <pre> [exception] 500 | Internal Server Error | ErrorException [message] Warning: file_put_contents(): Filename cannot be empty in /Users/jo/Developpement/coV2/Symfony/vendor/kriswallsmith/assetic/src/Assetic/Filter/Yui/BaseCompressorFilter.php line 92 [1] ErrorException: Warning: file_put_contents(): Filename cannot be empty in /Users/jo/Developpement/coV2/Symfony/vendor/kriswallsmith/assetic/src/Assetic/Filter/Yui/BaseCompressorFilter.php line 92 at n/a in /Users/jo/Developpement/coV2/Symfony/vendor/kriswallsmith/assetic/src/Assetic/Filter/Yui/BaseCompressorFilter.php line 92 at Symfony\Component\HttpKernel\Debug\ErrorHandler-&gt;handle(&#039;2&#039;, &#039;file_put_contents(): Filename cannot be empty&#039;, &#039;/Users/jo/Developpement/coV2/Symfony/vendor/kriswallsmith/assetic/src/Assetic/Filter/Yui/BaseCompressorFilter.php&#039;, &#039;92&#039;, array(&#039;content&#039; =&gt; &#039;/*! </pre> <p>The line 92 of the BaseCompressorFilter class is the last line of this code : </p> <pre><code> $tempDir = realpath(sys_get_temp_dir()); $input = tempnam($tempDir, 'YUI-IN-'); $output = tempnam($tempDir, 'YUI-OUT-'); file_put_contents($input, $content); </code></pre> <p>$tempDir is ok, but $input is empty.</p> <p>Any idea ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload