Open_BaseDir errors

OJS 2.4.8.5 has the following errors that are hidden until we turned on debugging…

Any ideas? Thanks! Rich DeVito

ojs2 has produced an error Message: WARNING: file_exists(): open_basedir restriction in effect. File(plugins/oaiMetadataFormats/README/index.php) is not within the allowed path(s): (/home/radjr1/:/tmp/:/var/tmp/:/opt/alt/php56/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php56/lib/:/usr/local/php72/lib/:/usr/local/php74/lib/:/usr/local/php73/lib/:/usr/local/lib/php/) In file: /home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/lib/pkp/classes/plugins/PluginRegistry.inc.php At line: 221 Stacktrace: File: (unknown) line (unknown) Function: PKPApplication->errorHandler(2, “file_exists(): open_basedir restriction in effect. File(plugins/oaiMetadataFormats/README/index.php) is not within the allowed path(s): (/home/radjr1/:/tmp/:/var/tmp/:/opt/alt/php56/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php56/lib/:/usr/local/php72/lib/:/usr/local/php74/lib/:/usr/local/php73/lib/:/usr/local/lib/php/)”, “/home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/lib/pkp/classes/plugins/PluginRegistry.inc.php”, 221, Array(7)) File: /home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/lib/pkp/classes/plugins/PluginRegistry.inc.php line 221 Function: file_exists(“plugins/oaiMetadataFormats/README/index.php”) File: /home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/lib/pkp/classes/plugins/PluginRegistry.inc.php line 121 Function: PluginRegistry->_instantiatePlugin(“oaiMetadataFormats”, “plugins/oaiMetadataFormats”, “README”) File: /home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/pages/manager/PluginHandler.inc.php line 53 Function: PluginRegistry->loadCategory(“oaiMetadataFormats”) File: (unknown) line (unknown) Function: PluginHandler->plugins(Array(0), Object(Request)) File: /home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/lib/pkp/classes/core/PKPRouter.inc.php line 362 Function: call_user_func(Array(2), Array(0), Object(Request)) File: /home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/lib/pkp/classes/core/PKPPageRouter.inc.php line 220 Function: PKPRouter->_authorizeInitializeAndCallRequest(Array(2), Object(Request), Array(0), False) File: /home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/lib/pkp/classes/core/Dispatcher.inc.php line 134 Function: PKPPageRouter->route(Object(Request)) File: /home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/lib/pkp/classes/core/PKPApplication.inc.php line 178 Function: Dispatcher->dispatch(Object(Request)) File: /home/radjr1/domains/ojs2.wmpllc.org/public_html/ojs/index.php line 64 Function: PKPApplication->execute() Server info: OS: Linux PHP Version: 5.6.40 Apache Version: N/A DB Driver: mysqli DB server version: 5.5.63-MariaDB

Hello @radjr

Please note, that the version of OJS that you’re using is no longer maintained or supported by PKP. I recommend that you upgrade to the newest version of OJS. However, other community members may wish to offer assistance with your question.

You may find the following resources helpful in preparing for and performing the upgrade:

These resources will introduce you to OJS 3 and how it is different from OJS 2:

You may need to seek professional support to upgrade your installation. This can usually be acquired from the service provider that hosts or maintains your software, such as the technical support team at your institution or a third-party hosting provider.

If you are unable to get the support you need from your service provider, we recommend you consider exploring alternative providers. Publishing support services may exist in your institution that can help you identify sources of help.

-Roger
PKP Team

Hi @radjr,

…however, note that removing plugins/oaiMetadataFormats/README will probably resolve the issue. (I think this is an old bug that has long since been resolved.)

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks Alec,
Not sure if you are saying that you want me to remove the oaiMetadataFormats plugin from OJS or remove the README file. This may be a none issue once we upgrade to 3.x as I presume ALL the plugins get reved.
Thanks, radjr

Hi @radjr,

Just remove the README file. Parts of OJS expect everything there to be a directory, and the fact that there’s a file there throws it off.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks. That is interesting. Done!

This topic was automatically closed after 11 days. New replies are no longer allowed.