You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#117207 error in API with responsify

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 08 May 2025 11:43 BST

dibuxo

Hi, 

I noticed that responsify plugin returned a critical error in joomla api:

CRITICAL error Uncaught Throwable of type InvalidArgumentException thrown with message "Error loading menu: api". Stack trace: #0 [ROOT]/libraries/src/Application/CMSApplication.php(590): Joomla\CMS\Menu\MenuFactory->createMenu('api', Array)
#1 [ROOT]/plugins/system/wf_responsify/src/PluginTraits/MenuTrait.php(56): Joomla\CMS\Application\CMSApplication->getMenu()
#2 [ROOT]/plugins/system/wf_responsify/src/Extension/Responsify.php(92): Joomla\Plugin\System\WfResponsify\Extension\Responsify->checkMenuAssignment()
#3 [ROOT]/libraries/src/Plugin/CMSPlugin.php(311): Joomla\Plugin\System\WfResponsify\Extension\Responsify->onContentPrepare('com_content.art...', Object(stdClass), Object(Joomla\Registry\Registry), NULL)
#4 [ROOT]/libraries/vendor/joomla/event/src/Dispatcher.php(454): Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(Object(Joomla\CMS\Event\Content\ContentPrepareEvent))
...

 best regards

Ryan

Please try Responsify 2.1.3 Beta - https://www.joomlacontenteditor.net/downloads/plugins/development/responsify-dev

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

dibuxo

Still...

 

CMSApplication.php(590): Joomla\CMS\Menu\MenuFactory->createMenu('api', Array)
#1 [ROOT]/plugins/system/wf_responsify/src/PluginTraits/MenuTrait.php(56): Joomla\CMS\Application\CMSApplication->getMenu()
#2 [ROOT]/plugins/system/wf_responsify/src/Extension/Responsify.php(97): Joomla\Plugin\System\WfResponsify\Extension\Responsify->checkMenuAssignment()
#3 [ROOT]/libraries/src/Plugin/CMSPlugin.php(311): Joomla\Plugin\System\WfResponsify\Extension\Responsify->onContentPrepare('com_content.art...', Object(stdClass), Object(Joomla\Registry\Registry), NULL)
#4 [ROOT]/libraries/vendor/joomla/event/src/Dispatcher.php(454): Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(Object(Joomla\CMS\Event\Content\ContentPrepareEvent))
#5 [ROOT]/libraries/src/Application/EventAware.php(111): Joomla\Event\Dispatcher->dispatch('onContentPrepar...', Object(Joomla\CMS\Event\Content\ContentPrepareEvent))

Ryan

I'm not able to reproduce this in any of my tests, there seems to be an issue with your site.

Responsify is attempting to get the active menu, in the front-end of the site to see if it should execute (if it has been assigned to a menu item), using a common and tested method.

The error on your site is not occuring with this specific request, ie: Joomla\CMS\Application\CMSApplication->getMenu(), but at a later point.

Do you perhaps have a menu item with the name "api"?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.