Hi,
when I enabled JO Auto Instagram, i'm not able to create new Articles.
Im Getting Exception:
2023-03-30T11:27:25+00:00 CRITICAL 77.180.10.255 error Uncaught Throwable of type TypeError thrown with message "in_array(): Argument #2 ($haystack) must be of type array, null given". Stack trace: #0 [ROOT]/administrator/components/com_joautoinstagram/src/Helper/JoautoinstagramHelper.php(116): in_array()
#1 [ROOT]/plugins/system/jo_autopost_instagram/jo_autopost_instagram.php(54): Joomla\Component\Joautoinstagram\Administrator\Helper\JoautoinstagramHelper::Instagramformpost()
#2 [ROOT]/libraries/src/Plugin/CMSPlugin.php(279): plgSystemJo_autopost_instagram->onAfterRender()
#3 [ROOT]/libraries/vendor/joomla/event/src/Dispatcher.php(486): Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
#4 [ROOT]/libraries/src/Application/EventAware.php(107): Joomla\Event\Dispatcher->dispatch()
#5 [ROOT]/libraries/src/Application/CMSApplication.php(1023): Joomla\CMS\Application\WebApplication->triggerEvent()
#6 [ROOT]/libraries/src/Application/AdministratorApplication.php(417): Joomla\CMS\Application\CMSApplication->render()
#7 [ROOT]/libraries/src/Application/CMSApplication.php(299): Joomla\CMS\Application\AdministratorApplication->render()
#8 [ROOT]/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#9 [ROOT]/administrator/index.php(32): require_once('...')
#10 {main}
When I try to use the "Save + New " Funktion on existing articles i get:
2023-03-30T11:28:42+00:00 CRITICAL 77.180.10.255 error Uncaught Throwable of type TypeError thrown with message "count(): Argument #1 ($value) must be of type Countable|array, null given". Stack trace: #0 [ROOT]/libraries/src/Plugin/CMSPlugin.php(279): plgSystemJo_autopost_instagram->onContentAfterSave()
#1 [ROOT]/libraries/vendor/joomla/event/src/Dispatcher.php(486): Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
#2 [ROOT]/libraries/src/Application/EventAware.php(107): Joomla\Event\Dispatcher->dispatch()
#3 [ROOT]/libraries/src/MVC/Model/AdminModel.php(1277): Joomla\CMS\Application\WebApplication->triggerEvent()
#4 [ROOT]/administrator/components/com_content/src/Model/ArticleModel.php(779): Joomla\CMS\MVC\Model\AdminModel->save()
#5 [ROOT]/libraries/src/MVC/Controller/FormController.php(676): Joomla\Component\Content\Administrator\Model\ArticleModel->save()
#6 [ROOT]/libraries/src/MVC/Controller/BaseController.php(672): Joomla\CMS\MVC\Controller\FormController->save()
#7 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute()
#8 [ROOT]/libraries/src/Component/ComponentHelper.php(355): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#9 [ROOT]/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent()
#10 [ROOT]/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch()
#11 [ROOT]/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\AdministratorApplication->doExecute()
#12 [ROOT]/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#13 [ROOT]/administrator/index.php(32): require_once('...')
#14 {main}
When editing existing articles both the facebook and instagram auto plugins work as expected.
When I disable Instagram Plugin, create Article works again.
Can you help me here ?
Joomla Version is 4.2.9