I can't send files for publication. OJS 3.2.0-2 on Postgres

Hi @asmecher,
we want to insert an article for publication in the final step, but the listing does not appear. Just keep loading.

When I click save, it generates this error:

PHP Fatal error:  Uncaught Error: Call to a member function getFileId() on null in /var/www/ojs-3.2.0-2/lib/pkp/controllers/api/file/linkAction/FileLinkAction.inc.php:46\nStack trace:\n#0 /var/www/ojs-3.2.0-2/lib/pkp/controllers/api/file/linkAction/DownloadFileLinkAction.inc.php(37): FileLinkAction->getActionArgs(NULL, 5)\n#1 /var/www/ojs-3.2.0-2/controllers/grid/articleGalleys/ArticleGalleyGridCellProvider.inc.php(90): DownloadFileLinkAction->__construct(Object(Request), NULL, 5, 'PDF')\n#2 /var/www/ojs-3.2.0-2/lib/pkp/classes/controllers/grid/GridCellProvider.inc.php(56): ArticleGalleyGridCellProvider->getCellActions(Object(Request), Object(ArticleGalleyGridRow), Object(GridColumn))\n#3 /var/www/ojs-3.2.0-2/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1104): GridCellProvider->render(Object(Request), Object(ArticleGalleyGridRow), Object(GridColumn))\n#4 /var/www/ojs-3.2.0-2/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1011): GridHandler->_renderCellInternally(Object(Request), Object(ArticleGalleyGridRow), Object(Gri in /var/www/ojs-3.2.0-2/lib/pkp/controllers/api/file/linkAction/FileLinkAction.inc.php on line 46, referer: http://periodicos.ufes.br/argumentum/workflow/index/29070/5
PHP Fatal error:  Uncaught Exception: DB Error: ERROR:  syntax error at or near "GROUP"\nLINHA 72:      GROUP BY names\n               ^ Query: SELECT a.*, ug.show_title, p.locale,\n\t\t\t\tCOALESCE(agl.setting_value, agpl.setting_value) AS author_given,\n\t\t\t\tCASE WHEN agl.setting_value <> '' THEN afl.setting_value ELSE afpl.setting_value END AS author_family\n\t\t\tFROM\tauthors a\n\t\t\t\tJOIN user_groups ug ON (a.user_group_id = ug.user_group_id)\n\t\t\t\tJOIN publications p ON (p.publication_id = a.publication_id)\n\t\t\t\tJOIN submissions s ON (s.current_publication_id = p.publication_id)\n\t\t\t\tLEFT JOIN author_settings agl ON (a.author_id = agl.author_id AND agl.setting_name = ? AND agl.locale = ?)\n\t\t\t\tLEFT JOIN author_settings agpl ON (a.author_id = agpl.author_id AND agpl.setting_name = ? AND agpl.locale = p.locale)\n\t\t\t\tLEFT JOIN author_settings afl ON (a.author_id = afl.author_id AND afl.setting_name = ? AND afl.locale = ?)\n\t\t\t\tLEFT JOIN author_settings afpl ON (a.author_id = afpl.author_id AND afpl.setting_name = ? AND afpl.locale = p.locale)\n\t\t\t in /var/www/ojs-3.2.0-2/lib/pkp/classes/db/DAO.inc.php on line 703

Other errors that are appearing in the log:

PHP Fatal error:  Uncaught Error: Call to a member function getJournalId() on null in /var/www/ojs-3.2.0-2/classes/issue/IssueAction.inc.php:31\nStack trace:\n#0 /var/www/ojs-3.2.0-2/pages/search/SearchHandler.inc.php(246): IssueAction->subscriptionRequired(NULL, Object(Journal))\n#1 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/PKPRouter.inc.php(391): SearchHandler->authors(Array, Object(Request))\n#2 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#3 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/Dispatcher.inc.php(143): PKPPageRouter->route(Object(Request))\n#4 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/PKPApplication.inc.php(278): Dispatcher->dispatch(Object(Request))\n#5 /var/www/ojs-3.2.0-2/index.php(68): PKPApplication->execute()\n#6 {main}\n  thrown in /var/www/ojs-3.2.0-2/classes/issue/IssueAction.inc.php on line 31
PHP Fatal error:  Uncaught Error: Call to a member function getData() on null in /var/www/ojs-3.2.0-2/pages/search/SearchHandler.inc.php:216\nStack trace:\n#0 [internal function]: SearchHandler->{closure}(NULL)\n#1 /var/www/ojs-3.2.0-2/pages/search/SearchHandler.inc.php(217): array_map(Object(Closure), Array)\n#2 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/PKPRouter.inc.php(391): SearchHandler->authors(Array, Object(Request))\n#3 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#4 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/Dispatcher.inc.php(143): PKPPageRouter->route(Object(Request))\n#5 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/PKPApplication.inc.php(278): Dispatcher->dispatch(Object(Request))\n#6 /var/www/ojs-3.2.0-2/index.php(68): PKPApplication->execute()\n#7 {main}\n  thrown in /var/www/ojs-3.2.0-2/pages/search/SearchHandler.inc.php on line 216
PHP Fatal error:  Uncaught Error: Call to a member function getData() on null in /var/www/ojs-3.2.0-2/plugins/generic/citationStyleLanguage/CitationStyleLanguagePlugin.inc.php:327\nStack trace:\n#0 /var/www/ojs-3.2.0-2/plugins/generic/citationStyleLanguage/CitationStyleLanguagePlugin.inc.php(277): CitationStyleLanguagePlugin->getCitation(Object(Request), Object(Submission), 'apa', NULL, Object(Publication))\n#1 /var/www/ojs-3.2.0-2/lib/pkp/classes/plugins/HookRegistry.inc.php(107): CitationStyleLanguagePlugin->getArticleTemplateData('ArticleHandler:...', Array)\n#2 /var/www/ojs-3.2.0-2/pages/article/ArticleHandler.inc.php(281): HookRegistry::call('ArticleHandler:...', Array)\n#3 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/PKPRouter.inc.php(391): ArticleHandler->view(Array, Object(Request))\n#4 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#5 /var/www/ojs-3.2.0-2/lib/pkp/classes/core/Dispatcher.inc.php(143): PKPPageRouter->route( in /var/www/ojs-3.2.0-2/plugins/generic/citationStyleLanguage/CitationStyleLanguagePlugin.inc.php on line 327

Hi @Adriano_Jose,

I suspect you may have encountered https://github.com/pkp/pkp-lib/issues/5740; this will be fixed in the next build of OJS. See the link for details in fixing this in the meantime.

Regards,
Alec Smecher
Public Knowledge Project Team