Error installing ojs-3.3.0-14 plugin

Hello
I have successfully installed ojs-3.3.0-14 on a subdomain of an online cPanel host. (Of course, when I installed my database, I chose SQL by default and I don’t know if it is better to choose SQL or SQLI or etc…)
But when I try to install plugins online from the plugin gallery, I get the following error.


The uploaded plugin archive does not contain a folder that corresponds to the plugin name.


Please tell me step by step what to do? I have no knowledge of PHP, but I can find and replace the codes if I’m properly guided. I have read and checked many messages but I don’t know what exactly should I do?
Thank you very much for your patient and detailed answer, my good friends

In order to better master my own system, I will share the following essential information with you so that I can be guided better.

-------------------------------------------------------------------

My OJS system information is in the link below.

https://ojs.hisiter.ir/index.php/System-Information/index

-------------------------------------------------------------------

My Server Information

-------------------------------------------------------------------

PageHandler.inc.php settings in lib/pkp/controllers/page/PageHandler.inc.php

8

-------------------------------------------------------------------

config.inc.php

-------------------------------------------------------------------

Select OAI setting during installation

Hi @hj_h

Which plugin have you tried to install? Is it happening to any plugin or a specific one?

If your server runs PHP7, it is recommended to use MYSQLI. You can change it on your config.inc.php file on the [database] section, driver parameter.

Best,
Israel

Hi

when I want to install any plugins I receive this error
My sever is using PHP version 7.4.33
I send you all information about server and My OJS.
Is there no need to change another value?

My OJS system information is in the link below.

https://ojs.hisiter.ir/index.php/System-Information/index

thanks for answering :rose:

I changed this value in config.inc.php but, I still get the same error

10

Does the Apache process have access to the plugins directory and all its subdirectories? Apache group should have read access.

If you want to install a plugin from the gallery, you should temporarily give write access to the plugins/{category} directory of the plugin (most are generic plugins) for the Apache group.

1 Like

Which part should I use?
How can I check the access to the plugins/{category} directory of the plugin for the Apache group?

If there is no access, how can I activate it?
Please tell me step by step what to do?

(Let me tell you that I have given all user access to the database when I created the database. Is that what you mean?)

I apologize for asking you simple questions, because I have little knowledge in this field.

And again, thank you for your patience, dear friends

It’s in the file system, not in the database. Check there, please (probably you can do using cPanel, I don’t know this tool).

1 Like

Hi @hj_h

According to your system information, tar application is located in the follwoing path:
/usr/bin/tar

However, in your config.inc.php file , you haven’t adjusted the path to it yet.

Please, fix the path to your tar command and it should work installing plugins. You can double check the location of your TAR executable follwoing the instructions from this post:

Best,
Israel

1 Like

Hi @israel.cefrin
Thank you for your patient response and help

I replaced the following code that was in config.inc.php

tar = /bin/tar

with code

tar = /usr/bin/tar


I even replaced the following code which was in lib/pkp/controllers/page/PageHandler.inc.php

readfile($cachedFile);

with code

echo file_get_contents($cachedFile);


I made the necessary changes, but the problem of not installing plugins, whether online from the plugin gallery or manually, still persists.

Hi @mpbraendle

If you know the folder path and give me its address, I will find it in my online host files and make the necessary changes.


files folder and ojs.hisiter.ir folder are related to my magazine.
The main files of the OJS system are in ojs.hisiter.ir and the name of the Journal DIrectory folder is files.

:point_down: :point_down: :point_down:

313

ojs.hisiter.ir > plugins

1 Like

Hello my friend @mpbraendle
Thank you for taking the time for me.
I sent you this photo and entered the folder.
Which folder should I open and what should I do next?

Can anyone help me?
Some friends told me some solutions but the problem was not solved.
Please help, thank you

Good evening, my name is indra. I had installed OJS 3.3.0.14 version and I have problem when I tried to add the contributor/author by using quick submit plugin. It could not add the contributor/author, it said “Failed Ajax request or invalid JSON returned.”


Please give me a bunch of hands. Because my previous journal had been hijacked

Hi @indra_sudarsono,

you should open a new topic for this instead of adding your question, which is not related, to this thread.

1 Like