Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed Ajax request or invalid JSON returned #6

Closed
reaganch opened this issue Apr 23, 2019 · 4 comments
Closed

Failed Ajax request or invalid JSON returned #6

reaganch opened this issue Apr 23, 2019 · 4 comments

Comments

@reaganch
Copy link

reaganch commented Apr 23, 2019

I get the error message "Failed Ajax request or invalid JSON returned" upon:

  1. Cloning the repo to plugins/generic/disqus
  2. Enabling the Disqus Plugin under Settings -> Website -> Plugins
  3. Clicking on Disqus Plugin -> Settings

I'm running OJS v3.1.2. Any suggestions on what might be causing this?

@reaganch
Copy link
Author

reaganch commented Apr 28, 2019

Was just able to extract the relevant lines from the log file corresponding to this error, if it helps:

[Sun Apr 28 16:38:03.678606 2019] [php7:warn] [pid 1677] [client 172.29.106.233:55758] PHP Warning:  Declaration of HypothesisPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /var/www/html/plugins/generic/hypothesis/HypothesisPlugin.inc.php on line 67, referer: https://eng-jrnl.canterbury.ac.nz/index.php/bnzsee/management/settings/website
[Sun Apr 28 16:38:03.679165 2019] [php7:warn] [pid 1677] [client 172.29.106.233:55758] PHP Warning:  Declaration of DisqusPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /var/www/html/plugins/generic/disqus/DisqusPlugin.inc.php on line 145, referer: https://eng-jrnl.canterbury.ac.nz/index.php/bnzsee/management/settings/website
[Sun Apr 28 16:38:03.773468 2019] [php7:warn] [pid 1677] [client 172.29.106.233:55758] PHP Warning:  Declaration of DisqusSettingsForm::fetch($request) should be compatible with Form::fetch($request, $template = NULL, $display = false) in /var/www/html/plugins/generic/disqus/DisqusSettingsForm.inc.php on line 75, referer: https://eng-jrnl.canterbury.ac.nz/index.php/bnzsee/management/settings/website
[Sun Apr 28 16:38:03.773961 2019] [php7:warn] [pid 1677] [client 172.29.106.233:55758] PHP Warning:  filemtime(): stat failed for lib/pkp/templates/plugins/generic/disqus/templatestemplates/settingsForm.tpl in /var/www/html/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51, referer: https://eng-jrnl.canterbury.ac.nz/index.php/bnzsee/management/settings/website
[Sun Apr 28 16:38:03.774290 2019] [php7:error] [pid 1677] [client 172.29.106.233:55758] PHP Fatal error:  Uncaught  --> Smarty: Unable to load template 'app:plugins/generic/disqus/templatestemplates/settingsForm.tpl' <-- \n  thrown in /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195, referer: https://eng-jrnl.canterbury.ac.nz/index.php/bnzsee/management/settings/website

@ajnyga
Copy link
Owner

ajnyga commented Apr 30, 2019

Thanks, the errors are there because the plugin does not support 3.1.2 yet. That version included some changes that affected all old plugin and I have not had the time to upgrade this yet. But will do so probably within the next week or so.

@reaganch
Copy link
Author

Thanks @ajnyga. Looking forward to adding this plugin to my website.

@ajnyga
Copy link
Owner

ajnyga commented Jul 3, 2019

the plugin is now upgraded to support 3.1.2 courtesy of @mpbraendle

@ajnyga ajnyga closed this as completed Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants