OMP cover image upload produces Assertion failed error

Hello, I have managed to install and set up OMP on Nginx server. All seemed to be working, but when i was trying to upload the cover image to my submission i found this from the error log:


2015/10/07 05:50:18 [error] 15066#0: *71 FastCGI sent in stderr: "PHP message: omp has produced an error
  Message: WARNING: assert(): Assertion failed
  In file: /var/www/omp/htdocs/classes/codelist/ONIXCodelistItemDAO.inc.php
  At line: 91
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.11
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1
PHP message: omp has produced an error
  Message: WARNING: assert(): Assertion failed
  In file: /var/www/omp/htdocs/classes/codelist/ONIXCodelistItemDAO.inc.php
  At line: 91
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.11
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1
PHP message: omp has produced an error
  Message: WARNING: assert(): Assertion failed
  In file: /var/www/omp/htdocs/classes/codelist/ONIXCodelistItemDAO.inc.php
  At line: 91
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.11
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1" while reading response header from upstream, client: 152.78.36.20, server: omp, request: "POST /index.php/eaa/$$$call$$$/tab/catalog-entry/catalog-entry-tab/save-form HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "omp", referrer: "http://omp/index.php/eaa/manageCatalog"
2015/10/07 05:50:19 [error] 15066#0: *71 FastCGI sent in stderr: "PHP message: omp has produced an error
  Message: WARNING: assert(): Assertion failed
  In file: /var/www/omp/htdocs/classes/codelist/ONIXCodelistItemDAO.inc.php
  At line: 91
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.11
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1
PHP message: omp has produced an error
  Message: WARNING: assert(): Assertion failed
  In file: /var/www/omp/htdocs/classes/codelist/ONIXCodelistItemDAO.inc.php
  At line: 91
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.11
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1
PHP message: omp has produced an error
  Message: WARNING: assert(): Assertion failed
  In file: /var/www/omp/htdocs/classes/codelist/ONIXCodelistItemDAO.inc.php
  At line: 91
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.11
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1" while reading response header from upstream, client: 152.78.36.20, server: omp, request: "GET /index.php/eaa/$$$call$$$/tab/catalog-entry/catalog-entry-tab/catalog-metadata?tab=catalog&submissionId=2&stageId=5&tabPos=1&_=1444211418984 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "omp", referrer: "http://omp/index.php/eaa/manageCatalog"
2015/10/07 05:50:19 [error] 15066#0: *71 FastCGI sent in stderr: "PHP message: omp has produced an error
  Message: WARNING: assert(): Assertion failed
  In file: /var/www/omp/htdocs/classes/codelist/ONIXCodelistItemDAO.inc.php
  At line: 91
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.11
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1
PHP message: NOTICE: Undefined index: DA (/var/www/omp/htdocs/classes/publicationFormat/PublicationFormat.inc.php:82)" while reading response header from upstream, client: 152.78.36.20, server: omp, request: "GET /index.php/eaa/$$$call$$$/grid/catalog-entry/publication-format-grid/fetch-grid?submissionId=2&inCatalogEntryModal=1&_=1444211419480 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "omp", referrer: "http://omp/index.php/eaa/manageCatalog"
1 Like

This looks like OMP is unable to use XSLT. The call is here:

A first guess would be your XSLT configuration. OMP tries to use the xslt_command specified in your config.inc.php, or tries to use PHP itself if you have the modules DOM and XSL enabled.

Do you know what configuration you’re using? You can check the setting in config.inc.php and the PHP modules in phpinfo().

Hello

I have now installed the missing xsl library for php (http://omp.archiving.zone/phpinfo.php), and error message disappeared. But still, the issue remains the same … when uploading cover photo and clicking save-button, uploaded file disappear from the list.
In OMP config i have not set anything for xslt_command and xslt_parameter_option

Probably related issue to my xsl/schema problem. When trying to export Native XML blank page is displayed and the following error logged:

2015/10/09 08:52:18 [error] 27028#0: *9360 FastCGI sent in stderr: "PHP message: omp has produced an error
  Message: WARNING: DOMDocument::schemaValidate(): Element '{http://ns.editeur.org/onix/3.0/reference}SenderIDType': [facet 'enumeration'] The value '' is not an element of the set {'01', '02', '03', '04', '05', '06', '07', '10', '13', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24'}.
  In file: /var/www/omp.archiving.zone/htdocs/lib/pkp/classes/xslt/XMLTypeDescription.inc.php
  At line: 126
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.13
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1
PHP message: omp has produced an error
  Message: WARNING: DOMDocument::schemaValidate(): Element '{http://ns.editeur.org/onix/3.0/reference}SenderIDType': '' is not a valid value of the atomic type '{http://ns.editeur.org/onix/3.0/reference}List44'.
  In file: /var/www/omp.archiving.zone/htdocs/lib/pkp/classes/xslt/XMLTypeDescription.inc.php
  At line: 126
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.13
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1
PHP message: omp has produced an error
  Message: WARNING: DOMDocument::schemaValidate(): Element '{http://ns.editeur.org/onix/3.0/reference}IDValue': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '1'.
  In file: /var/www/omp.archiving.zone/htdocs/lib/pkp/classes/xslt/XMLTypeDescription.inc.php
  At line: 126
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.5.9-1ubuntu4.13
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.5.43-0ubuntu0.14.04.1
PHP message: omp has produced an error
  Message: WARNING: DOMDocument::schemaValidate(): Element '{http://ns.editeur.org/onix/3.0/reference}IDValue': '' is not a valid value of the atomic type '{http://ns.editeur.org/onix/3.0/reference}dt.NonEmptyString'.

  In file: /var/www/omp.archiving.zone/htdocs/lib/pkp/clas

Hi @Hembo_Pagi,

Can you review your submission’s cataloging metadata and re-save those forms? (They are available from the top toolbar within the workflow area.) I suspect your previously missing XSL setup caused some incomplete data to be saved, which is causing trouble with validation during export.

Regards,
Alec Smecher
Public Knowledge Project Team

Did a new entry but same happened … can not attach cover image nor export the metadata. I am sure i do something wrong of have something not configured properly but can not figure out what. Keep tying.

Hi @Hembo_Pagi,

In Management > Settings > Workflow > Production, ensure that your “Publisher Code” field has been configured.

Regards,
Alec Smecher
Public Knowledge Project Team