jfquestiaux
Well-Known Member
Hi,
The idea to use the #__tags table to store the tags generated in Fabrik was a good one, but unfortunately it does not work: upon save, tags are not saved in #__tags and in the "repeat" file, the tag_id is NULL.
So the issue is really in the insertion of the tags in the J! table.
This is the error reported by the $tagModel object (on line 455):
[_errorsrotected] => Array
(
[0] => exception 'UnexpectedValueException' with message 'TagsTableTag::_getNode(1, ) failed.' in /home/realadminjoom/public_html/libraries/joomla/table/nested.php:1523
Stack trace:
#0 /home/realadminjoom/public_html/libraries/joomla/table/nested.php(768): JTableNested->_getNode(1)
#1 /home/realadminjoom/public_html/administrator/components/com_tags/tables/tag.php(254): JTableNested->store(false)
#2 /home/realadminjoom/public_html/administrator/components/com_tags/models/tag.php(343): TagsTableTag->store()
#3 /home/realadminjoom/public_html/plugins/fabrik_element/tags/tags.php(455): TagsModelTag->save(Array)
#4 /home/realadminjoom/public_html/components/com_fabrik/models/form.php(1806): PlgFabrik_ElementTags->onFinalStoreRow(Array)
#5 /home/realadminjoom/public_html/components/com_fabrik/models/form.php(1838): FabrikFEModelForm->processElements()
#6 /home/realadminjoom/public_html/components/com_fabrik/models/form.php(1244): FabrikFEModelForm->processToDB()
#7 /home/realadminjoom/public_html/components/com_fabrik/controllers/form.php(241): FabrikFEModelForm->process()
#8 /home/realadminjoom/public_html/libraries/legacy/controller/legacy.php(702): FabrikControllerForm->process()
#9 /home/realadminjoom/public_html/components/com_fabrik/fabrik.php(181): JControllerLegacy->execute('process')
#10 /home/realadminjoom/public_html/libraries/cms/component/helper.php(405): require_once('/home/realadmin...')
#11 /home/realadminjoom/public_html/libraries/cms/component/helper.php(380): JComponentHelper::executeComponent('/home/realadmin...')
#12 /home/realadminjoom/public_html/libraries/cms/application/site.php(191): JComponentHelper::renderComponent('com_fabrik')
#13 /home/realadminjoom/public_html/libraries/cms/application/site.php(230): JApplicationSite->dispatch()
#14 /home/realadminjoom/public_html/libraries/cms/application/cms.php(257): JApplicationSite->doExecute()
#15 /home/realadminjoom/public_html/index.php(49): JApplicationCms->execute()
#16 {main}
This is tested on latest J!/Fabrik from GitHub.
The idea to use the #__tags table to store the tags generated in Fabrik was a good one, but unfortunately it does not work: upon save, tags are not saved in #__tags and in the "repeat" file, the tag_id is NULL.
So the issue is really in the insertion of the tags in the J! table.
This is the error reported by the $tagModel object (on line 455):
[_errorsrotected] => Array
(
[0] => exception 'UnexpectedValueException' with message 'TagsTableTag::_getNode(1, ) failed.' in /home/realadminjoom/public_html/libraries/joomla/table/nested.php:1523
Stack trace:
#0 /home/realadminjoom/public_html/libraries/joomla/table/nested.php(768): JTableNested->_getNode(1)
#1 /home/realadminjoom/public_html/administrator/components/com_tags/tables/tag.php(254): JTableNested->store(false)
#2 /home/realadminjoom/public_html/administrator/components/com_tags/models/tag.php(343): TagsTableTag->store()
#3 /home/realadminjoom/public_html/plugins/fabrik_element/tags/tags.php(455): TagsModelTag->save(Array)
#4 /home/realadminjoom/public_html/components/com_fabrik/models/form.php(1806): PlgFabrik_ElementTags->onFinalStoreRow(Array)
#5 /home/realadminjoom/public_html/components/com_fabrik/models/form.php(1838): FabrikFEModelForm->processElements()
#6 /home/realadminjoom/public_html/components/com_fabrik/models/form.php(1244): FabrikFEModelForm->processToDB()
#7 /home/realadminjoom/public_html/components/com_fabrik/controllers/form.php(241): FabrikFEModelForm->process()
#8 /home/realadminjoom/public_html/libraries/legacy/controller/legacy.php(702): FabrikControllerForm->process()
#9 /home/realadminjoom/public_html/components/com_fabrik/fabrik.php(181): JControllerLegacy->execute('process')
#10 /home/realadminjoom/public_html/libraries/cms/component/helper.php(405): require_once('/home/realadmin...')
#11 /home/realadminjoom/public_html/libraries/cms/component/helper.php(380): JComponentHelper::executeComponent('/home/realadmin...')
#12 /home/realadminjoom/public_html/libraries/cms/application/site.php(191): JComponentHelper::renderComponent('com_fabrik')
#13 /home/realadminjoom/public_html/libraries/cms/application/site.php(230): JApplicationSite->dispatch()
#14 /home/realadminjoom/public_html/libraries/cms/application/cms.php(257): JApplicationSite->doExecute()
#15 /home/realadminjoom/public_html/index.php(49): JApplicationCms->execute()
#16 {main}
This is tested on latest J!/Fabrik from GitHub.