[OJS 3.0.2] [solved] Readers get redirected to the Advanced Search

Hi @Ph_We,

Hmm, that definitely sounds related. I’d suggest checking your error log for anything that might correspond to the same times (or perhaps making a test submission through that plugin and checking the log immediately). As for the database check, yes, the status is definitely wrong and that’s what’s causing the redirect. The quickest solution while we track down the cause is to change the status column to 3 (“published”, to match the working article) as opposed to 1 (“queued”, meaning the article is still in the workflow).

Regards,
Alec Smecher
Public Knowledge Project Team

OK, we’ll try. Would you please let me know what might have gone wrong in this case, if you find it out. So I could warn our users (not to use Firefox with the QuickSubmit, etc.). Thank you!

Hi @Ph_We,

I’m fairly sure it’s nothing browser-specific – the error log will be key in tracking down the root cause, I think.

Regards,
Alec Smecher
Public Knowledge Project Team

Ah yes, I’ll try to get the error log for that time span.

Hi @asmecher,

Here is the log:

[details=Summary][Thu Feb 16 12:04:56.551313 2017] [:error] [pid 8833] [client .*..:48410] PHP Fatal error: Call to a member function getFileId() on null in /var/www/html/plugins/importexport/quickSubmit/QuickSubmitForm.inc.php on line 329, referer: https://ojs.hse.ru/index.php/ecsoc/management/importexport/plugin/QuickSubmitPlugin/saveSubmit
[Thu Feb 16 12:14:32.126072 2017] [:error] [pid 8833] [client .*..
:49112] PHP Fatal error: Call to a member function getFileId() on null in /var/www/html/plugins/importexport/quickSubmit/QuickSubmitForm.inc.php on line 329, referer: https://ojs.hse.ru/index.php/ecsoc/management/importexport/plugin/QuickSubmitPlugin
[Thu Feb 16 12:15:07.752108 2017] [:error] [pid 8834] [client .*..:49270] PHP Warning: include(/var/www/html/cache/fc-pluginSettings-12-webfeedblockplugin.php): failed to open stream: No such file or directory in /var/www/html/lib/pkp/classes/cache/FileCache.inc.php on line 46, referer: https://ojs.hse.ru/index.php/ihe/manageIssues
[Thu Feb 16 12:15:07.752176 2017] [:error] [pid 8834] [client .*..
:49270] PHP Warning: include(): Failed opening ‘/var/www/html/cache/fc-pluginSettings-12-webfeedblockplugin.php’ for inclusion (include_path=’.:/var/www/html/classes:/var/www/html/pages:/var/www/html/lib/pkp:/var/www/html/lib/pkp/classes:/var/www/html/lib/pkp/pages:/var/www/html/lib/pkp/lib/adodb:/var/www/html/lib/pkp/lib/phputf8:/var/www/html/lib/pkp/lib/pqp/classes:/var/www/html/lib/pkp/lib/smarty:.:/usr/share/php’) in /var/www/html/lib/pkp/classes/cache/FileCache.inc.php on line 46, referer: https://ojs.hse.ru/index.php/ihe/manageIssues
[Thu Feb 16 12:21:55.723817 2017] [:error] [pid 8839] [client .*..:49562] PHP Fatal error: Call to a member function getFileId() on null in /var/www/html/plugins/importexport/quickSubmit/QuickSubmitForm.inc.php on line 329, referer: https://ojs.hse.ru/index.php/ecsoc/management/importexport/plugin/QuickSubmitPlugin/saveSubmit
[Thu Feb 16 12:22:17.928693 2017] [:error] [pid 9181] [client .*..
:49888] ojs2: DB Error: Duplicate entry ‘2899’ for key ‘published_submissions_submission_id’, referer: https://ojs.hse.ru/index.php/ecsoc/management/importexport/plugin/QuickSubmitPlugin/saveSubmit
[Thu Feb 16 12:22:21.389187 2017] [:error] [pid 8833] [client .*..:49890] ojs2: DB Error: Duplicate entry ‘2899’ for key ‘published_submissions_submission_id’, referer: https://ojs.hse.ru/index.php/ecsoc/management/importexport/plugin/QuickSubmitPlugin/saveSubmit
[Thu Feb 16 12:22:30.680481 2017] [:error] [pid 8839] [client .*..
:49918] PHP Warning: assert(): Assertion failed in /var/www/html/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188, referer: https://cmd-journal.hse.ru/management/importexport/plugin/QuickSubmitPlugin
[Thu Feb 16 12:22:30.688121 2017] [:error] [pid 8839] [client .*..:49918] PHP Warning: assert(): Assertion failed in /var/www/html/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188, referer: https://cmd-journal.hse.ru/management/importexport/plugin/QuickSubmitPlugin
[Thu Feb 16 12:30:08.533613 2017] [:error] [pid 8834] [client .*..
:50208] PHP Fatal error: Call to a member function getFileId() on null in /var/www/html/plugins/importexport/quickSubmit/QuickSubmitForm.inc.php on line 329, referer: https://ojs.hse.ru/index.php/ecsoc/management/importexport/plugin/QuickSubmitPlugin
[/details]

The most relevant are the issues, including ecsoc in the path.

P.S. Changing the submission status worked fine, thanks!

Hmmm… It seems like the galley didn’t have a file, when using the QuickSubmit plugin… Could it be @Ph_We ? I’ll add a check in the plugin, for these kind of errors not to occur again…

EDIT: This also means that the code after this line where the error occurred was not executed: https://github.com/pkp/quickSubmit/blob/master/QuickSubmitForm.inc.php#L329. Thus, you might want to double check and/or set the locale, date_submitted and submission_progress = 0 for those articles. Also those articles are not indexed.

Best,
Bozana

See the fix for that here: consider galleys with no files · pkp/quickSubmit@f9471e9 · GitHub

@asmecher, should I create a new release package?

Hi @bozana,

I think, that was exactly what happened: as far as I could understand, the journal manager chose “This galley will be available at a separate website” option. Then instead of uploading a file, he gave an URL of this kind:

https://www.hse.ru/data/2017/01/31/1114282611/ecsoc_t18_n1.pdf#page=13

where #page=13 is the starting page of the article per se. The format is compatible with pdf.js.

Could you please confirm that that might have caused the problem?

Hi @Ph_We, yes that was the problem…

1 Like

What should we do to (re)index them?

You could execute this command line script from your OJS folder: php tools/rebuildSearchIndex.php

1 Like

@bozana, @asmecher, Thank you once again!!

We would also like to know if it’s possible to make a release with this issue solved. We cannot update it through git. And we afraid other users might get this issue.

Hi @bozana,

Sure, please go ahead. This would be a good opportunity to ensure that the plugin gallery can handle upgrades as expected.

Regards,
Alec Smecher
Public Knowledge Project Team

@Ph_We

I updated the new package in the GitHub release Releases · pkp/quickSubmit · GitHub. Could you please test if the upgrade functions well?

Thanks!
Bozana

Hi @bozana,

Unfortunately, the upgrade function is still not available in this case :frowning2:

I described this issue here:

We managed to reinstall the QuickSubmit plugin, but it is still not recognized as such in the Plugin Gallery. Is there a way to repair it somehow?

BTW, We have OJS 3.0.2 installed on another (test) server. The current version of the QuickSubmit plugin there is said to be “Version 1.0.1.0 Release Date: 2017-02-01” too.
And it is also cannot be installed from the Gallery neither on the production, nor test server. When I click ‘OK’ to install, nothing happens.

I’ve even tried to delete the plugin and install it again (the new release 1.0.2), and it still says “Successfully installed version 1.0.1.0”…

hi @Ph_We

Ah, that is OK – I haven’t change the version number and release date :-\

Thanks!
Bozana

I think, that may be the reason why it cannot be updated in the Gallery.

Hi @Ph_We

Yes, that could be, I will take a look how the plugin gallery is functioning…

Thanks!
Bozana