Canalplan Bug Tracker



Anonymous Login
2019-06-26 02:47 BST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000365Canalplan [All Projects] Bugpublic2017-12-31 11:29
Reporteruser3 
Assigned ToNick Atty 
PrioritynormalSeverityminorReproducibilityrandom
StatusassignedResolutionopen 
PlatformGenericOSN/AOS VersionN/A
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0000365: Not all Geograph photos load...
DescriptionSometimes when a page loads not all the photos load.

Refreshing the page makes it work.


Additional Informationlooking at : https://canalplan.org.uk/place/051j

Developer shows:

]
0: Object { date: "2011-10-28T09:13:23+00:00", medpic: "https://s2.geograph.org.uk/geophotos/02/66/74/2667414_5633209e_213x160.jpg", link: "https://www.geograph.org.uk/photo/2667414", … }
1: Object { date: "2012-09-30T12:50:59+00:00", medpic: "https://s3.geograph.org.uk/geophotos/03/15/52/3155215_c56c1ed8_213x160.jpg", link: "https://www.geograph.org.uk/photo/3155215", … }
2: Object { date: "2015-06-29T12:15:13+00:00", medpic: "https://s0.geograph.org.uk/geophotos/04/54/51/4545160_eb3fdba3_213x160.jpg", link: "https://www.geograph.org.uk/photo/4545160", … }
3: Object { date: "2014-01-29T21:31:38+00:00", medpic: "https://s3.geograph.org.uk/geophotos/03/82/97/3829731_77372789_213x160.jpg", link: "https://www.geograph.org.uk/photo/3829731", … }
4: Object { date: "2014-06-15T11:28:09+00:00", medpic: "https://s1.geograph.org.uk/geophotos/04/02/72/4027209_6e28cd18_213x160.jpg", link: "https://www.geograph.org.uk/photo/4027209", … }
5: Object { date: "2015-12-03T10:59:31+00:00", medpic: "https://s3.geograph.org.uk/geophotos/04/75/61/4756103_a31aa81e_213x160.jpg", link: "https://www.geograph.org.uk/photo/4756103", … }
6: Object { date: "2012-04-23T10:51:08+00:00", medpic: "https://s0.geograph.org.uk/geophotos/02/91/19/2911924_5cbcdf6b_213x160.jpg", link: "https://www.geograph.org.uk/photo/2911924", … }
7: Object { date: "2010-10-28T18:42:50+00:00", medpic: "https://s1.geograph.org.uk/geophotos/02/13/33/2133381_faa75f06_213x160.jpg", link: "https://www.geograph.org.uk/photo/2133381", … }
8: Object { date: "2010-10-28T18:47:14+00:00", medpic: "https://s1.geograph.org.uk/geophotos/02/13/33/2133393_eb7ce950_213x160.jpg", link: "https://www.geograph.org.uk/photo/2133393", … }
9: Object { date: "2010-10-28T18:50:29+00:00", medpic: "https://s0.geograph.org.uk/geophotos/02/13/34/2133400_11535ccd_213x160.jpg", link: "https://www.geograph.org.uk/photo/2133400", … }
10: Object { date: "2010-10-28T18:55:03+00:00", medpic: "https://s0.geograph.org.uk/geophotos/02/13/34/2133404_509e4926_213x160.jpg", link: "https://www.geograph.org.uk/photo/2133404", … }
11: Object { date: "2011-10-27T08:48:31+00:00", medpic: "https://s1.geograph.org.uk/geophotos/02/66/63/2666361_582ef528_213x160.jpg", link: "https://www.geograph.org.uk/photo/2666361", … }
12: Object { date: "2010-06-24T19:09:48+00:00", medpic: "https://s3.geograph.org.uk/geophotos/01/93/11/1931127_2ba09f73_213x160.jpg", link: "https://www.geograph.org.uk/photo/1931127", … }
13: Object { date: "2012-02-23T09:55:07+00:00", medpic: "https://s3.geograph.org.uk/geophotos/02/81/64/2816491_8d135f09_213x160.jpg", link: "https://www.geograph.org.uk/photo/2816491", … }
14: Object { date: "2011-10-27T08:42:18+00:00", medpic: "https://s3.geograph.org.uk/geophotos/02/66/63/2666355_27bfd1c4_213x160.jpg", link: "https://www.geograph.org.uk/photo/2666355", … }
15: Object { date: "2011-10-28T09:11:49+00:00", medpic: "https://s3.geograph.org.uk/geophotos/02/66/74/2667411_9309c2bb_213x160.jpg", link: "https://www.geograph.org.uk/photo/2667411", … }
16: Object { date: "2017-06-05T14:32:57+00:00", medpic: "https://s2.geograph.org.uk/geophotos/05/41/70/5417054_65dc7efe_213x160.jpg", link: "https://www.geograph.org.uk/photo/5417054", … }
17: Object { date: "2014-06-15T11:34:55+00:00", medpic: "https://s3.geograph.org.uk/geophotos/04/02/72/4027211_f2968e99_213x160.jpg", link: "https://www.geograph.org.uk/photo/4027211", … }
18: Object { date: "2015-05-19T19:36:31+00:00", medpic: "https://s1.geograph.org.uk/geophotos/04/48/29/4482945_71ec3553_213x160.jpg", link: "https://www.geograph.org.uk/photo/4482945", … }
19: Object { date: "2014-06-15T11:17:16+00:00", medpic: "https://s2.geograph.org.uk/geophotos/04/02/71/4027194_81711abe_213x160.jpg", link: "https://www.geograph.org.uk/photo/4027194", … }
length: 20

Which is the 20 photos.

The fetches show:

GET
https://s2.geograph.org.uk/geophotos/02/66/74/2667414_5633209e_120x120.jpg
[HTTP/1.1 200 OK 210ms]
GET
https://s3.geograph.org.uk/geophotos/03/15/52/3155215_c56c1ed8_120x120.jpg
[HTTP/1.1 200 OK 199ms]
GET
https://s0.geograph.org.uk/geophotos/04/54/51/4545160_eb3fdba3_120x120.jpg
[HTTP/1.1 200 OK 208ms]
GET
https://s3.geograph.org.uk/geophotos/03/82/97/3829731_77372789_120x120.jpg
[HTTP/1.1 200 OK 194ms]
GET
https://s1.geograph.org.uk/geophotos/04/02/72/4027209_6e28cd18_120x120.jpg
[HTTP/1.1 200 OK 190ms]
GET
https://s3.geograph.org.uk/geophotos/04/75/61/4756103_a31aa81e_120x120.jpg
[HTTP/1.1 200 OK 206ms]
GET
https://s0.geograph.org.uk/geophotos/02/91/19/2911924_5cbcdf6b_120x120.jpg
[HTTP/1.1 200 OK 120ms]
GET
https://s1.geograph.org.uk/geophotos/02/13/33/2133381_faa75f06_120x120.jpg
[HTTP/1.1 200 OK 116ms]
GET
https://s1.geograph.org.uk/geophotos/02/13/33/2133393_eb7ce950_120x120.jpg
[HTTP/1.1 200 OK 114ms]
GET
https://s0.geograph.org.uk/geophotos/02/13/34/2133400_11535ccd_120x120.jpg
[HTTP/1.1 200 OK 112ms]
GET
https://s0.geograph.org.uk/geophotos/02/13/34/2133404_509e4926_120x120.jpg
[HTTP/1.1 200 OK 119ms]
GET
https://s1.geograph.org.uk/geophotos/02/66/63/2666361_582ef528_120x120.jpg
[HTTP/1.1 200 OK 119ms]
GET
https://s3.geograph.org.uk/geophotos/01/93/11/1931127_2ba09f73_120x120.jpg
[HTTP/1.1 200 OK 258ms]
GET
https://s3.geograph.org.uk/geophotos/02/81/64/2816491_8d135f09_120x120.jpg
[HTTP/1.1 200 OK 273ms]
GET
https://s3.geograph.org.uk/geophotos/02/66/63/2666355_27bfd1c4_120x120.jpg
[HTTP/1.1 200 OK 313ms]


And then more when you go to the second tab.


Then when you reload:

GET
https://s2.geograph.org.uk/geophotos/02/66/74/2667414_5633209e_120x120.jpg
[HTTP/1.1 304 Not Modified 406ms]
GET
https://s3.geograph.org.uk/geophotos/03/15/52/3155215_c56c1ed8_120x120.jpg
[HTTP/1.1 304 Not Modified 355ms]
GET
https://s0.geograph.org.uk/geophotos/04/54/51/4545160_eb3fdba3_120x120.jpg
[HTTP/1.1 304 Not Modified 543ms]
GET
https://s3.geograph.org.uk/geophotos/03/82/97/3829731_77372789_120x120.jpg
[HTTP/1.1 304 Not Modified 379ms]
GET
https://s1.geograph.org.uk/geophotos/04/02/72/4027209_6e28cd18_120x120.jpg
[HTTP/1.1 304 Not Modified 493ms]
GET
https://s3.geograph.org.uk/geophotos/04/75/61/4756103_a31aa81e_120x120.jpg
[HTTP/1.1 304 Not Modified 388ms]
GET
https://s0.geograph.org.uk/geophotos/02/91/19/2911924_5cbcdf6b_120x120.jpg
[HTTP/1.1 304 Not Modified 300ms]
GET
https://s1.geograph.org.uk/geophotos/02/13/33/2133393_eb7ce950_120x120.jpg
[HTTP/1.1 304 Not Modified 300ms]
GET
https://s0.geograph.org.uk/geophotos/02/13/34/2133400_11535ccd_120x120.jpg
[HTTP/1.1 304 Not Modified 294ms]
GET
https://s0.geograph.org.uk/geophotos/02/13/34/2133404_509e4926_120x120.jpg
[HTTP/1.1 304 Not Modified 294ms]
GET
https://s1.geograph.org.uk/geophotos/02/13/33/2133381_faa75f06_120x120.jpg
[HTTP/1.1 304 Not Modified 294ms]
GET
https://s1.geograph.org.uk/geophotos/02/66/63/2666361_582ef528_120x120.jpg
[HTTP/1.1 304 Not Modified 300ms]
GET
https://s3.geograph.org.uk/geophotos/02/81/64/2816491_8d135f09_120x120.jpg
[HTTP/1.1 304 Not Modified 425ms]
GET
https://s3.geograph.org.uk/geophotos/01/93/11/1931127_2ba09f73_120x120.jpg
[HTTP/1.1 304 Not Modified 524ms]
GET
https://s3.geograph.org.uk/geophotos/02/66/63/2666355_27bfd1c4_120x120.jpg
[HTTP/1.1 304 Not Modified 561ms]

So Firefox/Geograph work out you've actually cached them so it doesn't get anything new.

On Chrome you get little broken image blocks (see Geo3.png) but if you right click on them and open the url it shows the picture.

So its a rendering issue.




TagsNo tags attached.
Attach Tags (Separate by ",")
Attached Files
  • png file icon geo2.png (145,931 bytes) 2017-12-30 19:55 -
    png file icon geo2.png (145,931 bytes) 2017-12-30 19:55 +
  • png file icon geo1.png (291,036 bytes) 2017-12-30 19:55
  • png file icon geo3.png (25,313 bytes) 2017-12-30 19:58 -
    png file icon geo3.png (25,313 bytes) 2017-12-30 19:58 +

-Relationships
+Relationships

-Upload File
Select File
Maximum size: 5,000 KB
+Upload File

-Notes

~0001436

Nick Atty (administrator)

So far all I can find is some evidence of the same problem elsewhere:
https://stackoverflow.com/questions/42491755/304-not-modified-when-loading-images-from-javascript

I also found this quite astonishing bit of blx:
https://www.solvusoft.com/en/errors/browser-status-codes/microsoft-corporation/windows-operating-system/http-error-304-not-modified/

I can't reproduce what you get, but sometimes I get nothing in the geograph box at all. In that case there is no fetch of the JSON file from the canalplan server, let alone any fetch of photos returning 304.

I'm on Chrome Version 63.0.3239.108 (Official Build) (64-bit)

~0001437

Nick Atty (administrator)

My problem goes away if I remove the OS map plugin - which is causing all sorts of problems with the JS. Can you try and see what happens.

~0001438

Stephen Atty (administrator)

I'd not got it enabled.

Will do some intensive checking under windows 10 and see if I can get it to do things there.....

~0001439

Stephen Atty (administrator)

OK it does it under Windows 10 too so its not something funny to do with Linux.

I wonder if its something to do with me sitting on the same network as the server.... cant imagine why it would be but.......

~0001442

Stephen Atty (administrator)

Now not seeing any geograph stuff at all - not even seeing the call to canalplan to get the data set.

~0001443

Nick Atty (administrator)

Neither am I. Something must have broken in this release. Will check.

~0001444

Nick Atty (administrator)

Fixed.

~0001445

Stephen Atty (administrator)

Last edited: 2017-12-31 11:29

View 2 revisions

OK I've hopped onto my MiFi and can't get the problem to occur - which is totally bizarre.

Edited to add : Actually it happens occasionally - sometimes when you switch to the second tab (to show 16 to 20) it puts the numbers up and doesn't display the images... but then sometimes they appear. So its something odd in the script that is rendering this block.

We could always change the geograph php file to generate the entire block that needs to go in there.

+Notes

-Add Note
Note
View Status
Upload File
Maximum size: 5,000 KB
+Add Note

-Issue History
Date Modified Username Field Change
2017-12-30 19:55 user3 New Issue
2017-12-30 19:55 user3 Status new => assigned
2017-12-30 19:55 user3 Assigned To => Nick Atty
2017-12-30 19:55 user3 File Added: geo2.png
2017-12-30 19:55 user3 File Added: geo1.png
2017-12-30 19:57 user3 Additional Information Updated View Revisions
2017-12-30 19:58 user3 File Added: geo3.png
2017-12-31 09:16 Nick Atty Note Added: 0001436
2017-12-31 09:23 Nick Atty Note Added: 0001437
2017-12-31 09:44 user3 Note Added: 0001438
2017-12-31 09:57 user3 Note Added: 0001439
2017-12-31 10:36 user3 Note Added: 0001442
2017-12-31 10:39 Nick Atty Note Added: 0001443
2017-12-31 10:57 Nick Atty Note Added: 0001444
2017-12-31 11:21 user3 Note Added: 0001445
2017-12-31 11:29 user3 Note Edited: 0001445 View Revisions
+Issue History