I installed the latest version of Imagecache, enabled the module, and all I get are blank pages from that point on.

(re)Moving the imagecache folder from 'modules' and looking at the log shows the following three errors repeated A LOT:

  1. Missing argument 3 for cache_set() in /[MYPATH]/includes/cache.inc on line 93.
  2. Table '[MYDB].a0' doesn't exist query: LOCK TABLES a0 WRITE in /[MYPATH]/includes/database.mysql.inc on line 167.
  3. You have an error in your SQL syntax near ':0:{} SET data = '', created = 1169671509, expire = 0, headers = '' WHERE cid = ' at line 1 query: UPDATE a:0:{} SET data = '', created = 1169671509, expire = 0, headers = '' WHERE cid = 'imagecache:presets' in /[MYPATH]/includes/database.mysql.inc on line 167.

The problems seem to start with the missing 3rd parameter on cache_set() and I note that:
imagecache.module:191: cache_set('imagecache:presets', serialize($presets));

and that:
cache.inc:93:function cache_set($cid, $table = 'cache', $data, $expire = CACHE_PERMANENT, $headers = NULL) {

NB: "MYPATH" and "MYDB" represent my web path and my drupal database name respectively.

Comments

benedett’s picture

I am getting similar errors with the most recent version.

* warning: Missing argument 3 for cache_set() in /homepages/32/d144802238/htdocs/worcesterindymedia/drupal/includes/cache.inc on line 93.
* user warning: Table 'db182868313.a1i2s17article_mainimage' doesn't exist query: LOCK TABLES a1i2s17article_mainimage WRITE in /homepages/32/d144802238/htdocs/worcesterindymedia/drupal/includes/database.mysql.inc on line 167.
* user warning: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ':1:{i:2;s:17:\"article_mainimage\";} SET data = '', created = 1 query: UPDATE a:1:{i:2;s:17:\"article_mainimage\";} SET data = '', created = 1169673491, expire = 0, headers = '' WHERE cid = 'imagecache:presets' in /homepages/32/d144802238/htdocs/worcesterindymedia/drupal/includes/database.mysql.inc on line 167.

dopry’s picture

I made some miscommits last night. They should be corrected in the lastest CVS version for 5.x. Please update from DRUPAL-5 branch in CVS. Clear your cache and try again.

benedett’s picture

Status: Active » Closed (fixed)

Thanks. The Jan 25 version no longer breaks the site.