| Douglas Hammond
                                                                                                                             | Thursday 05 June 2003 8:05:18 am 
                                                                 I have just reinstalled ez3(not 3.1beta) turned on debugging and here is my image.ini.append.php <?php /* #?ini charset="iso-8859-1"? 
[ConverterSettings]UseConvert=false
 UseGD=true
 
[Rules]DefaultRule=image/jpeg;gd
 Rules[]=image/jpeg;image/jpeg;gd
 Rules[]=image/png;image/png;gd
 Rules[]=image/gif;image/png;gd
 Rules[]=image/xpm;image/png;gd
 */ ?> here is what i get from debugging 
eZ debug Warning: PHP Jun 05 2003 11:03:33
 Undefined variable: wwwDir in /home/ez/public_html/lib/ezutils/classes/ezsys.php on line 539
 Timing: Jun 05 2003 11:03:33
 Script start
 Timing: Jun 05 2003 11:03:33
 Module start 'content'
 Warning: eZModuleOperationInfo::execute Jun 05 2003 11:03:33
 Missing main operation memento for key: 9676311a120b17860aa9a2309ab2d865
 Warning: PHP Jun 05 2003 11:03:33
 imagecreatefromjpeg(var/storage/reference/image//phpkUgijP.jpg): failed to open stream: No such file or directory in /home/ez/public_html/lib/ezimage/classes/ezimagegd.php on line 165
 Warning: PHP Jun 05 2003 11:03:33
 Undefined offset: 1 in /home/ez/public_html/lib/ezimage/classes/ezimagemanager.php on line 410
 Warning: PHP Jun 05 2003 11:03:33
 Undefined offset: 1 in /home/ez/public_html/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 209
 Warning: PHP Jun 05 2003 11:03:33
 getimagesize(): Read error! in /home/ez/public_html/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 211
 Warning: PHP Jun 05 2003 11:03:33
 Undefined offset: 1 in /home/ez/public_html/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 216
 Warning: PHP Jun 05 2003 11:03:33
 Undefined offset: 1 in /home/ez/public_html/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 223
 Error: eZImageVariation Jun 05 2003 11:03:33
 Undefined attribute 'contentobject_attribute_id, version, requestedwidth, requestedheight', cannot get
 Error: eZImageVariation Jun 05 2003 11:03:33
 Undefined attribute 'contentobject_attribute_id, version, requestedwidth, requestedheight', cannot get
 Timing: Jun 05 2003 11:03:33
 Module end 'content'
 Timing: Jun 05 2003 11:03:33
 End
 
 
notice Warning: PHP Jun 05 2003 11:03:33 imagecreatefromjpeg(var/storage/reference/image//phpkUgijP.jpg):
 there is a double '/' before the file name.
 in the past i have edited the souce and removed the extra '/' but then i get that it can't open the file in var/storage/refrence/image. Shouldn't it be looking in var/storage/origional/image. If not were where does a copy get made from var/storage/origional/image to var/storage/refrence/image? | 
                                                                                                    
                                                        | Douglas Hammond
                                                                                                                             | Friday 06 June 2003 1:14:27 pm 
                                                                 More acuratly her is a diff 
diff -urN kernel/classes/datatypes/ezimage/ezimagevariation.php /home/ez/public_html/kernel/classes/datatypes/ezimage/ezimagevariation.php--- kernel/classes/datatypes/ezimage/ezimagevariation.php 2003-04-24 09:08:07.000000000 -0400
 +++ /home/ez/public_html/kernel/classes/datatypes/ezimage/ezimagevariation.php 2003-06-06 15:45:53.000000000 -0400
 @@ -205,23 +205,19 @@
 false
 );
 
- $refImageFilename = explode( ':', $refImagename);- $refImagename = $variationPath . '/' . $additionalPath . '/' . $refImageFilename[ 1 ];
 + $imageFullPath = $variationPath . '/' . $additionalPath . '/'. $refImagename;
 
- $imgsize = getimagesize ( $refImagename );- unset( $refImagename );
 + $imgsize = getimagesize ( $imageFullPath );
 
 $imageVariation = new eZImageVariation( array("contentobject_attribute_id" => $ezimageobj->attribute( "contentobject_attribute_id" ),"version" => $ezimageobj->attribute( "version" ),
 - "filename" => $refImageFilename[1],
 + "filename" => $refImagename,
 "additional_path" => $additionalPath,
 "requested_width" => $rwidth,
 "requested_height" => $rheight,
 "width" => $imgsize[0],
 "height" => $imgsize[1] ) );
 
- $imageFullPath = $variationPath . '/' . $additionalPath . '/' . $refImageFilename[1];-
 
 if ( filesize( $imageFullPath ) == 0 || !file_exists( $imageFullPath ) ){
 diff -urN kernel/common/image.php /home/ez/public_html/kernel/common/image.php
 --- kernel/common/image.php 2003-04-24 09:08:12.000000000 -0400
 +++ /home/ez/public_html/kernel/common/image.php 2003-06-06 15:37:00.000000000 -0400
 @@ -91,7 +91,7 @@
 if ( $useGD )
 {
 $img->registerType( 'gd', new eZImageGD( EZ_IMAGE_KEEP_SUFFIX,
 - EZ_IMAGE_PREPEND_SUFFIX_TAG ) );
 + EZ_IMAGE_KEEP_SUFFIX ) );
 }
 
 // Output typesdiff -urN lib/ezimage/classes/ezimagegd.php /home/ez/public_html/lib/ezimage/classes/ezimagegd.php
 --- lib/ezimage/classes/ezimagegd.php 2003-04-24 09:08:20.000000000 -0400
 +++ /home/ez/public_html/lib/ezimage/classes/ezimagegd.php 2003-06-06 15:38:08.000000000 -0400
 @@ -157,7 +157,7 @@
 }
 $src = "";
 $dst = "";
 - $to_dst = $from;
 + $to_dst = $to;
 $to_dst["suffix"] = $to["suffix"];
 $src .= $this->convertFileName( $from, $this->FromType );
 $dst .= $this->convertFileName( $to_dst, $this->ToType );
 @@ -193,9 +193,9 @@
 /*!
 Calls convert() with the $filters and $scale param.
 */
 - function scale( &$from, &$to, &$to_file, &$filters, $scale )
 + function scale( &$from, &$to, &$to_dir, &$to_file, &$filters, $scale )
 {
 - $this->convert( $from, $to, $to_file, $filters, $scale );
 + $this->convert( $from, $to, $to_dir, $to_file, $filters, $scale );
 }
 
 /// Array of allowed input types mapped to the corresponding function.diff -urN lib/ezimage/classes/ezimagemanager.php /home/ez/public_html/lib/ezimage/classes/ezimagemanager.php
 --- lib/ezimage/classes/ezimagemanager.php 2003-04-24 09:08:21.000000000 -0400
 +++ /home/ez/public_html/lib/ezimage/classes/ezimagemanager.php 2003-06-06 15:39:17.000000000 -0400
 @@ -328,10 +328,10 @@
 $this->addFilterRule( $rules, true );
 $suffix = $mime["suffix"];
 $dirs = "";
 - if ( preg_match( "#(.+/)?(.+)$#", $file, $matches ) )
 + if ( preg_match( "#((.+)/)?(.+)$#", $file, $matches ) )
 {
 - $dirs = $matches[1];
 - $file = $matches[2];
 + $dirs = $matches[2];
 + $file = $matches[3];
 }
 $base = $file;
 if ( preg_match( "/(.+)" . $mime["match"] . "/i", $file, $matches ) )
 @@ -348,10 +348,10 @@
 {
 $dest_dirs = "";
 $dest_file = $dest;
 - if ( preg_match( "#(.+/)?(.+)$#", $dest, $matches ) )
 + if ( preg_match( "#((.+)/)?(.+)$#", $dest, $matches ) )
 {
 - $dest_dirs = $matches[1];
 - $dest_file = $matches[2];
 + $dest_dirs = $matches[2];
 + $dest_file = $matches[3];
 }
 $dest_base = $dest_file;
 if ( preg_match( "/(.+)" . $mime["match"] . "/i", $dest_file, $matches ) )
 @@ -410,7 +410,7 @@
 list( $mimeType, $storedFileName ) = split(":", $to_file );
 eZLog::writeStorageLog( $storedFileName, $dest_dirs );
 
- return $from_array["dir"] . "/" . $out_file;+ return $out_file;
 }
  /*! |