[OJS 3.1.2-4] Admin settings access denied - Install Locale modal empty

Hi,

I am not able to add a language with “Install Locale”. I encountered two problems along the way but I am not sure if they are related or not. Please let me know if I should open two different topics.

As an administrator in OJS 3.1.2-4, I can access the administration index page. Under Hosted Journals, I expect to see a Site Settings link (as I do on another OJS instance), which I don’t. When I try to access admin/settings page directly with the URL in the browser, I end up with an access denied.

I have tried to set session_check_ip=Off in config.inc.php file as suggested in this thread since the issues seemed similar but it is not working.

In the end, what I want to do is add a language using “Install Locale”. I can the “Install Locale” link by navigating through Settings > Website > Languages but when I click the link, the modal that opens is empty (only the title appears). After a while, an error pop-up shows this error message : “Failed Ajax request or invalid JSON returned.”

Could you please help me to identify the problem(s) and a solution to access the administration settings page and to load the “Install Locale” content?

Thank you!

Hi @Audrey,

Do you have site admin privileges for the account you are using? That may impact your ability to access such settings. Also, please note that the version of OJS that you’re using is no longer supported by PKP. I recommend that you upgrade to the newest version of OJS, as it is possible that your issue will be resolved by upgrading. Installing and customizing locales also works better in later versions of OJS as well.

-Roger
PKP Team

Hi @rcgillis,

Thank you for your reply.

I am supposed to have site admin privileges and I think I do have since I can access admin/index page and see this:
image
I can also log in as other users. When I do, I can’t access admin page anymore (which is normal).

Is there another privilege level I don’t know about?

Also, I have previously been able to Install Locale with this OJS version. Do you think it could be an issue with a firewall or network related?

Thank you!

Hi @Audrey,

Yes, from this I can see that you certainly have site admin privileges. And, conceivably, you should be able to access this. Sometimes the “Failed AJAX request…” message isn’t all that helpful, but you could have a look at your PHP error logs and see if there are any relevant errors there that could indicate what the issue is.

-Roger
PKP Team

Hi @rcgillis,

Thank you

I had looked for logs before writing the initial post and I couldn’t found them…until I realised today that I should look in the apache folder instead of the ojs folder…

The error_log file contains (I have modified [domain_name] and [journal_name] mentions):

PHP Warning:  Declaration of ContextSettingsForm::execute() should be compatible with Form::execute(...$functionArgs) in /apps/ojs/[journal_name]/ojs-3.1.2-4/lib/pkp/classes/controllers/tab/settings/form/ContextSettingsForm.inc.php on line 20, referer: https://[domain_name]/index.php/[journal_name]/management/settings/website
PHP Warning:  Declaration of InstallLanguageForm::execute() should be compatible with Form::execute(...$functionArgs) in /apps/ojs/[journal_name]/ojs-3.1.2-4/lib/pkp/controllers/grid/languages/form/InstallLanguageForm.inc.php on line 19, referer: https://[domain_name]/index.php/[journal_name]/management/settings/website
PHP Warning:  Declaration of InstallLanguageForm::execute() should be compatible with Form::execute(...$functionArgs) in /apps/ojs/[journal_name]/ojs-3.1.2-4/lib/pkp/controllers/grid/languages/form/InstallLanguageForm.inc.php on line 19, referer: https://[domain_name]/index.php/[journal_name]/management/settings/website
PHP Warning:  fsockopen(): unable to connect to pkp.sfu.ca:80 (Connection timed out) in /apps/ojs/[journal_name]/ojs-3.1.2-4/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77, referer: https://domain_name]/index.php/[journal_name]/management/settings/website

Since we have an instance that does show Site Settings link on the administration index page and on which the locale list loads in the Install Locale modal, I compare the three files mentionned in the log file on the working instance and on the not working instance:

  • ContextSettingsForm.inc.php
  • InstallLanguageForm.inc.php
  • HTTPFileWrapper.inc.php

These three files were the same on both instances, so I conclude that the problem is elsewhere.

The connection timed out lets me think it is a network or a port issue. Do you think it is plausible?

Thank you!

Hi @rcgillis,

I have finally been able to install locale. I share the problem and solution in case it could be helpful for someone else in the future.

In config.inc.php file, in the proxy section, the lines http_host and http_port were commented. After uncommenting these two lines (with correct values), the locales loaded as expected at the Install Locale modal opening.

However, I still cannot access the admin/settings page and Site Settings link still doesn’t appear on the admin/index page. My hypothesis would be that it might be because there is only one journal in this OJS instance. Therefore, the site settings become the only journal site settings. I am curious to know if I am right about this, but it is not crucial since it doesn’t keep me from doing anything at the moment.

Thank you for your time!

Hi @Audrey,

Thanks for sharing. Glad to hear you were able to work this out. I’m not 100% sure think you might be right about it being the site settings and it being the only journal. I also think that this might be somewhat different in future versions were you to upgrade, which I would recommend, given that 3.1 is rather outdated.

-Roger
PKP Team

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