Unable to open for writing: File too large
<p>I am getting this error. What does it mean?</p>

<blockquote>
  <p>Warning: imagejpeg(): Unable to open
  '/home/content/59/.../images/___htmlthumbnail_0b1292bbbcc4199eb4f50651962cf4641329752862.jpg'
  for writing: File too large in
  /home/content/59/.../cms/classes/resize.class.php on line 50</p>
</blockquote>

<p>This is what happens.</p>

<ol>
<li>Big image is uploaded </li>
<li>Big image - if too big - is resized to
the correct dimensions.</li>
<li>4 thumbnails are created.</li>
</ol>

<p>Step 1 is working fine. The main image is being uploaded. The problem is coming with creating the thumbnails. The script is failing here.</p>

<pre><code>imagejpeg($this-&gt;image,$filename,$compression);
</code></pre>

<p>This error is only happening on one server. We deploy our script to hundreds of servers a year. I just cannot find out what this error means. The file is uploading fine so I don't see why it is too large. If the server was running out of memory it would have a memory error surely.</p>

<p>The image I am uploading isn't even particularly big. Its 33KB. 780 x 120px.</p>

<p>Has anyone seen this error before? I assume something server side needs to be adjusted as the script works just fine every where else.</p>
