[OJS] assert(): Assertion failed

Hi, while importing a journal using fullJournalTransfer i get the following errors multiple times [show_stacktrace and display_errors on]:

ojs2 has produced an error Message: WARNING: assert(): Assertion failed In file: /srv/www/htdocs/pg/lib/pkp/classes/db/DAO.inc.php At line: 500 Stacktrace: File: (unknown) line (unknown) Function: PKPApplication->errorHandler(2, "assert(): Assertion failed", "/srv/www/htdocs/pg/lib/pkp/classes/db/DAO.inc.php", 500, Array(17)) File: /srv/www/htdocs/pg/lib/pkp/classes/db/DAO.inc.php line 500 Function: assert(False) File: /srv/www/htdocs/pg/classes/article/ArticleDAO.inc.php line 80 Function: DAO->updateDataObjectSettings("article_settings", Object(Article), Array(1)) File: /srv/www/htdocs/pg/classes/article/ArticleDAO.inc.php line 332 Function: ArticleDAO->updateLocaleFields(Object(Article)) File: /srv/www/htdocs/pg/plugins/importexport/fullJournalTransfer/XMLDisassembler.inc.php line 912 Function: ArticleDAO->updateArticle(Object(Article)) File: /srv/www/htdocs/pg/plugins/importexport/fullJournalTransfer/XMLDisassembler.inc.php line 108 Function: XMLDisassembler->importArticles() File: /srv/www/htdocs/pg/plugins/importexport/fullJournalTransfer/FullJournalImportExportPlugin.inc.php line 255 Function: XMLDisassembler->startImporting() File: /srv/www/htdocs/pg/plugins/importexport/fullJournalTransfer/FullJournalImportExportPlugin.inc.php line 111 Function: FullJournalImportExportPlugin->handleImport("/home/infra/piaa/IT.tar.gz", True) File: /srv/www/htdocs/pg/tools/importExport.php line 63 Function: FullJournalImportExportPlugin->executeCLI("tools/importExport.php", Array(0)) File: /srv/www/htdocs/pg/tools/importExport.php line 69 Function: importExport->execute() Server info: OS: Linux PHP Version: 5.4.45-0+deb7u2 Apache Version: N/A DB Driver: mysql DB server version: 5.5.38-0+wheezy1<br/> ojs2 has produced an error Message: WARNING: assert(): Assertion failed In file: /srv/www/htdocs/pg/lib/pkp/classes/db/DAO.inc.php At line: 500 Stacktrace: File: (unknown) line (unknown) Function: PKPApplication->errorHandler(2, "assert(): Assertion failed", "/srv/www/htdocs/pg/lib/pkp/classes/db/DAO.inc.php", 500, Array(17)) File: /srv/www/htdocs/pg/lib/pkp/classes/db/DAO.inc.php line 500 Function: assert(False) File: /srv/www/htdocs/pg/classes/article/ArticleDAO.inc.php line 80 Function: DAO->updateDataObjectSettings("article_settings", Object(Article), Array(1)) File: /srv/www/htdocs/pg/classes/article/ArticleDAO.inc.php line 332 Function: ArticleDAO->updateLocaleFields(Object(Article)) File: /srv/www/htdocs/pg/plugins/importexport/fullJournalTransfer/XMLDisassembler.inc.php line 912 Function: ArticleDAO->updateArticle(Object(Article)) File: /srv/www/htdocs/pg/plugins/importexport/fullJournalTransfer/XMLDisassembler.inc.php line 108 Function: XMLDisassembler->importArticles() File: /srv/www/htdocs/pg/plugins/importexport/fullJournalTransfer/FullJournalImportExportPlugin.inc.php line 255 Function: XMLDisassembler->startImporting() File: /srv/www/htdocs/pg/plugins/importexport/fullJournalTransfer/FullJournalImportExportPlugin.inc.php line 111 Function: FullJournalImportExportPlugin->handleImport("/home/infra/piaa/IT.tar.gz", True) File: /srv/www/htdocs/pg/tools/importExport.php line 63 Function: FullJournalImportExportPlugin->executeCLI("tools/importExport.php", Array(0)) File: /srv/www/htdocs/pg/tools/importExport.php line 69 Function: importExport->execute() Server info: OS: Linux PHP Version: 5.4.45-0+deb7u2 Apache Version: N/A DB Driver: mysql DB server version: 5.5.38-0+wheezy1

Consulting one of the fullJournalTransfer’s dev, he told me this happens when OJS tries to read a localized field [array of values] but finds just only one value, i’m getting in contact just to confirm if this is not a bug and if i can ignore this error.

The journal comes from a 2.4.6 and goes to a 2.4.7-1 OJS.

By the way, when setting show_stacktrace = On and display_errors = On it looks like every report gets doubled, the first one terminating with a <br> tag, is this a bug?

1 Like

Hi @samueloph,

Please don’t double-post; it clutters the forum. I’ve responded to your other post.

Regards,
Alec Smecher
Public Knowledge Project Team

Why is this considered a double-post? The other one is talking about a different error.
If i have separate problems, should i create just one topic and talk about them together?

Hi @samueloph,

I’ve followed up on the other thread; I think both issues stem from the same problem.

Regards,
Alec Smecher
Public Knowledge Project Team