Closed m-amin-salem closed 1 year ago
Hey @jonasraoni do you have any idea about it or how should I approach it?
This code is supposed to be working. It's just deprecated, we're not going to remove it yet.
Check if you have this setting on your config.inc.php
:
https://github.com/pkp/ojs/blob/5afc534f7e7cf67ce6c63e45c2300052687c2ec8/config.TEMPLATE.inc.php#L36
On another hand, if you opt to update the code, you can just remove the requireComponents()
, as it's not needed anymore.
I'll close this issue because this isn't the right place to ask this, you can use the forum (https://forum.pkp.sfu.ca) if you still have doubts (feel free to tag me there, I use the same username everywhere).
Oh, I can't close the issue, tagging @asmecher 😁
@jonasraoni No worries, I will close it, thanks a lot for your guidance
I used a custom made plugin that works fine with OJS 3.X. When I installed the OJS 3.4 on the server, and tried to install the plugin, I got this error:
and this is the line 105 in my MyPlugin.inc.php:
This error occoures because the code in the My_plugin is trying to use the class “AppLocale,” but it cannot findit because it's deprecated in 3.4 version, here is a comment in \APP\i18n\AppLocale::
Accordingly, I have tried to use in /app/plugins/generic/My_plugin/MyPlugin.inc.php something like:
but I got this error:
I'm not familiar with PHP and I'm not sure if I'm doing it right, but I believe the main issue now is how to import constants LOCALE_COMPONENT_APP_COMMON and LOCALE_COMPONENT_APP_MANAGER according to the new structure