Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Enable debug and post stack trace. Commented Jul 25, 2024 at 8:41
  • 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.. Commented Jul 25, 2024 at 15:44
  • This is not a solution. You must never edit core files, your changes will be lost on update. Also the change is plain wrong, it removes onAfterDispatch event which means plugins can no longer respond to it. What this does tell us is that the issue is coming from some plugin responding to onAfterDispatch. If you enable debug, you may be able to see which plugin exactly is causing the issue. Commented Jul 26, 2024 at 5:17