J3 Issue ?
avatar uthorat
uthorat
17 Jul 2019

Steps to reproduce the issue

  1. Login to joomla admin
  2. Go to component -> contacts.
  3. Create new contact
  4. Assign the contact image and fill all the mandatory field
  5. Save the contact.
  6. Login as admin to frontend.
  7. Open the menu contact and select the user.
  8. Now remove the image from media manager in backend (joomla admin)
  9. Refresh the contacts in frontend.
  10. See the contact image

Expected result

If the admin removes image then the blank area should be displayed.

Actual result

Broken image area getting displayed

screen shot 2019-07-17 at 10 28 15

Additional comments

avatar uthorat uthorat - open - 17 Jul 2019
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Jul 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Jul 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 17 Jul 2019
avatar richard67
richard67 - comment - 17 Jul 2019
  1. Which Joomla version?
  2. Screenshot looks like 3rd party template. Can you check with the standard Protostar template?
avatar brianteeman
brianteeman - comment - 17 Jul 2019

Doesnt matter what joomla version or template

If you delete an image file but dont remove the code to load the image then it will of course display an image not found message. That's nothing to do with Joomla - its how the web works

avatar infograf768
infograf768 - comment - 17 Jul 2019

We could check if the image is present or not as we know its relative path ($this->contact->image) and if not preventing display the <div>. Evidently that would only work for core template and for 3pd templates not overriding the tmpl.

avatar uthorat
uthorat - comment - 17 Jul 2019

Hello richard,

Joomla version - Joomla! 3.9.10
Checked on protostar. PFA,


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25607.
avatar uthorat
uthorat - comment - 17 Jul 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Jul 2019
Status New Discussion
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Jul 2019

@uthorat please add the System Information in your opening Comment.

If i understand your Issue correct its about displaying a breaking-Image Info if Browser didn't find the given Image-url. Which is as @brianteeman wrote expected Behaviour.

avatar brianteeman
brianteeman - comment - 17 Jul 2019

We could check if the image is present or not as we know its relative path ($this->contact->image) and if not preventing display the

. Evidently that would only work for core template and for 3pd templates not overriding the tmpl.

It would also only work for images defined in a field and not images in content.

avatar uthorat
uthorat - comment - 17 Jul 2019

@franz-wohlkoenig Okay! Can we remove the broken image icon?

When you create contacts without adding an image then at that time blank space is displayed which is correct.
Please refer the screenshot, in which I have created one contact without adding image
screen shot 2019-07-17 at 11 26 03

So same when you delete the image can we add blank space?

System information

Os: Windows 10


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25607.
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Jul 2019

@uthorat please add the System Informations in your opening Comment.

avatar brianteeman
brianteeman - comment - 17 Jul 2019

The broken image icon is coming from your browser not from joomla

avatar uthorat
uthorat - comment - 17 Jul 2019

@brianteeman If its a my browser issue, then how it gets display on another machine browser - https://bugcheck.cloudaccess.host/index.php/conacts Pls check here.
I have created two contacts.
User 1 - Firstly I have added image, then remove from the media manager.
Umesh - Didn't add the contact image.

So my suggestion is, if I am deleting the image from media manager then I should get the same view of user 2(Umesh) as he hasn't added the image.

@franz-wohlkoenig
screen shot 2019-07-17 at 12 52 31


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25607.
avatar ReLater
ReLater - comment - 17 Jul 2019

We could check if the image is present or not

Please don't do that. Some more code and then at many places where similiar effects theoretically could occur.

If an image doesn't exist that a user has selected one should see that in the browser and not hide the failure by more and more "friendly" codes.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Jul 2019

Firefox

Screen Shot 2019-07-17 at 15 20 25

Safari

Screen Shot 2019-07-17 at 15 20 10
Browser show if a Image is missed.

I suggest to ask on Forum as this Repository is for coding; closing Issue.

avatar franz-wohlkoenig franz-wohlkoenig - close - 17 Jul 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Jul 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-07-17 13:22:29
Closed_By franz-wohlkoenig
avatar ReLater
ReLater - comment - 17 Jul 2019

We could check if the image is present or not as we know its relative path

Not always. You can also enter an image url like https://example.org/thing.jpg for the image.

Add a Comment

Login with GitHub to post a comment