Failed Ajax request or invalid JSON error with quickSubmit plugin Add Contributor

Description of issue or problem I’m having:

ERROR: Failed Ajax request or invalid JSON with quickSubmit plugin ADD CONTRIBUTOR
Just started today. Used the plugin with no problems previously.

Steps I took leading up to the issue:

Added the Author Requirements plugin via FTP.
Disabling the plugin is not a fix.

What I tried to resolve the issue:

Removed and re-uploaded the quickSubmit plugin
Restored site to previously functioning back-up.
Searched and searched again this forum.
Not sure what to look for - I am not a developer.

Application Version - e.g., OJS 3.1.2:

OJS 3.3.0.9 , PHP v7

Additional information, such as screenshots and error log messages if applicable:

https://ejssm.com/ojs/log/

1 Like

Hi @soj,

We don’t recommend installing plugins like this. The recommended method is to install them through the Plugin Gallery. Have you tried that? It’s possible that the specific plugin that you’re using is not in the Plugin gallery, in which case, you should at least ensure that it’s been tested to be compatible with the version of OJS you’re using. Do you have a link to the plugin that you can provide here? You mention that you’re using version 3.3.0-9, which isn’t released yet - are you sure that’s the correct version. I checked your site and it appears that you’re using version 3.3.0-8.

-Roger
PKP Team

Thank you very much for your response. Yes, my mistake! The install is in latest version, 3308. I

have restored the site via backup to a point where everything is working again so far. The problem appears to have been the uploading of the AuthorRequirements plugin (which I really, really need, as several of our back issues are student efforts with up to 10 authors listed).

I have not been able to install any plugins via the Plugin Gallery. All I get is a popup window stating this plugin has not yet been installed and showing the git-hub link to the plugin page. No button or other prompt is displayed to install a new plugin in either tab. My user role is Journal Mgr. What is the correct procedure in such a case?

Many thanks in advance.

Hi @soj,

Thanks for clarifying. Where did you locate the Author Requirements plugin from - can you send a link?

And for the error message that you see when using the plugin gallery, can you post a screenshot of this so I can get a better sense of what’s happening?

-Roger
PKP Team

Here is the link, which is provided in the info popup when I click the plugin in the Plugin Gallery.

No error message presents itself overtly in the Plugin Section. I have debug mode enabled in the config file. Simply there is no way given to install any plugin from the Plugin Gallery. I have provided a screen shot. I believe there should an install tab next to the search field? It is not displayed in either of the Plugin Section pages.

Screenshot 2021-09-15 125138

Hi @soj,

Thanks for providing these details - this is helpful. You say that you only have journal manager privileges? You might want to check with your site admin to see if they can install / upgrade the plugins? If they’re not seeing any options that could point to a larger problem. The author requirements should be in the plugin gallery - but if not I’m not sure… :thinking: - but will see if there are some other options.

-Roger
PKP Team

And here I was believing the JM has admin privileges.

Is it still not possible to create a second admin except via a DB edit?

The admin sees the upload option on the installed plugins page only.
From here I imagine I can research the manual for further instructions.

Many thanks.

I am currently logged in as Admin. When attempting to add a plugin or upgrade one the system returns this error:
The current role does not have access to this operation.
I can get to the install popup window of plugins are showing in the plugin gallery, but nothing happens when I click OK in the “Are you Sure?” window. It just hangs …

Hi @soj,

Hmmm… if it hangs that might be pointing to another issue going on. Do you have access to your PHP error logs and are able to check for relevant errors there?

-Roger
PKP Team

Here’s the thing. Under the erroneous assumption that JM’s have admin rights like they did in our original install, I created the journal as a JM (at least I think I did). I wonder if the Admin account needs to be added as a user?
At any rate, currently the admin does not appear in the journal user list. Is there a way to add the account?

Hi @soj,

That seems unlikely, as only site admins can create new journals. It’s possible that you cannot see the admin in the journal list. There is an option to search for users that are not affiliated with a given journal - it’s a checkbox next to the search for users. If it is a separate account you’d have to login with that account. You should at least be able to see what email is associated with the account, I would think, and could possibly reset the password if you have access to that email?

-Roger
PKP Team

Thanks!
I can log in to the ADMIN account no problem.
The problem is the Admin seems to have no permissions to do anything in the journal.
I need to install these plugins, and it takes an admin to install them, but trying to do so as admin returns “The current role does not have access to this operation,” plus another message “undefined”, as soon as I try to access the journal setting wizard.

I HUGELY appreciate your responses. I don’t know why I’m having such a hard time. I look at the screen images in the documentation and my install looks so different. I’ve lost a whole work week on these issues. I sent a form email to the PKP purchased support service with some questions specific to my situation days ago, and no one ever even responded.

I have found the admin user by searching unaffliliated users. I edited the admin user (adding JM role) and now it shows up in the journal.

However, trying to access plugins, the first tab just spins. The first tab (installed plugins) is needed in order to access the QuickSubmit plugin. It used to show up in Tools, but doesn’t any more. Time to check error msgs.

[14-Sep-2021 17:16:58 UTC] PHP Deprecated: Non-static method Core::removeBaseUrl() should not be called statically in …/ojs/plugins/generic/usageStats/UsageStatsLoader.inc.php on line 777
[14-Sep-2021 17:16:58 UTC] PHP Deprecated: Non-static method Core::_getBaseUrlAndPath() should not be called statically in …/ojs/lib/pkp/classes/core/Core.inc.php on line 231

I should add plugins tab one spins, regardless of user logged in. The second tab (gallery) does open.

Hi @soj,

Thanks for the follow-up.

Please note that the PKP|PS service does not directly answer questions of non-hosted clients - that’s what we do here on the forum. Although, if you were interested in hosting services with them, I would encourage you to follow-up with them and make that clear.

With respect to this issue of the hanging and spinning. I’m not entirely sure what’s happening here - those errors may provide some indication, so I’m going to see if some of my colleagues can weigh in on what they think might be causing this issue when they are available, so stay tuned.

-Roger
PKP Team

Thanks. Really hoping you all can help. Not much else I can do. We won’t be hosting with PKP - can’t afford it.

Hi,
I have the same problem here. Fresh install of OJS (testing website). OJS version: 3.3.0.8 (upgraded from 3.3.0.7). PHP: 7.3.29. Database server: 5.5.5-10.2.40-MariaDB.

Steps I took:
Installed Author Requirements plugin through plugin gallery. Disabling it did not solve the problem.
Error log:

[Tue Sep 21 00:15:02.403122 2021] [fcgid:warn] [pid 5119] [client 172.69.100.142:60152] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to a member function getData() on null in /home/ojs/public_html/cache/t_compile/502a3c7e2e32fa61fb30b380b67fb26018d497e4^06932f1259fee8e7c6747e1a2b9752b223abefd1_0.app.controllersgridusersautho.php:36, referer: https://example.com/index.php/test/management/importexport/plugin/QuickSubmitPlugin
[Tue Sep 21 00:15:02.403130 2021] [fcgid:warn] [pid 5119] [client 172.69.100.142:60152] mod_fcgid: stderr: Stack trace:, referer: https://example.com/index.php/test/management/importexport/plugin/QuickSubmitPlugin
[Tue Sep 21 00:15:02.403132 2021] [fcgid:warn] [pid 5119] [client 172.69.100.142:60152] mod_fcgid: stderr: #0 /home/ojs/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6148d3380d6809_61967764(Object(Smarty_Internal_Template)), referer: https://example.com/index.php/test/management/importexport/plugin/QuickSubmitPlugin
[Tue Sep 21 00:15:02.403135 2021] [fcgid:warn] [pid 5119] [client 172.69.100.142:60152] mod_fcgid: stderr: #1 /home/ojs/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)), referer: https://example.com/index.php/test/management/importexport/plugin/QuickSubmitPlugin
[Tue Sep 21 00:15:02.403137 2021] [fcgid:warn] [pid 5119] [client 172.69.100.142:60152] mod_fcgid: stderr: #2 /home/ojs/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)), referer: https://example.com/index.php/test/management/importexport/plugin/QuickSubmitPlugin
[Tue Sep 21 00:15:02.403139 2021] [fcgid:warn] [pid 5119] [client 172.69.100.142:60152] mod_fcgid: stderr: #3 /home/ojs/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 0), referer: https://example.com/index.php/test/management/importexport/plugin/QuickSubmitPlugin
[Tue Sep 21 00:15:02.403142 2021] [fcgid:warn] [pid 5119] [client 172.69.100.142:60152] mod_fcgid: stderr: #4 /home/ojs/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smart in /home/ojs/public_html/cache/t_compile/502a3c7e2e32fa61fb30b380b67fb26018d497e4^06932f1259fee8e7c6747e1a2b9752b223abefd1_0.app.controllersgridusersautho.php on line 36, referer: https://example.com/index.php/test/management/importexport/plugin/QuickSubmitPlugin

Is there a version of OJS where the QuickSubmit and Author Requirements Plugins actually work with no problems. Getting no where here with a fix, so I am looking at a fresh install.