HTTP ERROR 500 When Trying to Log In to OJS

Hello everyone,

I’m getting an HTTP 500 error whenever I try to log in to our OJS platform. After entering my login credentials, the page fails to load and shows the following error:

This page isn’t working  
[Your journal URL] is currently unable to handle this request.  
HTTP ERROR 500

Here are some details about our setup:

  • OJS version: OJS 3.5

  • Hosting environment: Bluehost

  • PHP Version: 8.2

I have already tried basic troubleshooting like clearing browser cache and checking error logs, but the issue remains unresolved.

If anyone has experienced this issue or can provide advice on how to fix it, I would greatly appreciate your help!

Thank you in advance.

These are the error logs. Can someone please help me fix this issue?

Stack trace:
#0 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Pluralizer.php(109): Doctrine\Inflector\GenericLanguageInflectorFactory->build()
#1 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Pluralizer.php(52): Illuminate\Support\Pluralizer::inflector()
#2 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Str.php(963): Illuminate\Support\Pluralizer::plural(‘Group’, 2)
#3 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Str.php(979): Illuminate\Support\Str::plural(‘Group’, 2)
#4 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1892): Illuminate\Support\Str::pluralStudly(‘UserUserGroup’)
#5 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1990): Illuminate\Database\Eloquent\Model->getTable()
#6 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1535): Illuminate\Database\Eloquent\Builder->setModel(Object(PKP\userGroup\relationships\UserUserGroup))
#7 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1570): Illuminate\Database\Eloquent\Model->newModelQuery()
#8 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1523): Illuminate\Database\Eloquent\Model->newQueryWithoutScopes()
#9 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php(432): Illuminate\Database\Eloquent\Model->newQuery()
#10 /home2/bycfrgmy/public_html/ojs/lib/pkp/classes/userGroup/UserGroup.php(93): Illuminate\Database\Eloquent\Model->hasMany(‘PKP\userGroup\r…’, ‘user_group_id’, ‘user_group_id’)
#11 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php(1046): PKP\userGroup\UserGroup->userUserGroups()
#12 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(120): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\Concerns{closure}()
#13 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php(1045): Illuminate\Database\Eloquent\Relations\Relation::noConstraints(Object(Closure))
#14 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php(45): Illuminate\Database\Eloquent\Builder->getRelationWithoutConstraints(‘userUserGroups’)
#15 /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php(162): Illuminate\Database\Eloquent\Builder->has(‘userUserGroups’, ‘>=’, 1, ‘and’, Object(Closure))
#16 /home2/bycfrgmy/public_html/ojs/lib/pkp/classes/core/PKPPageRouter.php(413): Illuminate\Database\Eloquent\Builder->whereHas(‘userUserGroups’, Object(Closure))
#17 /home2/bycfrgmy/public_html/ojs/lib/pkp/classes/core/PKPPageRouter.php(395): PKP\core\PKPPageRouter->getHomeUrl(Object(APP\core\Request))
#18 /home2/bycfrgmy/public_html/ojs/lib/pkp/pages/login/LoginHandler.php(113): PKP\core\PKPPageRouter->redirectHome(Object(APP\core\Request))
#19 /home2/bycfrgmy/public_html/ojs/lib/pkp/pages/login/LoginHandler.php(163): PKP\pages\login\LoginHandler->_redirectAfterLogin(Object(APP\core\Request))
#20 [internal function]: PKP\pages\login\LoginHandler->signIn(Array, Object(APP\core\Request))
#21 /home2/bycfrgmy/public_html/ojs/lib/pkp/classes/core/PKPRouter.php(327): call_user_func(Array, Array, Object(APP\core\Request))
#22 /home2/bycfrgmy/public_html/ojs/lib/pkp/classes/core/PKPPageRouter.php(249): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
#23 /home2/bycfrgmy/public_html/ojs/lib/pkp/classes/core/Dispatcher.php(157): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
#24 /home2/bycfrgmy/public_html/ojs/lib/pkp/classes/core/PKPApplication.php(426): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#25 /home2/bycfrgmy/public_html/ojs/index.php(21): PKP\core\PKPApplication->execute()
#26 {main}
thrown in /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/doctrine/inflector/lib/Doctrine/Inflector/GenericLanguageInflectorFactory.php on line 27

Hi @patriciaaa101,

The actual error message is the line just before what you’ve quoted; can you include that too?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher , Oh sorry. These are the error

[19-Dec-2025 14:39:58 UTC] Missing locale key “validation.attributes” for the locale “en”
[19-Dec-2025 14:39:58 UTC] Missing locale key “validation.values.email.tepojournal_admin” for the locale “en”
[19-Dec-2025 14:39:58 UTC] PHP Fatal error: Uncaught Error: Class “Doctrine\Inflector\Inflector” not found in /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/doctrine/inflector/lib/Doctrine/Inflector/GenericLanguageInflectorFactory.php:27

Thank you

Hi @patriciaaa101,

Are you sure all files from the .tar.gz package are present? It looks like lib/pkp/lib/vendor/doctrine/inflector/lib/Doctrine/Inflector/Inflector.php is missing from your installation.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Yes — thank you for pointing that out.

It was working fine at first, and I didn’t make any changes on the server. However, upon checking the files again, I noticed that while
lib/pkp/lib/vendor/doctrine/inflector/lib/Doctrine/Inflector/Inflector.php
was present, the code inside the file was missing, which caused the error.

After ensuring that the file was restored correctly from the official .tar.gz package, OJS is now working normally and login is functioning as expected.

Thanks again for your help.

Hi @asmecher,

Once again, thank you for your assistance in resolving the HTTP 500 error. However, we are currently encountering another issue when clicking the Register and Forgot Password buttons.

Below are the error messages recorded in the logs:

[20-Dec-2025 15:52:21 UTC] PHP Fatal error: Uncaught → Smarty Compiler: Syntax error in template “app:app:frontendpagesuserLostPassword.tpl” on line 45 “{url|assign:registerUrl page=“user” op=“register” source=$source}” unknown modifier ‘assign’ ←
thrown in app:frontendpagesuserLostPassword.tpl on line 45

[20-Dec-2025 15:52:12 UTC] PHP Fatal error: Uncaught → Smarty Compiler: Syntax error in template “app:app:frontendpagesuserLostPassword.tpl” on line 45 “{url|assign:registerUrl page=“user” op=“register” source=$source}” unknown modifier ‘assign’ ←
thrown in app:frontendpagesuserLostPassword.tpl on line 45
[20-Dec-2025 15:52:18 UTC] PHP Fatal error: Uncaught BadMethodCallException: Call to undefined method PKP\userGroup\UserGroup::getPermitSelfRegistration() in /home2/bycfrgmy/public_html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:67

We would appreciate your guidance on how to resolve this issue.

Thank you.

Hi can anyone help me solve this?

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

(See: Error 505 when accessing register user and forgot password - #2 by asmecher)