I have tried the branches of Drupal 4.6 and various versions from the CVS tree plus the "release" version ofimage.module and I am continuing to get the following error, even changed PHP from 5.0.4 to 5.0.5 to 5.1.1 to 4.4.1 and still keep getting the same error on multiple drupal installs.

warning: Invalid argument supplied for foreach() in /common/www/sites/ozmotorsport.com.au/downloads/image/image.module on line 310.
warning: Cannot modify header information - headers already sent by (output started at /common/www/sites/natoliracing.com/_apps/drupal-4.6.5/includes/common.inc:384) in /common/www/sites/natoliracing.com/_apps/drupal-4.6.5/includes/common.inc on line 192.

Comments

MrMattles’s picture

Title: Error in Multiple versions » By CHanging the following the error changes

By Changing the following to "comment out" the offending lin the error changes

* Implementation of hook_insert
 */
function image_insert($node) {
/**  foreach ($node->images $label => $image) {
foreach ($node->images as $label => $image) {*/
    _image_insert($node->nid, $label, file_create_path($image));
  }
/**}
*/

The error on the returned page is as follows....no image appears...

File copy failed.
Your image was created.
by natoliadmin

walkah’s picture

Assigned: Unassigned » walkah

what version of image.module is this? (please show line 2: // $Id .... $)

MrMattles’s picture

// $Id: image.module,v 1.146.2.2 2005/04/21 17:24:50 mathias Exp

IS the current version although I have tried the following

// $Id: image.module,v 1.177 2005/12/02 17:18:10 walkah Exp
// $Id: image.module,v 1.163 2005/08/29 20:32:58 chx
// $Id: image.module,v 1.177 2005/12/02 17:18:10 walkah
// $Id: image.module,v 1.170 2005/09/29 09:30:54 walkah

MrMattles’s picture

Problem also occurs on file version....

// $Id: image.module,v 1.146.2.11 2005/11/29 18:03:41 walkah

drewish’s picture

Status: Active » Closed (fixed)

This version is no longer supported. If this issue is occurring with a more recent version please open a new issue.