OJS 3 - main admin login problem

Good morning,

We have upgraded our OJS system to version 3. Unfortunately, the person who upgraded the software is on leave and we are unable to troubleshoot a problem we are having with regards to logging into the main site.

Journal managers are able to login to their journals with no problem but the site administrator is unable to login to the main site in order to create new journals, delete cache, etcetera. Clicking on the Login button at https://journals.mcmaster.ca/login, produces an error in the log file " ojs2: 404 Not Found, referer: https://journals.mcmaster.ca/login". The Register link also does not work. However, the login button works fine for individual journals but when logging with site admin account on an individual journal we are not able to go to the main administration screen where we can create new journals.

We have looked in our apache config file and AllowOverride All is set correctly for the site.

Has anyone encountered this problem before?

Any advice or assistance is greatly appreciated.

Thanks.

Hi @LibraryWeb,

I suspect your installation is using mod_rewrite to change its URLs. Do you have anyone on hand with mod_rewrite experience? (It’s an Apache module, if you’re not familiar with it.)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec, here’s what we have in the apache config file

DirectoryIndex /index.php index.php

RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

For Apache 2.2 and greater

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f

Do not rewrite URI with /index.php/ as a path component

RewriteCond %{REQUEST_URI} !^./index.php/.$

Rewrite non-file, non-directory URLs to OJS’s index.php

RewriteRule ^(.*)$ /index.php/$1 [QSA,L]

Hi @LibraryWeb,

It looks like some of that got interpreted as Markdown – can you post using the code quoting tools in this forum?

Regards,
Alec Smecher
Public Knowledge Project Team

DirectoryIndex /index.php index.php

RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_URI} !^./index.php/.$

RewriteRule ^(.*)$ /index.php/$1 [QSA,L]

Hi @LibraryWeb,

At a glance that looks OK; what do you have for your base_url[...] settings in config.inc.php?

Regards,
Alec Smecher
Public Knowledge Project Team