Costume block Manager Blocks cannot be activated after upgrade to OJS 3.2.0.1

Hello,

I have some problems with my sidebar blocks after upgrading OJS to version 3.2.0.1. All my blocks are deactivated and can’t be activated anymore. And I get this error message in my Log. It would be great if you can help me.

[28-Mar-2020 13:01:54 Europe/Berlin] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function APP\Services\SubmissionService::getInSections(), 1 passed in …plugins/generic/webFeed/WebFeedGatewayPlugin.inc.php on line 122 and exactly 2 expected in …classes/services/SubmissionService.inc.php:151

Stack trace:

#0 …plugins/generic/webFeed/WebFeedGatewayPlugin.inc.php(122): APP\Services\SubmissionService->getInSections(‘201’)

#1 …pages/gateway/GatewayHandler.inc.php(230): WebFeedGatewayPlugin->fetch(Array, Object(Request))

#2 …lib/pkp/classes/core/PKPRouter.inc.php(391): GatewayHandler->plugin(Array, Object(Request))

#3 …lib/pkp/classes/core/PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)

#4 …lib/pkp/classes/core/Dispatcher.inc.php(143): PKPPageRouter->route(Object(Request))

#5 …lib/pkp/cla in …classes/services/SubmissionService.inc.php on line 151

[28-Mar-2020 13:02:00 Europe/Berlin] PHP Warning: Creating default object from empty value in …cache/t_compile/42362804174f266c598cdb32c3208fc745b92101^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30

[28-Mar-2020 13:02:00 Europe/Berlin] PHP Warning: Creating default object from empty value in …cache/t_compile/42362804174f266c598cdb32c3208fc745b92101^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30

[28-Mar-2020 13:02:02 Europe/Berlin] PHP Deprecated: Non-static method PKPApplication::getRequest() should not be called statically in …plugins/generic/coins/CoinsPlugin.inc.php on line 59

[28-Mar-2020 13:02:06 Europe/Berlin] PHP Warning: Creating default object from empty value in …cache/t_compile/42362804174f266c598cdb32c3208fc745b92101^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30

[28-Mar-2020 13:02:06 Europe/Berlin] PHP Warning: Creating default object from empty value in …cache/t_compile/42362804174f266c598cdb32c3208fc745b92101^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30

[28-Mar-2020 13:02:06 Europe/Berlin] PHP Deprecated: Non-static method PKPApplication::getRequest() should not be called statically in …plugins/generic/coins/CoinsPlugin.inc.php on line 59

Regards,

Felix Syrovatka

try to turn-off web-feed plugin. some plugins have small bugs after update :slight_smile:

1 Like

Thanks for your help. I thought so yesterday and switched off all the plug-ins mentioned. Now I only get the following error message:

29-Mar-2020 12:44:12 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function getJournalId() on null in …/classes/issue/IssueAction.inc.php:31

Stack trace:

#0 …/classes/search/ArticleSearch.inc.php(274): IssueAction->subscriptionRequired(NULL, Object(Journal))

#1 …/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php(137): ArticleSearch->formatResults(Array)

#2 …/lib/pkp/classes/plugins/HookRegistry.inc.php(107): RecommendByAuthorPlugin->callbackTemplateArticlePageFooter(‘Templates::Arti…’, Array)

#3 …/lib/pkp/classes/template/PKPTemplateManager.inc.php(1237): HookRegistry::call(‘Templates::Arti…’, Array)

#4 …/cache/t_compile/42362804174f266c598cdb32c3208fc745b92101^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))

#5 …/lib/pkp/lib/vendor/smarty/smarty/libs/ in …/classes/issue/IssueAction.inc.php on line 31

Thanks for your help!

Hello,

so I have now also switched off the payment system and have now been able to reduce the number of error messages considerably. Unfortunately I still get an error message like this:

29-Mar-2020 13:11:51 Europe/Berlin] PHP Warning: Creating default object from empty value in
…/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30

I’m not quite sure where the false report came from. It seems that there is a file missing from the cache. I emptied the cache, but unfortunately this did not change anything. I am a bit desperate. Does anyone have any idea what this might be?

By the way, the error looks like this… Endless storage process

regards,
Felix Syrovatka

Perhaps as a supplement:

I get the following error in my browser console

TypeError: this.locales.find is not a function
at o.localeLabel (build.js?v=3.2.0.1:8)
at ri.get (build.js?v=3.2.0.1:14)
at ri.evaluate (build.js?v=3.2.0.1:14)
at o.localeLabel (build.js?v=3.2.0.1:14)
at o.qn (build.js?v=3.2.0.1:8)
at o.e._render (build.js?v=3.2.0.1:14)
at o.i (build.js?v=3.2.0.1:14)
at ri.get (build.js?v=3.2.0.1:14)
at new ri (build.js?v=3.2.0.1:14)
at In (build.js?v=3.2.0.1:14)

and this

build.js?v=3.2.0.1:14 TypeError: Cannot read property ‘dropzone’ of undefined
at o.mounted (build.js?v=3.2.0.1:8)
at rt (build.js?v=3.2.0.1:14)
at Nn (build.js?v=3.2.0.1:14)
at Object.insert (build.js?v=3.2.0.1:14)
at C (build.js?v=3.2.0.1:14)
at Li.patch (build.js?v=3.2.0.1:14)
at Li.An.e._update (build.js?v=3.2.0.1:14)
at Li.i (build.js?v=3.2.0.1:14)
at ri.get (build.js?v=3.2.0.1:14)
at new ri (build.js?v=3.2.0.1:14)

This error was fixed in 3.2.0-1
https://github.com/pkp/pkp-lib/issues/5571#issuecomment-601915574

Yes I know (Cannot Display Sidebar in ojs 3.2.0.0 · Issue #5571 · pkp/pkp-lib · GitHub) but I never had 3.2.0.0… We never had 3.2.0.0. in use, but switched from version 3.1.2.1 to 3.2.0.1. Should I run the update again?
Screenshot_20200329-154140

How you run update? Via php-cli or via web-site?

Via Website. But i can do it via PHP-CLI again

try
php tools/upgrade.php check
and only then
php tools/upgrade.php upgrade

1 Like

Dear redukr,

it is possible that the JavaScript libraries are not up to date. Because the error in my Browser is:

build.js?v=3.2.0.1:14 TypeError: e.supportedFormLocales.filter is not a function
at build.js?v=3.2.0.1:8
at Array.forEach ()
at build.js?v=3.2.0.1:8
at Array.forEach ()
at o.submitValues (build.js?v=3.2.0.1:8)
at ri.get (build.js?v=3.2.0.1:14)
at ri.evaluate (build.js?v=3.2.0.1:14)
at o.submitValues (build.js?v=3.2.0.1:14)
at o.submit (build.js?v=3.2.0.1:8)
at o.nextPage (build.js?v=3.2.0.1:8)

I don’t have a Node.js on my webserver but so far it was not necessary. How can I update these libraries?

regards, Felix

I was install Node.js but I get an error back after install node.js and the code npm install: "
ENOENT: no such file or directory, open ‘…/package.json’

This issue has been fixed. Kindly copy latest release.

When you updating ojs, how do you update? Just overwriting new release files over old? Or you delete all old files exept files/public directories as mentioned in readme.md at github?

1 Like

Yes, this could be the mistake. I’m overwriting the old files and not deleting them completely. I don’t work with GitHub because we kind of forgot about it when we set up OJS back then. We upload the files through an FTP server. And yes, this time I didn’t delete all the files first, but I had the old files overwritten.

Please read the thread. I also do this!

Hi everyone! :wave:

First of all, thanks to everyone for jumping in an helping each other out over the weekend. It seems like there are a few different issues going on, so I will try to separate them out.

  1. Thanks for reporting the fatal error with the WebFeedGatewayPlugin. It looks like this has been filed and a fix will go out with the next version. PHP Fatal error in WebFeedPlugin · Issue #5680 · pkp/pkp-lib · GitHub

  2. Thanks for reporting the fatal error with the RecommendByAuthorPlugin. I have filed an issue to invetsigate that. Fatal error in RecommendByAuthor plugin · Issue #5683 · pkp/pkp-lib · GitHub

  3. The errors in the browser’s console, this.locales and e.supportedFormLocales suggests that there may be an issue with the language settings in the journal. Can you try resetting them under Settings > Website > Setup > Languages?

Finally, a note on upgrading. Whenever you make a major or minor upgrade, you will need to run the upgrade script. So the following are major or minor upgrades:

  • 3.1 → 3.2
  • 3.1.1 → 3.1.2

The following maintenance upgrades do not have any database changes and so you do not need to run the upgrade script.

  • 3.1.2-0 → 3.1.2-1
  • 3.2.0-0 → 3.2.0-1

You can read full instructions on upgrading here: https://pkp.sfu.ca/ojs/UPGRADE

1 Like

Dear Nate,

thanks a lot for your help. I will consider your suggestions for the update in the future

As for your proposal. I reloaded the language settings like you asked. Unfortunately the error has not changed. But I noticed that when switching to the english version of the BackEnd the display is very funny (see screenshot). The german version of the BackEnd is normal and looks like always

Thanks a lot for your help!

Can you show me a screenshot of your language settings?

1 Like

Sprache

and here the error again
Fehler