Connecting via API giving error

39 views
Skip to first unread message

Tariq Zacharia

unread,
Jul 24, 2024, 5:46:53 AMJul 24
to Joomla! General Development
Hi, I'm trying to connect to Joomla via API is giving error for this url:


RuntimeException [500]
Unable to load router: api
.../libraries/src/Router/Router.php:115

Connection authentication is done using bearer token. The vesion of Joomla is 4.4.5

Is there any way to solve this issue. Thanks..

René Kreijveld

unread,
Jul 24, 2024, 7:37:43 AMJul 24
to Joomla! General Development
What webserver is your dite running? Apache or NgninX?

Op woensdag 24 juli 2024 om 11:46:53 UTC+2 schreef tari...@gmail.com:

Tariq Zacharia

unread,
Jul 25, 2024, 12:14:37 AMJul 25
to Joomla! General Development
Apache

Tariq Zacharia

unread,
Jul 25, 2024, 11:59:39 AMJul 25
to Joomla! General Development
I have fixed it after commenting the last line of libraries/src/Application/ApiApplication.php. The code that I commented is : //$this->triggerEvent('onAfterDispatch'); . The issue was not seen in a fresh installation of Joomla 4, but in the one upgraded from 3 to 4. May be it will be helpful of someone facing the same problem.

Travis Risner

unread,
Jul 26, 2024, 8:18:23 AMJul 26
to Joomla! General Development
In that case, it sounds like there's a plugin that is interfering with the core Joomla API on the site that was upgraded. Probably third party.
Reply all
Reply to author
Forward
0 new messages