ajnyga / disqus

Disqus plugin for OJS/OPS/OMP 3.2+
GNU General Public License v3.0
3 stars 3 forks source link

Failed Ajax request or invalid JSON returned #6

Closed reaganch closed 5 years ago

reaganch commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

ajnyga commented 5 years ago

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