No Code Attached Yet bug
avatar pAnd0rASBG
pAnd0rASBG
27 Apr 2022

Steps to reproduce the issue

After upgrading from 3.x to 4.1.2, the api seems top be broken, returning an error 500 and "Unable to load router: api" - this is the case on multiple sites (in fact, all we upgraded so far) so no "freak accident".
web.config was upgraded to the shipped default one, so this can't be the error.

Please help, as this breaks functionality depending on the API such as deleting images.

Expected result

404 w / {"errors":[{"title":"Resource not found","code":404}]} (as seen on fresh install)

Actual result

500 w/ Unable to load router: api

System information (as much as possible)

IIS 8 / 9 with PHP 7.4 / 8.0 (multiple servers)

avatar pAnd0rASBG pAnd0rASBG - open - 27 Apr 2022
avatar pAnd0rASBG pAnd0rASBG - change - 27 Apr 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 27 Apr 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Apr 2022
avatar toivo
toivo - comment - 27 Apr 2022

This must be an issue with the format of the request because the API authentication token and the API works all right in Joomla 4.1.2. There is no difference in the functionality of a Joomla 3.8.10 site that has been updated to Joomla 4.1.2.

An example of an API request posted to your forum topic at https://forum.joomla.org/viewtopic.php?f=812&t=993482.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37678.

avatar richard67
richard67 - comment - 1 May 2022

@pAnd0rASBG Please check the forum post linked in the previous comment and if it works for you, close this issue here. Thanks in advance.

avatar richard67 richard67 - change - 1 May 2022
Labels Added: Information Required
avatar richard67 richard67 - labeled - 1 May 2022
avatar olivier-nolbert
olivier-nolbert - comment - 12 May 2022

Hi,

We've got the same issue on J4.1.3 website (upgraded from 4.0.0) on Linux / Apache Server / PHP 7.4

It worked before the upgrade. We've compared files (with Beyond Compare) between a Joomla 4.1.3 fresh installation where the API is ok and the upgraded website and everything is the same except the extra files from third party extensions but this shouldn't interfere.

We've run the 4.1.3 update again on the website but it s not helping.

Something in the DB?

avatar olivier-nolbert
olivier-nolbert - comment - 12 May 2022

Well,

Looks like it finally came from a third party extension. Removing it fixed the API call.

Cheers

avatar brianteeman
brianteeman - comment - 12 May 2022

And what was that extension?

avatar olivier-nolbert
olivier-nolbert - comment - 12 May 2022

And what was that extension?

Sorry Brian, it was SEBLOD. Still in RC for J4, that would explain.

avatar pAnd0rASBG
pAnd0rASBG - comment - 12 May 2022

Sorry for the late reply - managed to fix it by now as well.
The Problem was 2-fold:
a) the "Unable to load router: api" when trying to access /api was caused by RSSEO
b) this one is noteworthy: not being able to delete images is caused by IIS' default behavior. When registering the fastcgi/php handler, IIS sets it by default only for GET, POST and PUT (this seems to be the case when using the web platform installer, the iis php extension and registering the handler manually respectively). Since deleting images is a DELETE request, IIS fails to call php, as it's nopt registered for DELETE Requests. The Handler needs to be changed manually to "allow all keywords".

avatar chmst chmst - change - 13 May 2022
Labels Removed: Information Required
avatar chmst chmst - unlabeled - 13 May 2022
avatar chmst
chmst - comment - 13 May 2022

Thank you for this information! Would you please open a new issue for your second hint? Then it will not be forgotten and we can close this one, where the title is now misleading.

avatar richard67
richard67 - comment - 13 May 2022

@chmst I am pretty sure we have already an issue for that.

avatar richard67
richard67 - comment - 13 May 2022

See #35848 for the DELETE request thing.

avatar brianteeman
brianteeman - comment - 13 May 2022

@richard67 same issue but different caause. That one was caused by a host disabling it in apache. This one is that the default for IIS is to be disabled

avatar richard67
richard67 - comment - 13 May 2022

@brianteeman I see .. thanks for clarification.

@pAnd0rASBG Do you have access to the IIS configuration so you can enable DELETE requests? Or is that something not in your hands?

avatar Quy Quy - change - 11 Jun 2022
Labels Added: Information Required
avatar Quy Quy - labeled - 11 Jun 2022
avatar jwaisner jwaisner - change - 2 Dec 2022
Priority Critical Medium
avatar chmst chmst - change - 17 Feb 2023
Labels Added: bug
avatar chmst chmst - labeled - 17 Feb 2023
avatar brianteeman brianteeman - close - 30 Aug 2023
avatar brianteeman
brianteeman - comment - 30 Aug 2023

Closing as the first part was a bug in seblod and the second part is a user sever configuration issue that has had no response for over a year

avatar brianteeman brianteeman - change - 30 Aug 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-08-30 12:46:20
Closed_By brianteeman
avatar brianteeman brianteeman - change - 30 Aug 2023
Labels Removed: Information Required
avatar brianteeman brianteeman - unlabeled - 30 Aug 2023

Add a Comment

Login with GitHub to post a comment