image_style_url no longer creates images This started today on a website that has been running for over two months. I have a custom module that creates an image using the following code:

$image = image_style_url("catalogue_category_image_size", $product-&gt;field_product_image["und"][0]["uri"]);


This also did not work, but was the original code from earlier today:

$image = image_style_url("catalogue_category_image_size", $product-&gt;field_product_image["und"][0]["filename"]);


Here is the site, for reference: http://www.boudiccacollection.com/boudicca-catalog

I have no errors at all in the watchdog log or in apache logs. My status report page is green.

The only thing I would note is that the site was recently upgraded to drupal 7.23 from drupal 7.18

I have disabled clean url's to no avail.

EDIT I've added $conf['image_allow_insecure_derivatives'] = TRUE; to my settings.php and it did not correct the issue, however I now have error messages relating to 2 styles of one image (not all styles...)

Watchdog message:
     http://www.boudiccacollection.com/sites/default/files/styles/catalogue_category_image_size/public/BR004_WEB.jpg?itok=hetdMSsA
    http://www.boudiccacollection.com/boudicca-catalog
    Unable to generate the derived image located at public://styles/catalogue_category_image_size/public/BR004_WEB.jpg.

EDIT The same image is used in three places and works in one and not the other two.

Place 1 (broken):


URL: http://www.boudiccacollection.com/boudicca-catalog
Image: http://www.boudiccacollection.com/sites/default/files/styles/catalogue_category_image_size/public/BR004_WEB.jpg?itok=hetdMSsA


Place 2 (broken):


URL: http://www.boudiccacollection.com/boudicca-catalog
Image: http://www.boudiccacollection.com/sites/default/files/styles/catalogue_category_product_image_size/public/BR004_WEB.jpg?itok=SIXXe2Yq


Place 3 (works):


URL: http://www.boudiccacollection.com/br004-br004-four-corners-ring
Image: http://www.boudiccacollection.com/sites/default/files/styles/catalogue_product_image_size/public/BR004_WEB_0.jpg?itok=ZtLPZpD9


Place 3 has a different URL even though all of the code should be pulling the same image. Maybe this isn't an image_cache problem...
There was a change on the Image derivative URLs by the Drupal 7.20 update, as the 7.20 release notes also states:

The security fixes in this release change all image derivative URLs generated by Drupal to append a token as a query string. (&quot;Image derivatives&quot; are copies of images which the Drupal Image module automatically creates based on configured image styles; for example, thumbnail, medium, large, etc.)
As an example, links that previously pointed to a URL like http://example.com/sites/default/files/styles/thumbnail/public/field/image/example.png will now point to a URL like http://example.com/sites/default/files/styles/thumbnail/public/field/image/example.png?itok=zD_VaCaD.
In addition, any code which programmatically generates a link to an image derivative without using the standard image_style_url() API function will no longer work correctly if the image does not already exist in the file system, since the necessary token will not be present in the URL.