Quick submit plugin in OJS 3.0

hello Alec,
my PHP error log gives this:
PHP Fatal error: Can’t use method return value in write context in /var/www/ojstest/plugins/importexport/quickSubmit/c
lasses/form/UploadImageForm.inc.php on line 128

please advise,
thanks

Hi @Ptran,

Try applying this patch: Fix assertion use of empty with return · pkp/quickSubmit@44479b1 · GitHub

Note that this problem shows up when your system has assertions enabled, which isn’t a recommended production PHP configuration.

Regards,
Alec Smecher
Public Knowledge Project Team

hi Alec,
I applied your patch, it opens an upload window, but when I clicked “OK” it just stays there. (see attachment)’

I checked the log, it gave me an error : " PHP Warning: copy(public/journals/1/article_41_cover_en_US.jpg): failed to open stream: Permission denied in /var/www/ojstesting/lib/pkp/classes/file/FileManager.inc.php on line 159 " .
I double checked my public directory and it has “root:apache” as ownership and 775 as permissions.

**Note: I also checked my php.ini configuration file and I have my " ;assert.active=on " common out. How can I tell if it has been enabled ?

thanks

Hi @Ptran,

Have a look at the FAQ entry on file permissions. In addition to numeric permissions, you’ll also have to consider file ownership (and on some systems, additional details like SELinux extensions).

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Something seems to be broken after upgrading to 3.0.2. Previously installed Quick Submit plugin has now disappeared from the plugin list. But when I try to install it either from the gallery or by uploading, it says: “Plugin already installed, but can be updated to a newer version”. But there is no way to update it now :frowning:

Hi @Ph_We,

Are you logged in as a Site Administrator? That role is required in order to install/upgrade plugins.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher, Yes, I am logged in as a Site Admin. Here is what I get:

Hi @Ph_We

Probably it is still an entry in your DB table versions, from an earlier installation. If you remove that entry and try to “Upload A New Plugin” on the “Installed Plugins” page, it should work…

Best,
Bozana

Hi @bozana,

Here is our versions table:

[details=Summary]±------±------±---------±------±--------------------±--------±---------------------------±-------------------±--------------------------±----------±---------+
| major | minor | revision | build | date_installed | current | product_type | product | product_class_name | lazy_load | sitewide |
±------±------±---------±------±--------------------±--------±---------------------------±-------------------±--------------------------±----------±---------+
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.metadata | dc11 | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.metadata | nlm30 | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.metadata | openurl10 | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.metadata | mods34 | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.blocks | makeSubmission | MakeSubmissionBlockPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.blocks | relatedItems | RelatedItemsBlockPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.blocks | information | InformationBlockPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.blocks | developedBy | DevelopedByBlockPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.blocks | languageToggle | LanguageToggleBlockPlugin | 1 | 0 |
| 1 | 1 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | abnt | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | turabian | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | refWorks | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | cbe | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | proCite | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | endNote | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | mla | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | refMan | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | bibtex | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationFormats | apa | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationLookup | isbndb | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationLookup | crossref | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationLookup | pubmed | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationLookup | worldcat | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationOutput | abnt | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationOutput | mla | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationOutput | vancouver | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationOutput | apa | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationParser | regex | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationParser | paracite | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationParser | parscit | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.citationParser | freecite | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.gateways | resolver | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | googleAnalytics | GoogleAnalyticsPlugin | 1 | 0 |
| 1 | 2 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | customBlockManager | CustomBlockManagerPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | googleScholar | GoogleScholarPlugin | 1 | 0 |
| 1 | 2 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | acron | AcronPlugin | 1 | 1 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | webFeed | WebFeedPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | usageEvent | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | browse | BrowsePlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | tinymce | TinyMCEPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | usageStats | | 0 | 1 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | recommendByAuthor | RecommendByAuthorPlugin | 1 | 1 |
| 1 | 2 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | staticPages | StaticPagesPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | pdfJsViewer | PdfJsViewerPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | dublinCoreMeta | DublinCoreMetaPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | lensGalley | LensGalleyPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | htmlArticleGalley | HtmlArticleGalleyPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.generic | orcidProfile | OrcidProfilePlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.importexport | native | | 0 | 0 |
| 1 | 1 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.importexport | doaj | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.importexport | pubIds | | 0 | 0 |
| 2 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.importexport | datacite | | 0 | 0 |
| 2 | 1 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.importexport | crossref | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.importexport | pubmed | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.importexport | users | | 0 | 0 |
| 2 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.importexport | medra | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.oaiMetadataFormats | nlm | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.oaiMetadataFormats | marcxml | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.oaiMetadataFormats | dc | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.oaiMetadataFormats | marc | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.oaiMetadataFormats | rfc1807 | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.paymethod | manual | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.paymethod | paypal | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.pubIds | urn | URNPubIdPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.pubIds | doi | DOIPubIdPlugin | 1 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.reports | articles | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.reports | reviews | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.reports | views | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:31:04 | 1 | plugins.themes | default | DefaultThemePlugin | 1 | 0 |
| 3 | 0 | 1 | 0 | 2016-11-28 17:30:56 | 0 | core | ojs2 | | 0 | 1 |
| 2 | 0 | 0 | 0 | 2016-11-28 17:32:52 | 1 | plugins.generic | translator | TranslatorPlugin | 1 | 1 |
| 1 | 0 | 0 | 0 | 2016-11-28 17:32:52 | 1 | plugins.reports | usageStats | | 0 | 0 |
| 1 | 0 | 0 | 0 | 2017-01-23 10:28:27 | 1 | plugins.importexport | quickSubmit | | 0 | 0 |
| 2 | 0 | 0 | 0 | 2017-02-02 21:29:23 | 1 | plugins.reports | reviewReport | | 0 | 0 |
| 3 | 0 | 2 | 0 | 2017-02-02 21:27:28 | 1 | core | ojs2 | | 0 | 1 |
| 1 | 0 | 0 | 0 | 2017-02-03 22:28:13 | 1 | plugins.generic | coins | CoinsPlugin | 1 | 0 |
±------±------±---------±------±--------------------±--------±---------------------------±-------------------±--------------------------±----------±---------+
76 rows in set (0.00 sec)
[/details]

Could you please confirm we need to delete this entry:
| 1 | 0 | 0 | 0 | 2017-01-23 10:28:27 | 1 | plugins.importexport | quickSubmit | | 0 | 0 |

Would it be safe to delete it?
Is it a bug, or is something wrong on our side? Thank you!

Hi @Ph_We

It is probably left from an earlier quickSubmit plugin installation. Yes, it is safe to delete that row. Also double check you do not have quickSubmit folder in plugins/importexport/ – to start clean… Then install the new 3.0.2 plugin version using “Upload A New Plugin” on the “Installed Plugins” page, as on your screenshot above…

Best,
Bozana

1 Like

@bozana, thank you! It’s working now :slight_smile:

BTW, it’s still said to be not installed in the Plugin Gallery:

Hi, I installed the Quick Submit plugin but when I go to my journal and select the plugin, it only opens a blank page. Any advice?

Hi @Cornelle

Could you maybe see in the PHP error log files, if there is an error when you open the QuickSubmit page?

Best,
Bozana

Thanks Bozana. I requested an error log and this is what I get:

[Thu Apr 06 11:48:42 2017] [error] [client 196.255.155.207] PHP Fatal error: Call to undefined method SectionDAO::getSectionTitles() in /var/www/html/plugins/importexport/quickSubmit/QuickSubmitForm.inc.php on line 206, referer: http://
ojsdev.ufs.ac.za/index.php/pie/management/tools

Any advice?

@Cornelle

I think there is a mismatch between OJS- and Plug-In-Version you are using. Are you using the latest OJS 3.0.2 and the corresponding plugin release 3_0_2-0 (s. Releases · pkp/quickSubmit · GitHub)? Did you install the plugin using the plugin gallery? – It looks like you are using the newer OJS version, but the older plugin release 3_0_1-0 – the OJS and plugin version 3.0.1 contain that function (SectionDAO::getSectionTitles()), but it is renamed since then.

Best,
Bozana

Hello, we are using OJS 3.0.1 for two of our journals but right now we are unable to upgrade to 3.0.2. My query concerns if there is by now a stable branch to install the Quick Submit plugin for OJS 3.0.1. We tried to do so by this link GitHub - pkp/quickSubmit at ojs-stable-3_0_1 but we are getting an error message. Does anyone know if there is a stable Quick Submit working for OJS 3.0.1?
Thanks in advance.
Regards
alejandro_shuttera

Hi @alejandro_shuttera,

Is this the same as your other post? Please don’t double-post – it clutters the forum. I’ll respond over there in a sec.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher and @NateWr,

I am thinking to create quicksubmit button in Submission Forms with link to:
http://localhost/ojs/index.php/TestJournal/management/importexport/plugin/QuickSubmitPlugin

The image with button (modify from google chrome dev tools)
imagen

Regards.
xavi.

In order to make this change, you will need to customize the SubmissionsListPanel component in the UI Library (/lib/ui-library/src/components/ListPanel/submissions/SubmissiosnLIstPanel.vue). However, I think you’ll find it difficult to maintain this over time. The ListPanels are still undergoing restructuring as we settle into the new UI component pattern.

It will probably be easier to implement and maintain if you add the Quick Submit button at the top of the page, next to the “Submissions” title at the top. To do that, you only need to overwrite one template file in your theme, and you can keep your customizations separate from the main application.

The template file you need to overwrite is, I think, /templates/dashboard/index.tpl. So if you copy that into your theme, it should overwrite the default.