By CHanging the following the error changes

MrMattles - December 16, 2005 - 06:11
Project:Image
Version:4.6.x-1.x-dev
Component:image.module
Category:bug report
Priority:critical
Assigned:walkah
Status:closed
Description

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.

#1

MrMattles - December 16, 2005 - 06:23
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

#2

walkah - December 16, 2005 - 17:08
Assigned to:Anonymous» walkah

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

#3

MrMattles - December 17, 2005 - 03:13

// $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

#4

MrMattles - December 17, 2005 - 03:35

Problem also occurs on file version....

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

#5

drewish - July 1, 2007 - 23:44
Status:active» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.