Blank screen after image uploading

I know this has been covered a few times, but none of the solutions seem to apply in our case with Omeka 1.1. We get a blank screen upon trying to upload a file. The file itself does seem to land in omeka/archive -- in files, fullsize, and in thumbnails., but is not associated with the item. Upon going back one screen, we get:

Something went wrong with image creation. Please notify an administrator

Details::

1) We have php compiled with exif support (EXIF Support enabled
EXIF Version 1.4)

2) Our path to the imagemagick binary is valid.

3) debug.exceptions = true and display_errors 1 both are turned on, but give no extra info on that blank screen. However I do get the following when turning on error logging:

2010-02-20T21:12:54-08:00 DEBUG (7): Could not retrieve element text for the element
named "IPTC Array"

We're on red had enterprise linux 3, php 5.2.6.

Any thoughts would be appreciated!

--Peter

Hey Peter,

The debug error occurs in

libraries/Omeka/File/Info.php on line 76.

It looks like the $elementText variable is null.

If you have some PHP programming skills, this would be the place to start debugging. For debugging purposes, I might try to echo the $helperFunction and $helperClass variables to see what those are.

What version of Omeka are you using?
What kind of file are you trying to upload?

Sorry for the delay in response, we're on 1.1. The error seems to get thrown with plain old JPEG and GIF files.

Interestingly they generate different errors. GIFs give:

DEBUG (7): Could not retrieve element text for the element named "Exif Array"

JPEGs give:

DEBUG (7): Could not retrieve element text for the element named "IPTC Array"

PDF's upload just fine, however. So what I'm suspecting here is that my imagemagick setup is somehow borked. (Under the assumption that is what is responsible for decoding picture metadata such as iptc and exif.)

The debug error written to the screen is:

Catchable fatal error: Object of class FilesImages could not be converted to string in /nfs/aesop02/hw22/d02/uwch/omeka/application/libraries/Omeka/File/Info.php on line 77

...for both gifs and jpgs.

It turns out that our system has both 6.6.3 and 5.5.6 of Imagemagick (convert) installed -- but this happens with both.

In _populateMimeTypeElements of application/libraries/Omeka/File/Info.php, look at this line:

$elementText = $helperClass->$helperFunction();

I'd be interested to know the value for $helperClass and $helperFunction

Can you echo or var_dump those variables?

Right then, here we go:

Here is the helperClass:

object(FilesImages)#228 (6) {
  ["id3"]=>
  array(8) {
    ["GETID3_VERSION"]=>
    string(7) "2.0.0b4"
    ["filesize"]=>
    int(15721)
    ["avdataoffset"]=>
    int(0)
    ["avdataend"]=>
    int(15721)
    ["mime_type"]=>
    string(10) "image/jpeg"
    ["fileformat"]=>
    string(3) "jpg"
    ["video"]=>
    array(7) {
      ["dataformat"]=>
      string(3) "jpg"
      ["lossless"]=>
      bool(false)
      ["bits_per_sample"]=>
      int(24)
      ["pixel_aspect_ratio"]=>
      float(1)
      ["resolution_y"]=>
      int(190)
      ["resolution_x"]=>
      int(150)
      ["compression_ratio"]=>
      float(0.18387134502924)
    }
    ["jpg"]=>
    array(1) {
      ["exif"]=>
      array(3) {
        ["FILE"]=>
        array(6) {
          ["FileName"]=>
          string(19) "danz_1a57cd8e35.jpg"
          ["FileDateTime"]=>
          int(1269471858)
          ["FileSize"]=>
          int(15721)
          ["FileType"]=>
          int(2)
          ["MimeType"]=>
          string(10) "image/jpeg"
          ["SectionsFound"]=>
          string(5) "APP12"
        }
        ["COMPUTED"]=>
        array(4) {
          ["html"]=>
          string(24) "width="150" height="190""
          ["Height"]=>
          int(190)
          ["Width"]=>
          int(150)
          ["IsColor"]=>
          int(1)
        }
        ["APP12"]=>
        array(2) {
          ["Company"]=>
          string(5) "Ducky"
          ["Info"]=>
          string(1) ""
        }
      }
    }
  }
  ["pathToFile"]=>
  string(66) "/nfs/aesop02/hw22/d02/uwch/omeka/archive/files/danz_1a57cd8e35.jpg"
  ["size"]=>
  array(7) {
    [0]=>
    int(150)
    [1]=>
    int(190)
    [2]=>
    int(2)
    [3]=>
    string(24) "width="150" height="190""
    ["bits"]=>
    int(8)
    ["channels"]=>
    int(3)
    ["mime"]=>
    string(10) "image/jpeg"
  }
  ["info"]=>
  array(3) {
    ["APP0"]=>
    string(14) "JFIF���d�d��"
    ["APP12"]=>
    string(151) "Ducky�����Z������@�h�t�t�p�:�/�/�s�e�a�t�t�l�e�t�i�m�e�s�.�n�w�s�o�u�r�c�e�.�c�o�m�/�A�B�P�u�b�/�2�0�0�9�/�0�8�/�2�4�/�2�0�0�9�7�2�9�3�0�0�.�j�p�g��"
    ["APP14"]=>
    string(12) "Adobe�d����"
  }
  ["exif"]=>
  array(9) {
    ["FileName"]=>
    string(19) "danz_1a57cd8e35.jpg"
    ["FileDateTime"]=>
    int(1269471858)
    ["FileSize"]=>
    int(15721)
    ["FileType"]=>
    int(2)
    ["MimeType"]=>
    string(10) "image/jpeg"
    ["SectionsFound"]=>
    string(5) "APP12"
    ["COMPUTED"]=>
    array(4) {
      ["html"]=>
      string(24) "width="150" height="190""
      ["Height"]=>
      int(190)
      ["Width"]=>
      int(150)
      ["IsColor"]=>
      int(1)
    }
    ["Company"]=>
    string(5) "Ducky"
    ["Info"]=>
    string(1) ""
  }
  ["iptc"]=>
  array(0) {
  }
}

Here is the helperFunction:

string(11) "getBitDepth"

Hello, I am having the exact same problem and was wondering if this issue was resolved. Any information would much appreciated.

Sincerely,
Elizabeth

Hi Elizabeth,

What version of Omeka are you using? And can you confirm that you have the correct path to ImageMagick in your settings panel? Additionally, does this happen with all files, or specific ones or types?

Thanks,
Jeremy