I've tried to add photos to my page view and am getting missing images. They seem to link to a bioguide URL that no longer exists. Is this out of the module's control or something that needs to be updated?

FWIW I'm not positive I have the view set up correctly, so this could also be my error.

CommentFileSizeAuthor
#2 cd_sunlight_capture.png44.01 KBm.e.

Comments

dalin’s picture

Status: Active » Postponed (maintainer needs more info)

For which members of congress. Yes the photos do come from bioguide. Check the bioguide page for that member of congress, if there's no photo there then there's not much we can do.

m.e.’s picture

StatusFileSize
new44.01 KB

There are no pics displaying for any of the Congress members. Oddly, the ones that do have a pic on Bioguide are just quietly not displaying it on my site, while the ones that have no Bioguide pic are showing the browser's missing image icon. (See screen capture for example - Chu has a pic on Bioguide, whereas Bass doesn't.) Again, this could be my error in Views - just not sure. Thanks!

dalin’s picture

I think it might be an issue with your CSS. Does an image show up in the HTML? If you go to that image directly is it there? If you created a new view, then check the 'congress' view - does it exhibit the same problem? If you have overridden the congress view then revert it and see if the problem still exists.

dalin’s picture

Oh and if in doubt, then clear the cache and the images will be rebuilt.

m.e.’s picture

Clearing the cache hasn't helped and there's nothing in my .css that would affect these results. It very much looks to me as if either the module or Sunlight has the image vs no image situation switched in the code.

If you refer back to the screencapture you'll see that the CHU entry lacks an image. However this image does exist on Bioguide at http://bioguide.congress.gov/bioguide/photo/C/C001080.jpg.

Where as the BASS entry appears to reference an image whose link is broken ... but there is no image for BASS on Bioguide: http://bioguide.congress.gov/scripts/biodisplay.pl?index=B001270.

The source code snippet below lacks an "img" reference for the legislator who has one, but has one for the legislator who does not. (Backwards.)

Oh - FWIW I just upgraded to beta6, but no change. Thanks for any help-
m.e.

        <div class="item-list">
	<h3><h3>U.S. House - CA32</h3></h3>
	<ul><li class="views-row views-row-1 views-row-odd views-row-first views-row-last">  
	<div class="views-field views-field-representative-data">
	<span class="field-content"><h4 class="representative-fullname">
        
	<br />Rep. Judy M.  Chu  (D)</h4>
	.
	.
	.
      
	<div class="item-list">
	<h3><h3>U.S. House - CA33</h3></h3>
	<ul><li class="views-row views-row-1 views-row-odd views-row-first views-row-last">  
	<div class="views-field views-field-representative-data">
	<span class="field-content"><h4 class="representative-fullname">
	<img typeof="foaf:Image" src="http://bioguide.congress.gov/bioguide/photo/B/B001270.jpg" width="300" height="185" alt="Photo of Rep. Karen Bass" title="Rep. Karen Bass" />
	<br />Rep. Karen   Bass  (D)</h4>

dalin’s picture

You missed one part of my suggestion:

If [this is a new view that] you created, then check the 'congress' view - does it exhibit the same problem? If you have overridden the congress view then revert it and see if the problem still exists.

m.e.’s picture

Yes, I'm trying to avoid writing over all my overrides for the block view (which is fine - it's the page view I'm struggling with). I'm a Views noob and learning, so it's possible I've done something, but my only change that involved pics was to delete that display in the rewrite of the block view (not enough room on my site). Is there a straightforward way for me to preserve my changes somehow by saving the existing views under different names before I revert? Thanks for the help.

dalin’s picture

You can clone the view.

m.e.’s picture

Indeed - it was my views. I'm still not sure what I did to break it, but photos are now showing. Thank you!

jfrederick’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)