Works on first thumb, fails on others

Thanks for your post, it's just what the doctor ordered. I use phpthumb within expressionengine and have noticed as I pile more sites onto my shared server, my gpu count is rising rapidly per month. Having a few issues though.

When I first run the script I see this error:

Not Found

The image you requested could not be found.

An error was triggered: cannot save thumbnail

If I refresh again the thumbnail shows up correctly. If I try and do this for another image (now that the directory structure has been created from the previous image), this error is displayed:

Warning: mkdir() [function.mkdir]: File exists in C:\site\thumbs\index.php on line 59
Not Found

The image you requested could not be found.

An error was triggered: cannot create directory

I'm running wamp on windows 7, but have also found the same errors on the production server. If I delete the file and directories created for the first thumbnail, I can recreate above errors. Any ideas where I might be going wrong?

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <b> <br> <p> <a> <strong> <cite> <em> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You may use [img:xx] tags to display uploaded files or images inline.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <css>, <diff>, <drupal5>, <html>, <javascript>, <php>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options