PDF time-stamping issues following upgrade to FC 4.x

More
2 years 3 weeks ago #82035 by agata
Hello,
I noticed some issues with PDF time-stamping following upgrade to FLEXIcontent 4.0.2. All documents currently in place correctly show the time-stamp, however:
  1. The file field no longer shows the option to switch time-stamping on/off (it is correctly configured as far as I can see:
    Edit properties is set to Yes
    Add time-stamp is set to Yes
    Under Defaults - Add time-stamp is set to Yes
  2. Newly uploaded documents don't show the time-stamp despite the fact that theoretically they should show it by default. When var_dumping the field, it also looks correct:
    Code:
    ["stamp_pdfs"]=> string(1) "1" ["pdf_header_text"]=> string(0) "" ["pdf_footer_text"]=> string(80) "This document is valid at the time of distribution. Distributed {{current_date}}"
FLEXIcontent version 4.0.2
Joomla version 3.10.6
The library exists in /components/com_flexicontent/librairies/TCPDF

Thank you in advance for looking into this, apologies that I can't show the site, one instance is my local one and the other requires a VPN and a white-listed IP to view.
Agata

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

More
2 years 3 weeks ago - 2 years 3 weeks ago #82036 by agata
I noticed a difference between the new document and one of the old ones. New file features
Code:
["stamp"]=> string(1) "0"
and the old one with time-stamp showing has
Code:
["stamp"]=> string(1) "1"
. In case you can see any further issues, here's the full var_dump of the field object of a new document:
Code:
object(stdClass)#7420 (33) { ["id"]=> string(2) "34" ["asset_id"]=> string(3) "259" ["field_type"]=> string(4) "file" ["name"]=> string(13) "field_doc_pdf" ["label"]=> string(3) "PDF" ["description"]=> string(0) "" ["isfilter"]=> string(1) "0" ["isadvfilter"]=> string(1) "0" ["iscore"]=> string(1) "0" ["issearch"]=> string(1) "1" ["isadvsearch"]=> string(1) "1" ["untranslatable"]=> string(1) "0" ["formhidden"]=> string(1) "0" ["valueseditable"]=> string(1) "0" ["edithelp"]=> string(1) "3" ["positions"]=> string(0) "" ["published"]=> string(1) "1" ["attribs"]=> string(2695) "{"use_ingroup":"0","allow_multiple":"0","fields_box_placing":"1","add_position":"3","max_values":"0","required":"0","show_values_expand_btn":"1","formlayout":"InlineBoxes","form_file_preview":"0","inputmode":"0","iform_title":"0","iform_desc":"0","iform_lang":"0","iform_access":"0","iform_dir":"0","iform_stamp":"1","iform_title_default":"","iform_desc_default":"","iform_lang_default":"*","iform_access_default":"1","iform_dir_default":"1","iform_stamp_default":"1","use_myfiles":"1","target_dir":"1","filelist_cols":["upload_time","hits","__SAVED__"],"resize_on_upload":"","upload_max_w":"","upload_max_h":"","upload_method":"","display_label":"0","show_acc_msg":"0","no_acc_msg":"","include_in_csv_export":"0","noaccess_display":"0","noaccess_addvars":"0","noaccess_url_unlogged":"","noaccess_msg_unlogged":"","noaccess_url_logged":"","noaccess_msg_logged":"","usebutton":"0","buttonsposition":"1","use_action_separator":"0","action_separator":"","allowdownloads":"0","downloadstext":"FLEXI_DOWNLOAD","allowview":"1","viewtext":"","viewinside":"1","stamp_pdfs":"1","pdf_header_text":"","pdf_footer_text":"This document is valid at the time of distribution. Distributed {{current_date}}","pdf_header_ffamily":"Helvetica","pdf_header_fstyle":"b","pdf_header_fsize":"10","pdf_header_align":"C","pdf_header_border_type":"0","pdf_footer_ffamily":"Helvetica","pdf_footer_fstyle":"b","pdf_footer_fsize":"10","pdf_footer_align":"C","pdf_footer_border_type":"0","stamp_date_format":"_custom_","stamp_custom_date":"d-M-Y (e)","stamp_lang_filter_format":"0","stamp_display_tz_suffix":"0","stamp_display_tz_logged":"2","stamp_display_tz_guests":"2","use_downloads_manager":"0","addtocarttext":"","allowshare":"0","sharetext":"","enable_coupons":"0","coupon_hits_limit":"3","coupon_expiration_days":"15","viewlayout":"RawLink","display_total_count":"0","total_count_label":"FLEXI_FIELD_FILE_TOTAL_FILES","display_total_hits":"0","total_hits_label":"FLEXI_FIELD_FILE_TOTAL_DOWNLOADS","useicon":"0","display_filename":"0","lowercase_filename":"0","link_filename":"0","display_lang":"0","display_size":"0","display_hits":"0","display_descr":"0","use_info_separator":"0","info_separator":"","prx_sfx_open_close_configs":"","remove_space":"1","pretext":"","posttext":"","separatorf":"5","opentag":"","closetag":"","trigger_onprepare_content":"1","trigger_plgs_incatview":"0","send_notifications":"0","notifications_step":"20","notification_tmpl":"%%FLEXI_HITS%% __FILE_HITS__ \r\n %%FLEXI_FDN_FILE_NO%% __FILE_ID__: [__FILE_TITLE__] \r\n %%FLEXI_FDN_FILE_IN_ITEM%% __ITEM_TITLE__: \r\n __ITEM_URL__","send_all_to_email":"","send_to_current_item_owner":"0","send_to_email_field":"0","display_filter_as_s":"1"}" ["checked_out"]=> string(1) "0" ["checked_out_time"]=> string(19) "0000-00-00 00:00:00" ["access"]=> string(1) "1" ["ordering"]=> string(3) "337" ["has_access"]=> string(1) "1" ["raw_values"]=> array(1) { [0]=> string(4) "3908" } ["basic_texts"]=> array(0) { } ["item_id"]=> int(5231) ["value"]=> array(1) { [0]=> string(4) "3908" } ["parameters"]=> object(Joomla\Registry\Registry)#7638 (3) { ["data":protected]=> object(stdClass)#7641 (105) { ["use_ingroup"]=> string(1) "0" ["allow_multiple"]=> string(1) "0" ["fields_box_placing"]=> string(1) "1" ["add_position"]=> string(1) "3" ["max_values"]=> string(1) "0" ["required"]=> string(1) "0" ["show_values_expand_btn"]=> string(1) "1" ["formlayout"]=> string(11) "InlineBoxes" ["form_file_preview"]=> string(1) "0" ["inputmode"]=> string(1) "0" ["iform_title"]=> string(1) "0" ["iform_desc"]=> string(1) "0" ["iform_lang"]=> string(1) "0" ["iform_access"]=> string(1) "0" ["iform_dir"]=> string(1) "0" ["iform_stamp"]=> string(1) "1" ["iform_title_default"]=> string(0) "" ["iform_desc_default"]=> string(0) "" ["iform_lang_default"]=> string(1) "*" ["iform_access_default"]=> string(1) "1" ["iform_dir_default"]=> string(1) "1" ["iform_stamp_default"]=> string(1) "1" ["use_myfiles"]=> string(1) "1" ["target_dir"]=> string(1) "1" ["filelist_cols"]=> array(3) { [0]=> string(11) "upload_time" [1]=> string(4) "hits" [2]=> string(9) "__SAVED__" } ["resize_on_upload"]=> string(0) "" ["upload_max_w"]=> string(0) "" ["upload_max_h"]=> string(0) "" ["upload_method"]=> string(0) "" ["display_label"]=> string(1) "0" ["show_acc_msg"]=> string(1) "0" ["no_acc_msg"]=> string(0) "" ["include_in_csv_export"]=> string(1) "0" ["noaccess_display"]=> string(1) "0" ["noaccess_addvars"]=> string(1) "0" ["noaccess_url_unlogged"]=> string(0) "" ["noaccess_msg_unlogged"]=> string(0) "" ["noaccess_url_logged"]=> string(0) "" ["noaccess_msg_logged"]=> string(0) "" ["usebutton"]=> string(1) "0" ["buttonsposition"]=> string(1) "1" ["use_action_separator"]=> string(1) "0" ["action_separator"]=> string(0) "" ["allowdownloads"]=> string(1) "0" ["downloadstext"]=> string(14) "FLEXI_DOWNLOAD" ["allowview"]=> string(1) "1" ["viewtext"]=> string(0) "" ["viewinside"]=> string(1) "1" ["stamp_pdfs"]=> string(1) "1" ["pdf_header_text"]=> string(0) "" ["pdf_footer_text"]=> string(80) "This document is valid at the time of distribution. Distributed {{current_date}}" ["pdf_header_ffamily"]=> string(9) "Helvetica" ["pdf_header_fstyle"]=> string(1) "b" ["pdf_header_fsize"]=> string(2) "10" ["pdf_header_align"]=> string(1) "C" ["pdf_header_border_type"]=> string(1) "0" ["pdf_footer_ffamily"]=> string(9) "Helvetica" ["pdf_footer_fstyle"]=> string(1) "b" ["pdf_footer_fsize"]=> string(2) "10" ["pdf_footer_align"]=> string(1) "C" ["pdf_footer_border_type"]=> string(1) "0" ["stamp_date_format"]=> string(8) "_custom_" ["stamp_custom_date"]=> string(9) "d-M-Y (e)" ["stamp_lang_filter_format"]=> string(1) "0" ["stamp_display_tz_suffix"]=> string(1) "0" ["stamp_display_tz_logged"]=> string(1) "2" ["stamp_display_tz_guests"]=> string(1) "2" ["use_downloads_manager"]=> string(1) "0" ["addtocarttext"]=> string(0) "" ["allowshare"]=> string(1) "0" ["sharetext"]=> string(0) "" ["enable_coupons"]=> string(1) "0" ["coupon_hits_limit"]=> string(1) "3" ["coupon_expiration_days"]=> string(2) "15" ["viewlayout"]=> string(7) "RawLink" ["display_total_count"]=> string(1) "0" ["total_count_label"]=> string(28) "FLEXI_FIELD_FILE_TOTAL_FILES" ["display_total_hits"]=> string(1) "0" ["total_hits_label"]=> string(32) "FLEXI_FIELD_FILE_TOTAL_DOWNLOADS" ["useicon"]=> string(1) "0" ["display_filename"]=> string(1) "0" ["lowercase_filename"]=> string(1) "0" ["link_filename"]=> string(1) "0" ["display_lang"]=> string(1) "0" ["display_size"]=> string(1) "0" ["display_hits"]=> string(1) "0" ["display_descr"]=> string(1) "0" ["use_info_separator"]=> string(1) "0" ["info_separator"]=> string(0) "" ["prx_sfx_open_close_configs"]=> string(0) "" ["remove_space"]=> string(1) "1" ["pretext"]=> string(0) "" ["posttext"]=> string(0) "" ["separatorf"]=> string(1) "5" ["opentag"]=> string(0) "" ["closetag"]=> string(0) "" ["trigger_onprepare_content"]=> string(1) "1" ["trigger_plgs_incatview"]=> string(1) "0" ["send_notifications"]=> string(1) "0" ["notifications_step"]=> string(2) "20" ["notification_tmpl"]=> string(146) "%%FLEXI_HITS%% __FILE_HITS__ %%FLEXI_FDN_FILE_NO%% __FILE_ID__: [__FILE_TITLE__] %%FLEXI_FDN_FILE_IN_ITEM%% __ITEM_TITLE__: __ITEM_URL__" ["send_all_to_email"]=> string(0) "" ["send_to_current_item_owner"]=> string(1) "0" ["send_to_email_field"]=> string(1) "0" ["display_filter_as_s"]=> string(1) "1" } ["initialized":protected]=> bool(true) ["separator"]=> string(1) "." } ["display"]=> string(45) " /search/download/3908/5231/34?method=view" ["url"]=> array(1) { [0]=> string(29) "/search/download/3908/5231/34" } ["abspath"]=> array(1) { [0]=> string(81) "/Users/goofy/Documents/git/colorcon-cms-local/images/uploads/empty-test-doc-1.pdf" } ["file_data"]=> array(1) { [0]=> object(stdClass)#7649 (21) { ["id"]=> string(4) "3908" ["filename"]=> string(20) "empty-test-doc-1.pdf" ["filename_original"]=> string(20) "Empty test doc-1.pdf" ["altname"]=> string(20) "Empty test doc-1.pdf" ["description"]=> string(0) "" ["url"]=> string(1) "0" ["estorage_fieldid"]=> string(1) "0" ["secure"]=> string(1) "1" ["ext"]=> string(3) "pdf" ["published"]=> string(1) "1" ["language"]=> string(1) "*" ["hits"]=> string(1) "1" ["size"]=> string(5) "28925" ["assignments"]=> string(1) "0" ["stamp"]=> string(1) "0" ["uploaded"]=> string(19) "2022-03-30 09:17:12" ["uploaded_by"]=> string(3) "927" ["checked_out"]=> string(1) "0" ["checked_out_time"]=> NULL ["access"]=> string(1) "1" ["attribs"]=> string(0) "" } } ["hits_total"]=> int(1) }
Last edit: 2 years 3 weeks ago by agata. Reason: The long code block doesn't display

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

More
2 years 3 weeks ago #82038 by agata
I have found a workaround for this, if you set the field Layout to Table instead of InlineBoxes the Time-Stamp toggle appears correctly and works.

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

More
2 years 2 weeks ago #82044 by micker
Can WE close it ?

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]

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

More
2 years 2 weeks ago #82048 by agata
Hello,
What I did is a sufficient workaround for now but it still doesn't work when the editing layout is set to InlineBoxes so it should probably be fixed as it is not the correct behaviour.
Agata

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

More
2 years 1 week ago #82064 by micker
i open issue on github

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]

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

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