Uploading jpg problem

I have 3 jpeg files but I get the following error on 2 of them while the third uploads fine.


The new asset was not created. Ensure you have entered all required information and try again.



* Undefined index: value





The 2 files that display the above error are

http://webdev2.otago.ac.nz/matrix/DTP_TS.jpg

http://webdev2.otago.ac.nz/matrix/DTP_TS.jpg



The successful file is

http://webdev2.otago.ac.nz/matrix/DTP_TS.jpg

Is this via the Admin Interface or an Asset Builder? If you're using an Asset Builder, can you upload them successfully via the Admin Interface? Either way, could you turn on the extra debug settings on the System Configuration screen so that we might see what file/line number the error is being generated on?

I have been trying an assetbuilder, but I get the following if I upload via the admin interface…

    PHP Notice
    File: 	[SYSTEM_ROOT]/core/assets/files/image/image_edit_fns.inc 	Line: 	659
    Message: 	Undefined index: value
    Backtrace: 	Show


With a backtrace of
    0 => array (
    	"function" => "sq_error_handler",
    	"args" => array (
    		0 => 8,
    		1 => "Undefined index:  value",
    		2 => "[SYSTEM_ROOT]/core/assets/files/image/image_edit_fns.inc",
    		3 => 659,
    		4 => array (
    			[Max Depth Reached]
    		) 
    	) 
    ),
    1 => array (
    	"file" => "[SYSTEM_ROOT]/core/assets/files/image/image_edit_fns.inc",
    	"line" => 659,
    	"function" => "_extractimagemetadata" 
    ),
    2 => array (
    	"file" => "[SYSTEM_ROOT]/core/assets/files/image/image_edit_fns.inc",
    	"line" => 153,
    	"function" => "_extractimagemetadata",
    	"class" => "image_edit_fns",
    	"type" => "->",
    	"args" => array (
    		0 => "[SYSTEM_ROOT]/data/private/assets/image/0013/1525/DTP_TS.jpg" 
    	) 
    ),
    3 => array (
    	"file" => "[SYSTEM_ROOT]/core/assets/files/file/file.inc",
    	"line" => 174,
    	"function" => "processfileupload",
    	"class" => "image_edit_fns",
    	"type" => "->",
    	"args" => array (
    		0 => new image Object (
    			[Max Depth Reached]
    		),
    		1 => new backend_outputter Object (
    			[Max Depth Reached]
    		),
    		2 => "image_0",
    		3 => array (
    			[Max Depth Reached]
    		),
    		4 =>  
    	) 
    ),
    4 => array (
    	"file" => "[SYSTEM_ROOT]/core/include/asset.inc",
    	"line" => 481,
    	"function" => "_createadditional",
    	"class" => "image",
    	"type" => "->",
    	"args" => array (
    		0 => array (
    			[Max Depth Reached]
    		) 
    	) 
    ),
    5 => array (
    	"file" => "[SYSTEM_ROOT]/core/assets/files/file/file.inc",
    	"line" => 141,
    	"function" => "create",
    	"class" => "asset",
    	"type" => "::",
    	"args" => array (
    		0 => array (
    			[Max Depth Reached]
    		) 
    	) 
    ),
    6 => array (
    	"file" => "[SYSTEM_ROOT]/core/assets/files/file/file.inc",
    	"line" => 768,
    	"function" => "create",
    	"class" => "image",
    	"type" => "->",
    	"args" => array (
    		0 => array (
    			[Max Depth Reached]
    		) 
    	) 
    ),
    7 => array (
    	"file" => "[SYSTEM_ROOT]/core/include/asset_manager_edit_fns.inc",
    	"line" => 120,
    	"function" => "processbackend",
    	"class" => "image",
    	"type" => "->",
    	"args" => array (
    		0 => new backend_outputter Object (
    			[Max Depth Reached]
    		),
    		1 => array (
    			[Max Depth Reached]
    		) 
    	) 
    ),
    8 => array (
    	"file" => "[SYSTEM_ROOT]/core/include/asset_manager.inc",
    	"line" => 7333,
    	"function" => "paintbackend",
    	"class" => "asset_manager_edit_fns",
    	"type" => "->",
    	"args" => array (
    		[Empty]
    	) 
    ),
    9 => array (
    	"file" => "[SYSTEM_ROOT]/core/include/backend.inc",
    	"line" => 1343,
    	"function" => "paintbackend",
    	"class" => "asset_manager",
    	"type" => "->",
    	"args" => array (
    		0 => new backend Object (
    			[Max Depth Reached]
    		) 
    	) 
    ),
    10 => array (
    	"file" => "[SYSTEM_ROOT]/core/include/backend.inc",
    	"line" => 189,
    	"function" => "_printmain",
    	"class" => "backend",
    	"type" => "->",
    	"args" => array (
    		[Empty]
    	) 
    ),
    11 => array (
    	"file" => "[SYSTEM_ROOT]/core/include/mysource.inc",
    	"line" => 355,
    	"function" => "paint",
    	"class" => "backend",
    	"type" => "->",
    	"args" => array (
    		[Empty]
    	) 
    ),
    12 => array (
    	"file" => "[SYSTEM_ROOT]/core/web/index.php",
    	"line" => 31,
    	"function" => "start",
    	"class" => "mysource",
    	"type" => "->",
    	"args" => array (
    		[Empty]
    	) 
    )

This error is coming from the Photoshop Metadata Extraction toolkit – if you disable that on the External Tools screen, does it work?


Yep.

Ok, I'd log a bug on our tracker and upload those JPGs that break the extraction so that the devs can look at it.

Bug #2792

Stupid question: You do have the Photoshop Metadata Toolkit installed, right? Just thought I'd check. :slight_smile:


Yep :)

Cool. Its good to be sure of these things. :P

what does the photoshop metadata toolkit do? we've got it turned on but it brings up an error every time an image is uploaded saying the path to the jpge metadata tool is invalid. i've turned it off for now as i'm sick of seeing the message


It's a toolkit that allows the manipulation of metadata in jpeg files.

http://www.ozhiker.com/electronics/pjmt/library/documentation/intro.html

As Avi asked me earlier, you do have the toolkit installed and it's location set in the global prefs?

is there another website to get this toolkit from? the ozhiker.com has been disabled. tried googling but everyone points to that site! and anyone know if its been updated? there was some criticism around about it not working with Adobe CS2 due to changes Adobe made to the RDF format?

No updates for it and no other site unfortunately. You can contact Squiz for a copy.