These are chat archives for collectiveaccess/support

20th
Feb 2017
ericwm
@eriwm
Feb 20 2017 09:52

@collectiveaccess Good Morning. I have finally got my doc viewer working properly - my gmagick-php extension was not working correctly . I can now get page previews for .doc files but when I try to upload .xls or .ppt files (using media upload in the object editor) the ca editor screen disappears and this message appears
Notice: Undefined offset: 0 in /var/www/html/providence/app/lib/core/Db.php on line 267

Fatal error: Uncaught Error: Class 'ZipArchive' not found in /var/www/html/providence/app/lib/core/Parsers/PHPExcel/PHPExcel/Reader/Excel2007.php:94 Stack trace: #0 /var/www/html/providence/app/lib/core/Plugins/Media/Office.php(331): PHPExcel_Reader_Excel2007->canRead('/tmp/phpW7UfF2....') #1 /var/www/html/providence/app/lib/core/Plugins/Media/Office.php(193): WLPlugMediaOffice->isWordExcelorPPTdoc('/tmp/phpW7UfF2....') #2 /var/www/html/providence/app/lib/core/Media.php(190): WLPlugMediaOffice->divineFileFormat('/tmp/phpW7UfF2....') #3 /var/www/html/providence/app/lib/core/BaseModel.php(4187): Media->divineFileFormat('/tmp/phpW7UfF2....') #4 /var/www/html/providence/app/lib/core/BaseModel.php(2479): BaseModel->_processMedia('media', Array) #5 /var/www/html/providence/app/lib/core/BaseModelWithAttributes.php(474): BaseModel->insert(Array) #6 /var/www/html/providence/app/lib/ca/BundlableLabelableBaseModelWithAttributes.php(249): BaseModelWithAttributes->insert(Array) #7 /var/www/html/providence/app/models/ca_object_represen in /var/www/html/providence/app/lib/core/Parsers/PHPExcel/PHPExcel/Reader/Excel2007.php on line 94
I get a similar error message when trying to upload .ppt files.
I am using ubuntu 16.04 ,1.7 dev schema 143 and php7
Any suggestions on how to fix this would be most welcom

Julia
@juliaweist
Feb 20 2017 17:42
@artvrc can you give an example of somewhere commas are ignored? Also your constant is entered incorrectly for ca.entities.Entity_source_menu. This should be the list value code you are targeting to be imported for all rows for that element.