image fields stopped working

More
1 year 10 months ago - 1 year 10 months ago #85147 by kath
Hi there,

I can not upload new images to my content items, or use existing images in their image fields.
Both used to work fine "before".

This happens on both my remote webserver, and my local Windows MAMP 5 Pro Server.
It happens on multiple image fields, and in multiple types.
Image fields are configured as re-usable, db-mode.

When I load and re-save existing content items, they lose their image(s).

I do have the php warning about ~"php temp folder not set" (in both environments).
But I can see that new image files are being uploaded, because I see them in FC's /uploads/ folder, on both servers. (Also, I can upload extensions etc.)

My apache error log shows no error.
Also, I do not see any log files (other than cron_estorage.php) in my Joomla folder (root and administrator).

What can I do to solve that?
Thanks in advance!
Ben

[Setup]
J 4.4.3
FC 4.2.1 (15.07.2023)
Php 8.1
 
Last edit: 1 year 10 months ago by kath. Reason: forgot a "not" at word 3

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

More
1 year 10 months ago #85151 by micker
Replied by micker on topic image fields stopped working
hello maybe the problem is the base component url
go to global config of flexi
go to file tabs
add a / before url for both folder access
like this
/components/com_flexicontent/uploads
/components/com_flexicontent/medias

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
1 year 10 months ago #85154 by kath
Replied by kath on topic image fields stopped working
thanks for your reply, but:

when i change the urls like you wrote, i get the error
"Unable to upload file" in a system popup after trying to upload.

Note that my file still gets uploaded to
C:\MAMP\htdocs\[...]\components\com_flexicontent\uploads
as it did before.
New is just the popup with error.

Without the leading slah in the urls, the same happens, just without visible error.

Flexicontent item form (in both cases) shows an empty square for the image upload area, after failing.

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

More
1 year 10 months ago #85157 by micker
Replied by micker on topic image fields stopped working
difficult to debug on local server for now ...

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
1 year 10 months ago #85161 by kath
Replied by kath on topic image fields stopped working
oh, of course, but "luckily" happens on staging server, too:
Would PM with credentials be ok for you? (frontend and super-user if you want?)

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

More
1 year 10 months ago #85162 by micker
Replied by micker on topic image fields stopped working
What IS your j version
Flexi version and
PHP 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
1 year 10 months 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
1 year 10 months 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
1 year 10 months 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
1 year 10 months 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.

Moderators: vistamediajoomlacornerggppdk
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
Save