Custom template, all dates render as "01.01.2018" after FC-Update to 3.2.1.14

More
6 years 6 months ago - 6 years 5 months ago #73470 by kath
Hi there,

[problem]
this is urgent - after updating FC to 3.2.1.14 (and updating joomla to 3.8.8) yesterday, my live-site's category-page shows way more "Events" than it should.
Also. all "Events" seems to have "01. Jan." as their date.

[details]
  1. I checked in Backend: Dates are still ok.
  2. I'm happy to direct-message you a link to the website
[questions]
  1. Did something change in Items' Fields' "value" format? Or it's storage inside $item? (Though that does not explain the amount of items on category page)
  2. Did I maybe miss some info about some "press fix-database-button" or similar?
[setup]
Joomla 3.8.8
FC 3.2.1.14
Sql 5.7.22
Php 7.1.17

Thank you a lot! for your advice!
Last edit: 6 years 5 months ago by ggppdk.

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

More
6 years 6 months ago - 6 years 6 months ago #73471 by ggppdk
Hello

since i cannot replicate this locally

this issue may appear with some specific configuration in the viewing TAB of the date field
please send me a PM with site access and i will review it ASAP


-- 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...
Last edit: 6 years 6 months ago by ggppdk.

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

More
6 years 6 months ago #73473 by ggppdk
Hello

i checked it
it seems to be an issue in your custom Flexicontent template file
but it is a file in a subfolder that have no access to read / edit

issue could be related to upgrading to PHP 7.2


-- 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
6 years 6 months ago #73474 by ggppdk
Hello

please see a PM i have sent you


-- 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
6 years 6 months ago #73476 by ggppdk
Hello

Your custom template is working now

Also i cleaned a PHP 7.2 notice for you, inside file
components/com_flexicontent/templates/.../snips/eventDetail.php

This is what happened
- your custom template is parsing
Code:
$items->fields['some_date_fieldname']->display

and we have changed the default display for the above
making it configurable in via 2 parameters 1 for item view and 1 for category view
- after changing the above 2 parameters to 'Y-m-d' your custom code works again

It would have been better to have used originally the raw values
Code:
$items->fields[4444]->fieldvalues
but anyway you can keep your template unchanged
it should not be a problem again since now the field's configuration has been saved

This is not a bug, it works as designed
but i understand that the change of  'default' display format via this update broke your site
and i am sorry that this happened


-- 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
6 years 6 months ago #73477 by kath
It's ok, and we shouldn't have parsed dates in the first place like we did, you're right.
Thanks a lot for your marvellous support - as always, George!
Looking forward to the pro-version!

have a nice evening, best regards,
Ben

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.418 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