Browse image (icon) is sporadic and unpredictable

Sometimes after a CSV we see an icon and sometime we do not in the browse items. Ideas?

There should always be an icon of some sort, even if it is just the fallback icon for when Omeka can't generate a derivative image. Is there really nothing shown, or is it just the fallback?

Please see the following.

They appear on the homepage:
http://library.gc.cuny.edu/aleph/icons_on_home.jpg

but randomly appear in browse view:
http://library.gc.cuny.edu/aleph/random_icons_browse.jpg

Thanks. As a test to locate the issue, could I ask you to manually create an item that doesn't get the icon from CSV? For example, manually create the item "A psychometric study...." that's at the top of the home page list.

I suspect that it isn't really a CSV thing, but a quirk in file types and derivatives, and an inconsistency between how the theme renders the front page and how it renders the browse list. A manual creation of the same item will help us sort out whether it's a CSV thing, or the broader theme issue.

Same result after manual creation:
http://library.gc.cuny.edu/aleph/same_result.jpg

Thanks...that confirms my suspicion, that it's a difference in the Berlin theme in how it displays a list of items on the front page, versus the browse page.

The fix is:

In items/browse.php, change 'has thumbnail' to 'has files'

https://github.com/omeka/theme-berlin/commit/e01fb8bd724cdba91cbfa5a05f68381dce759886

Do I change it or add to it? I encountered the following error when I changed it:

InvalidArgumentException
'has_file' is an invalid special value.

exception 'InvalidArgumentException' with message ''has_file' is an invalid special value.' in /var/www/html/legacy/application/libraries/Omeka/Record/AbstractRecord.php:349
Stack trace:
#0 /var/www/html/legacy/application/models/Item.php(205): Omeka_Record_AbstractRecord->getProperty('has_file')
#1 /var/www/html/legacy/application/views/helpers/Metadata.php(159): Item->getProperty('has_file')
#2 /var/www/html/legacy/application/views/helpers/Metadata.php(134): Omeka_View_Helper_Metadata->_getRecordMetadata(Object(Item), 'has file')
#3 /var/www/html/legacy/application/views/helpers/Metadata.php(70): Omeka_View_Helper_Metadata->_getText(Object(Item), 'has file')
#4 [internal function]: Omeka_View_Helper_Metadata->metadata('item', 'has file', Array)
#5 /var/www/html/legacy/application/libraries/Zend/View/Abstract.php(350): call_user_func_array(Array, Array)
#6 /var/www/html/legacy/application/libraries/globals.php(2004): Zend_View_Abstract->__call('metadata', Array)
#7 /var/www/html/legacy/application/libraries/globals.php(2004): Omeka_View->metadata('item', 'has file', Array)
#8 /var/www/html/legacy/themes/berlin/items/browse.php(33): metadata('item', 'has file')
#9 /var/www/html/legacy/application/libraries/Omeka/View.php(117): include('/var/www/html/l...')
#10 /var/www/html/legacy/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run('/var/www/html/l...')
#11 /var/www/html/legacy/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(905): Zend_View_Abstract->render('items/browse.ph...')
#12 /var/www/html/legacy/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(926): Zend_Controller_Action_Helper_ViewRenderer->renderScript('items/browse.ph...', NULL)
#13 /var/www/html/legacy/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(965): Zend_Controller_Action_Helper_ViewRenderer->render()
#14 /var/www/html/legacy/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#15 /var/www/html/legacy/application/libraries/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#16 /var/www/html/legacy/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('browseAction')
#17 /var/www/html/legacy/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#18 /var/www/html/legacy/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#19 /var/www/html/legacy/application/libraries/Zend/Application.php(382): Zend_Application_Bootstrap_Bootstrap->run()
#20 /var/www/html/legacy/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#21 /var/www/html/legacy/index.php(23): Omeka_Application->run()
#22 {main}

First guess is that you don't need the underscore. Just 'has files', as it appears in the code linked to above.

thanks, removed underscore and worked.