Fails to redirect to the admin

I confirmed that its password matches updated, as you mentioned in the other ticket. However, there seems to be an issue with accessing the admin account at Entra | Apostolato Universale.

Interestingly, the page does not display an error message for incorrect username or password; it simply refreshes. To address this, I have taken the following steps in reviewing the site configuration:

  • I checked the .htaccess file to ensure it adheres to the default structure.
  • I verified that the config.inc.php file is configured correctly.
  • I confirmed that the site is properly creating and storing user sessions.
    Additionally, I traced the login process and can confirm that the script is correctly fetching all the admin data, yet it fails to redirect to the admin panel.
    This suggests that the problem is likely related to the login process itself, rather than the user credentials. The issue could stem from the login form, session management, or possibly the PHP scripts involved in the process.
    the version of OJS is 3.2.1.1

Hi @apostolatouniversale,

Not totally sure if this will fix your issue, but OJS 3.2 is out of date and no longer supported. You might want to upgrade to a later version (though that is not guaranteed to fix this issue). You also may want to check your PHP error logs and report on errors found there.

-Roger
PKP Team

hi Roger thank you for your reply, but if I cannot access the administrative panel of the page, how can I do an update?

Hi @apostolatouniversale,

Yes - sorry. You’ll definitely want to remedy that issue first, if you can. Are you able to check your PHP error logs?

Our upgrade guide provides some guidance on doing upgrade: https://docs.pkp.sfu.ca/dev/upgrade-guide/en/

But, you’re right, it will require access to the admin panel.

-Roger

Interestingly, the page does not display an error message for incorrect username or password; it simply refreshes. To address this, I have taken the following steps in reviewing the site configuration:

  • I checked the .htaccess file to ensure it adheres to the default structure.
  • I verified that the config.inc.php file is configured correctly.
  • I confirmed that the site is properly creating and storing user sessions.
  • I verified that user; has admin privileges.

Additionally, I traced the login process and can confirm that the script is correctly fetching all the admin data, yet it fails to redirect to the admin panel.

Hi @apostolatouniversale,

That’s probably not the best place to look for this info, but rather, it is best to check the PHP error log. Where that is located an depend on your hosting enviornment - please see here: How do I find my PHP error log?

-Roger
PKP Team

I have identified the following entries in the PHP logs:
[10-Mar-2025 23:30:41 UTC] ojs2: 404 Not Found
[10-Mar-2025 23:30:41 UTC] ojs2: 404 Not Found
[10-Mar-2025 23:31:06 UTC] ojs2: 404 Not Found
[10-Mar-2025 23:31:06 UTC] ojs2: 404 Not Found
[12-Mar-2025 08:58:07 UTC] Could not instantiate mail function.

In the public_html/lib/pkp/includes directory:
[11-Nov-2024 08:18:33 UTC] PHP Parse error: syntax error, unexpected '"', expecting ';' or ',' in /home/www/apostolatouniversale.org/public_html/lib/pkp/includes/functions.inc.php on line 181
[11-Nov-2024 08:18:36 UTC] PHP Parse error: syntax error, unexpected '"', expecting ';' or ',' in /home/www/apostolatouniversale.org/public_html/lib/pkp/includes/functions.inc.php on line 181

Hi @apostolatouniversale,

I would suggest upgrading before going further. With such an old version of OJS it’s entirely possible that it’s been hacked, and if that’s the case, there are no guarantees that the code it’s running hasn’t been modified. One of the messages you quoted:

[11-Nov-2024 08:18:33 UTC] PHP Parse error: syntax error, unexpected '"', expecting ';' or ',' in /home/www/apostolatouniversale.org/public_html/lib/pkp/includes/functions.inc.php on line 181

…does suggest that at least one PHP script was modified from its original form. It’s an old message (from November 2024).

Regards,
Alec Smecher
Public Knowledge Project Team

to your knowledge is there a support team that can work on correcting the problem and making updates. Does the OJS platform do this?

Hi @apostolatouniversale,

PKP doesn’t offer support services outside of our own servers, but you may find other groups here offering commercial support services. If you’re able to get the process started and run into roadblocks, we may be able to help here.

Regards,
Alec Smecher
Public Knowledge Project Team

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