Hi.
Here is the stack trace of an API call to a single article :
'code' => '500',
'title' => 'Internal server error',
'detail' => 'Error: Call to undefined method Joomla\Component\Content\Administrator\Model\ArticleModel::setUpWorkflow() in /var/www/sites/web3/web/administrator/components/com_content/src/Model/ArticleModel.php:122 Stack trace: #0 /var/www/sites/web3/web/libraries/src/MVC/Factory/MVCFactory.php(146): Joomla\Component\Content\Administrator\Model\ArticleModel->__construct()
#1 /var/www/sites/web3/web/libraries/src/MVC/Factory/ApiMVCFactory.php(41): Joomla\CMS\MVC\Factory\MVCFactory->createModel()
#2 /var/www/sites/web3/web/libraries/src/MVC/Controller/BaseController.php(546): Joomla\CMS\MVC\Factory\ApiMVCFactory->createModel()
#3 /var/www/sites/web3/web/libraries/src/MVC/Controller/BaseController.php(724): Joomla\CMS\MVC\Controller\BaseController->createModel()
#4 /var/www/sites/web3/web/libraries/src/MVC/Controller/ApiController.php(160): Joomla\CMS\MVC\Controller\BaseController->getModel()
#5 /var/www/sites/web3/web/libraries/src/MVC/Controller/BaseController.php(693): Joomla\CMS\MVC\Controller\ApiController->displayItem()
#6 /var/www/sites/web3/web/libraries/src/Dispatcher/ApiDispatcher.php(61): Joomla\CMS\MVC\Controller\BaseController->execute()
#7 /var/www/sites/web3/web/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ApiDispatcher->dispatch()
#8 /var/www/sites/web3/web/libraries/src/Application/ApiApplication.php(418): Joomla\CMS\Component\ComponentHelper::renderComponent()
#9 /var/www/sites/web3/web/libraries/src/Application/ApiApplication.php(112): Joomla\CMS\Application\ApiApplication->dispatch()
#10 /var/www/sites/web3/web/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\ApiApplication->doExecute()
#11 /var/www/sites/web3/web/api/includes/app.php(53): Joomla\CMS\Application\CMSApplication->execute()
#12 /var/www/sites/web3/web/api/index.php(31): require_once('...')
#13 {main}',
Here is the stack trace of an API call to a single article :
'code' => '500',
'title' => 'Internal server error',
'detail' => 'Error: Call to undefined method Joomla\Component\Content\Administrator\Model\ArticleModel::setUpWorkflow() in /var/www/sites/web3/web/administrator/components/com_content/src/Model/ArticleModel.php:122 Stack trace: #0 /var/www/sites/web3/web/libraries/src/MVC/Factory/MVCFactory.php(146): Joomla\Component\Content\Administrator\Model\ArticleModel->__construct()
#1 /var/www/sites/web3/web/libraries/src/MVC/Factory/ApiMVCFactory.php(41): Joomla\CMS\MVC\Factory\MVCFactory->createModel()
#2 /var/www/sites/web3/web/libraries/src/MVC/Controller/BaseController.php(546): Joomla\CMS\MVC\Factory\ApiMVCFactory->createModel()
#3 /var/www/sites/web3/web/libraries/src/MVC/Controller/BaseController.php(724): Joomla\CMS\MVC\Controller\BaseController->createModel()
#4 /var/www/sites/web3/web/libraries/src/MVC/Controller/ApiController.php(160): Joomla\CMS\MVC\Controller\BaseController->getModel()
#5 /var/www/sites/web3/web/libraries/src/MVC/Controller/BaseController.php(693): Joomla\CMS\MVC\Controller\ApiController->displayItem()
#6 /var/www/sites/web3/web/libraries/src/Dispatcher/ApiDispatcher.php(61): Joomla\CMS\MVC\Controller\BaseController->execute()
#7 /var/www/sites/web3/web/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ApiDispatcher->dispatch()
#8 /var/www/sites/web3/web/libraries/src/Application/ApiApplication.php(418): Joomla\CMS\Component\ComponentHelper::renderComponent()
#9 /var/www/sites/web3/web/libraries/src/Application/ApiApplication.php(112): Joomla\CMS\Application\ApiApplication->dispatch()
#10 /var/www/sites/web3/web/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\ApiApplication->doExecute()
#11 /var/www/sites/web3/web/api/includes/app.php(53): Joomla\CMS\Application\CMSApplication->execute()
#12 /var/www/sites/web3/web/api/index.php(31): require_once('...')
#13 {main}',
Statistics: Posted by roland_d_alsace — Sat Mar 23, 2024 9:37 am