image fields stopped working

More
2 weeks 1 day ago #85163 by kath
Replied by kath on topic image fields stopped working
>> [Setup]
>> J 4.4.3
>> FC 4.2.1 (15.07.2023)
>> Php 8.1

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

More
2 weeks 11 hours ago #85164 by micker
Replied by micker on topic image fields stopped working
can you test beta version ?

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 weeks 8 hours ago #85169 by iamrobert
Hi Micker,

I have the same issue. I just downloaded the GitHub version and same issue.

PHP8.1 

Video of Issue: 


Didn't affect results:

[img


Code:
Uncaught TypeError: Cannot read properties of undefined (reading 'replace')     at fcfield_image.assignImage (form.js?a55697b159ef541eb26b6f01d3686084:225:27)     at fcfield_image.fileUploaded (form.js?a55697b159ef541eb26b6f01d3686084:316:17)     at l.Uploader.fcfield_FileUploaded_32 (index.php?option=com_flexicontent&task=items.edit&view=item&id=179:1127:19)     at l.Uploader.FileUploaded (plupload-extend.js?a55697b159ef541eb26b6f01d3686084:289:42)     at l.Uploader.dispatchEvent (plupload.full.min.js:29:16013)     at l.Uploader.trigger (plupload.full.min.js:13:19080)     at T.onload (plupload.full.min.js:29:10758)     at h.<anonymous> (plupload.full.min.js:13:19249)     at Array.<anonymous> (plupload.full.min.js:13:18634)     at n (plupload.full.min.js:13:2325) ​​​​​​​
 

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

More
2 weeks 5 hours ago #85171 by iamrobert
If we add in:
Code:
window.console.log(response.data);
in fcfield_image.fileUploaded  plugins\flexicontent_fields\image\js\form.js

We get:
targetid: undefined

Seems to be related to this:
Code:
Cannot read properties of undefined (reading 'replace'):     fcfield_image.assignImage = function(tagid, file, preview_url, keep_modal, preview_caption, config_name)     {         // Get TAG ID of the main form element of this field         var ff_suffix = '_existingname';         var elementid_n = tagid.replace(ff_suffix, '');

The _existingname doesn't seem to exist. If I add it here:
Code:
    if ($img_link)     {         $imgpreview = '<img class="fc_preview_thumb" id="'.$elementid_n.'_preview_image" src="'.$img_link.'" alt="Preview image" />';     }     elseif ($img_link !== false)     {         $imgpreview = '<img class="fc_preview_thumb" id="'.$elementid_n.'_preview_image" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" alt="Preview image" />';     }

it works but fails on apply and reload.
 

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

More
2 weeks 3 hours ago - 2 weeks 1 hour ago #85173 by iamrobert
I have gone back to this image field_InlineBoxes.php, and it seems to allow uploads with the latest GitHub version:

github.com/FLEXIcontent/flexicontent-cck...ield_InlineBoxes.php

I overwrote the above code to plugins/flexicontent_fields/image/tmpl/field_InlineBoxes.php
Last edit: 2 weeks 1 hour ago by iamrobert.
The following user(s) said Thank You: krae

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

More
1 week 6 days ago #85175 by micker
Replied by micker on topic image fields stopped working
can you propose a pr ?

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