#937 Posted in ‘Econa’

Latest post by Lefteris Kavadas on Friday, 23 September 2022 12:04 EEST

Jip JJ Jonker
Hi! When we use two econa custom fields in our articles something goes wrong with the second image when the first one is changed. It looks like the second image is gone but I ssems like econa uses the extension from the first image also on the second image on save. In our case we have a jpg and a png image. When the jpg is changed econa also saves the second image (in the database) as jpg. After that the image is not shown anymore because the wrogn file extension is used.

I am not sure if only the file-extension is overwritten or also the file name.

To reproduces:

- Add two econa custom field fields to com_content. Set one to save as jpg and the other not.
- Create a new article and upload a jpg image in the first field (convert to jpg on) and a png in the second field (convert to png off)
- Save the article. Both images and image data are saved OK.
- Reopen the artcle and replace the first image (jpg) and save. At this point the second image (png) will not show anymore because the png extension has been changed to jpg.

Kind rergards,
Jip

Lefteris Kavadas
Hi Jip,

I am impressed, this was a hard to find issue.
I have applied a fix already. Thank you for the feedback and the detailed instructions you provided.
You really helped a lot!

Regards

Jip JJ Jonker
Thanks!

Lefteris Kavadas
You are welcome.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review