Comments (Jcomments) aren't displayed in items

1 year 2 weeks ago #69845 by exstreme
Option "Enable comments integration" - > Jcooments don't help - 0 comments in all articles. If I turn off flexi, comments are displayed.
Any idea why so?

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

1 year 2 weeks ago - 1 year 2 weeks ago #69846 by ggppdk
Hello

did you already have comments before installing FLEXIContent ?

are the Jcomments system and content plugins enabled ?


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

1 year 2 weeks ago #69847 by exstreme

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

1 year 2 weeks ago #69848 by ggppdk
Hello

is it yes to both questions ?

Please go to types manager and edit the item type(s)
and check that Jcomments are enabled there


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

1 year 2 weeks ago #69850 by exstreme
Profiling SQL queries see, that
SELECT *  
  FROM `prefix_jcomments_objects` 
  WHERE `object_id` = '674' 
  AND `object_group` = 'com_flexicontent' 
  AND `lang` = 'ru-RU'
But all comments have `object_group` = 'com_content'
Also, run SQL query:
UPDATE `prefix_jcomments_objects` SET
`object_group` = 'com_flexicontent'
and
UPDATE `prefix_jcomments` SET
`object_group` = 'com_flexicontent'
And now comments are displayed

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

1 year 2 weeks ago #69851 by ggppdk
There might be a bug, I will check, please wait for my reply


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

1 year 2 weeks ago - 1 year 2 weeks ago #69853 by ggppdk
Hello

exactly
- the query to change object_group is supposed to run automatically,
on installation to change it to com_flexicontent

and on uninstallation of FLEXIcontent it will do the reverse and change the object_group to 'com_content'

I checked and the code for uninstallation is there:
$queries['jcomments'] = 'UPDATE #__jcomments AS j SET j.object_group="com_content" WHERE j.object_group="com_flexicontent" ';
$queries['jcomments_objects'] = 'UPDATE #__jcomments_objects AS j SET j.object_group="com_content" WHERE j.object_group="com_flexicontent" ';

but not for installation, this is missing:
$queries['jcomments'] = 'UPDATE #__jcomments AS j SET j.object_group="com_flexicontent" WHERE j.object_group="com_content" ';
$queries['jcomments_objects'] = 'UPDATE #__jcomments_objects AS j SET j.object_group="com_flexicontent" WHERE j.object_group="com_content" ';
- thus existing comments are not shown

probably the best would be to update everything to com_content, and when plugin triggering happens to set context to 'com_content'

the above would best since for some content types (configurable per type, we allow viewing via Joomla article view)


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.