small bug with J4 when creating article

More
2 years 11 months ago #62572 by aftertaf
details mentioned here : but in the end its not a core joomla bug...
issues.joomla.org/tracker/joomla-cms/36165

An error has occurred.
0 method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given
Call stack
# Function Location
1 () JROOT/plugins/system/pagebuilderck/pagebuilderck.php:77
2 method_exists() JROOT/plugins/system/pagebuilderck/pagebuilderck.php:77
3 plgSystemPagebuilderck->onContentPrepareForm() JROOT/libraries/src/Plugin/CMSPlugin.php:285
4 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
5 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111
6 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/MVC/Model/FormBehaviorTrait.php:179

Happens when creating a new article and choosing the category, without having first saved the new article.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #62624 by ced1870
Hi
Please install this plugin version and tell me if it fixes your error
www.dropbox.com/s/rmjh6lqn8qmkrrx/pagebuilderck.zip?dl=0

CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #62655 by aftertaf
No, still an issue...:
error - Uncaught Throwable of type TypeError thrown with message "method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given".
Stack trace: #0 B:\xampp\htdocs\plugins\system\pagebuilderck\pagebuilderck.php(121): method_exists(Array, 'get')
#1 B:\xampp\htdocs\libraries\src\Plugin\CMSPlugin.php(285): plgSystemPagebuilderck->onContentPrepareForm(Object(Joomla\CMS\Form\Form), Array)
#2 B:\xampp\htdocs\libraries\vendor\joomla\event\src\Dispatcher.php(486): Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(Object(Joomla\Event\Event))
#3 B:\xampp\htdocs\libraries\src\Application\EventAware.php(111): Joomla\Event\Dispatcher->dispatch('onContentPrepar...', Object(Joomla\Event\Event))
#4 B:\xampp\htdocs\libraries\src\MVC\Model\FormBehaviorTrait.php(179): Joomla\CMS\Application\WebApplication->triggerEvent('onContentPrepar...', Array)
#5 B:\xampp\htdocs\administrator\components\com_content\src\Model\ArticleModel.php(1105): Joomla\CMS\MVC\Model\FormModel->preprocessForm(Object(Joomla\CMS\Form\Form), Array, 'content')
#6 B:\xampp\htdocs\libraries\src\MVC\Model\FormBehaviorTrait.php(117): Joomla\Component\Content\Administrator\Model\ArticleModel->preprocessForm(Object(Joomla\CMS\Form\Form), Array)
#7 B:\xampp\htdocs\administrator\components\com_content\src\Model\ArticleModel.php(490): Joomla\CMS\MVC\Model\FormModel->loadForm('com_content.art...', 'article', Array)
#8 B:\xampp\htdocs\libraries\src\MVC\View\AbstractView.php(146): Joomla\Component\Content\Administrator\Model\ArticleModel->getForm()
#9 B:\xampp\htdocs\administrator\components\com_content\src\View\Article\HtmlView.php(87): Joomla\CMS\MVC\View\AbstractView->get('Form')
#10 B:\xampp\htdocs\libraries\src\MVC\Controller\BaseController.php(692): Joomla\Component\Content\Administrator\View\Article\HtmlView->display()
#11 B:\xampp\htdocs\administrator\components\com_content\src\Controller\DisplayController.php(63): Joomla\CMS\MVC\Controller\BaseController->display()
#12 B:\xampp\htdocs\libraries\src\MVC\Controller\BaseController.php(730): Joomla\Component\Content\Administrator\Controller\DisplayController->display()
#13 B:\xampp\htdocs\libraries\src\Dispatcher\ComponentDispatcher.php(146): Joomla\CMS\MVC\Controller\BaseController->execute('display')
#14 B:\xampp\htdocs\libraries\src\Component\ComponentHelper.php(389): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#15 B:\xampp\htdocs\libraries\src\Application\AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_content')
#16 B:\xampp\htdocs\libraries\src\Application\AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch()
#17 B:\xampp\htdocs\libraries\src\Application\CMSApplication.php(278): Joomla\CMS\Application\AdministratorApplication->doExecute()
#18 B:\xampp\htdocs\administrator\includes\app.php(63): Joomla\CMS\Application\CMSApplication->execute()
#19 B:\xampp\htdocs\administrator\index.php(32): require_once('B:\\xampp\\htdocs...')
#20 {main}

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #62657 by ced1870
can you please try this one
www.dropbox.com/s/rmjh6lqn8qmkrrx/pagebuilderck.zip?dl=0

let me know

Joomlack Webmaster and Developer
The following user(s) said Thank You: aftertaf

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #62664 by aftertaf
yep ca marche m'sieur !

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #62668 by ced1870
super :) ce sera corrigé dans la prochaine version

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.224 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 504 guests and 2 members online