Issue in rendering main article image in yootheme widgetkit when using Joomla content and slider widget

More
2 years 7 months ago #82001 by SteP
I have found a critical issue when rendering main article image inside the Yootheme Widgetkit Slider module, when using this in Joomla 4 and in combination with latest FC version.
It seems NOT to be related to widgetkit itself, but to the way FC save the article itself.

To replicate this I have made a simple test:
  1. disabled the whole FlexiContent component and plugins
  2. made a new article using the standard Joomla interface, adding both description and main article image, and saving it as assigned to a test category
  3. made a widget item using the SLIDER option and using JOOMLA CONTENT option as source
  4. assigned the widget item to a module and placed it in a theme position to display it in frontend.
After doing that the widget worked as expected: all content has been correctly displayed
Then:
  1. enabled all FC components and plugin
  2. simple edited the same article, and saved it WITHOUT making any other modification
After doing that the widget didn't show any content in frontend
So I have:
  1. disable FC again
  2. reopened and saved the same article with no other modifications
After that the widget rendered again the main image and the content, as expected

It should mean that the widget works normally when using standard Joomla article editor, and does not work at all when saving the same article using FC editing interface.
I presume the problem should not be the widgetkit component, but something added to article by FC.
Is there a way to fix that?
Thank you in advance.

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics

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

More
2 years 7 months ago - 2 years 7 months ago #82002 by micker
hello
what is your flexicontent version
not sure that a bug maybe a security check (filtering of descirption value)
can you check value validation in description field ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]
Last edit: 2 years 7 months ago by ggppdk.

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

More
2 years 7 months ago #82003 by ggppdk
Hello

well by your description i can not say if this is a PHP coding issue or a Javascript error
is this caused by a javascript error ?


-- 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...

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

More
2 years 7 months ago - 2 years 7 months ago #82015 by SteP
It's seems to be related to PHP coding (the html part needed to show images and content is not output at all)
The fact that image are correctly displayed after deactivating FC and opening & saving the affected article by using the Joomla native editor let me presume that FC makes something wrong when saving the article, making unreadble the data needed to display the widget content. If you then reactivate FC and open/save the same article, widget doesn't work again. But again deactivating FC and reopening/resaving the article makes the widget working again. Joomla always saves correctly, FC always saves wrong
Using FC latest version (4.0.2) and Joomla 4 latest version too

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics
Last edit: 2 years 7 months ago by SteP.

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

More
2 years 7 months ago #82032 by SteP
Do you need a test site to check this???? I could build it within this week.

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics

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

More
2 years 7 months ago - 2 years 7 months ago #82119 by SteP
OK, found the issue: the problem arise when saving an article content by usinf Flexicontent, due to the fact FC doesn't save in NULL mode some empty fields. I have found this:
When you save an article using standrad Joomla 4 editor, there are some specific ##_content table fields saved by Joomla core component as NULL when empty (checked_out - checked_out_time - publish_up - publish_down). When you enable FC, those field ar saved filling the field with zeroed values, and this makes the other plugin non interpreting that value as correct)

This is a sample ##_content row when saving in Joomla mode and in FC mode, where you can see FC adds '0000-00-00 00:00:00' instead of adding NULL:

AS SAVED BY FC (not working):
Code:
(1197, 257, 'test', 'test', '<p>prova</p>', '', 1, 67, '2022-03-13 13:13:30', 150, '', '2022-03-27 11:06:31', 150, 0, '0000-00-00 00:00:00', '2022-03-13 13:13:30', '0000-00-00 00:00:00', '{\"image_intro\":\"images\\/giulio-andreotti-logo.jpg\",\"float_intro\":\"\",\"image_intro_alt\":\"\",\"image_intro_caption\":\"\",\"image_fulltext\":\"images\\/giulio-andreotti-logo-2.jpg\",\"float_fulltext\":\"\",\"image_fulltext_alt\":\"\",\"image_fulltext_caption\":\"\"}', '{\"urla\":\"\",\"urlatext\":\"\",\"targeta\":\"\",\"urlb\":\"\",\"urlbtext\":\"\",\"targetb\":\"\",\"urlc\":\"\",\"urlctext\":\"\",\"targetc\":\"\"}', '{\"show_title\":\"\",\"show_intro\":\"\",\"article_layout\":\"\",\"link_titles\":\"\",\"show_tags\":\"\",\"info_block_position\":\"\",\"info_block_show_title\":\"\",\"show_category\":\"\",\"link_category\":\"\",\"show_parent_category\":\"\",\"link_parent_category\":\"\",\"show_author\":\"\",\"link_author\":\"\",\"show_create_date\":\"\",\"show_modify_date\":\"\",\"show_publish_date\":\"\",\"show_item_navigation\":\"\",\"show_hits\":\"\",\"show_noauth\":\"\",\"urls_position\":\"\",\"alternative_readmore\":\"\",\"article_page_title\":\"\",\"show_publishing_options\":\"\",\"show_article_options\":\"\",\"show_urls_images_backend\":\"\",\"show_urls_images_frontend\":\"\",\"show_print_icon\":\"\",\"show_email_icon\":\"\",\"show_editbutton\":\"\",\"show_deletebutton\":\"\",\"show_state_icon\":\"\",\"readmore\":\"\",\"comments\":\"\",\"automatic_pathways\":\"\",\"view_extra_css_fe\":\"\",\"view_extra_js_fe\":\"\",\"microdata_itemtype\":\"\",\"override_title\":\"\",\"custom_ititle\":\"\",\"addcat_title\":\"\",\"add_canonical\":\"\",\"ilayout\":\"\",\"__field43\":\"\",\"__field44\":\"\",\"__field45\":\"\",\"__field46\":\"\",\"__field47\":\"\",\"__field48\":\"\",\"__field49\":\"\",\"__field50\":\"\",\"ilayout_mobile\":\"\"}', 14, 1196, '', '', 1, 0, '{\"robots\":\"\",\"author\":\"\",\"rights\":\"\",\"xreference\":\"\"}', 0, '*', ''),

AS SAVED BY JOOMLA (working)
Code:
(1197, 257, 'test', 'test', '<p>prova</p>', '', 1, 67, '2022-03-13 13:13:30', 150, '', '2022-04-16 09:02:58', 150, NULL, NULL, '2022-03-13 13:13:30', NULL, '{\"image_intro\":\"images\\/giulio-andreotti-logo.jpg\",\"image_intro_alt\":\"\",\"float_intro\":\"\",\"image_intro_caption\":\"\",\"image_fulltext\":\"images\\/giulio-andreotti-logo-2.jpg\",\"image_fulltext_alt\":\"\",\"float_fulltext\":\"\",\"image_fulltext_caption\":\"\"}', '{\"urla\":\"\",\"urlatext\":\"\",\"targeta\":\"\",\"urlb\":\"\",\"urlbtext\":\"\",\"targetb\":\"\",\"urlc\":\"\",\"urlctext\":\"\",\"targetc\":\"\"}', '{\"article_layout\":\"\",\"show_title\":\"\",\"link_titles\":\"\",\"show_tags\":\"\",\"show_intro\":\"\",\"info_block_position\":\"\",\"info_block_show_title\":\"\",\"show_category\":\"\",\"link_category\":\"\",\"show_parent_category\":\"\",\"link_parent_category\":\"\",\"show_author\":\"\",\"link_author\":\"\",\"show_create_date\":\"\",\"show_modify_date\":\"\",\"show_publish_date\":\"\",\"show_item_navigation\":\"\",\"show_hits\":\"\",\"show_noauth\":\"\",\"urls_position\":\"\",\"alternative_readmore\":\"\",\"article_page_title\":\"\",\"show_publishing_options\":\"\",\"show_article_options\":\"\",\"show_urls_images_backend\":\"\",\"show_urls_images_frontend\":\"\"}', 15, 1196, '', '', 1, 0, '{\"robots\":\"\",\"author\":\"\",\"rights\":\"\"}', 0, '*', ''),

I have simply edited in phpmyadmin the 4 wrong fields, setting their values to NULL, and it worked for me.
Could you please verify this and provide a fix asap?
Thank you in advance.
Regards[/code]

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics
Last edit: 2 years 7 months ago by SteP.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.498 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline