Images No Longer Loading

If you are having a problem with the forums, try clicking on the "FAQ" link at the top of the page first. If that doesn't work, stop in here for help. Suggestions for site improvement are welcomed. For the love of Lennin, if you have a tech question about your rig, put it in "The Order of the Greasy Wrench" section below, not here.
Forum rules
This is the place to report problems with the forums, ask for help with the fourms and test posts. Techincal Support for Ural and Dnepr motorcycles is in the Hammerin' & Wrenchin' section.
User avatar
bratmanxj
Hero of the Soviet Union - 2020
Hero of the Soviet Union - 2020
Posts: 456
Joined: Wed Sep 05, 2018 8:24 am
Location: Munster, IN. 46321

Images No Longer Loading

Post by bratmanxj » Wed Jun 09, 2021 8:43 am

Running Google Chrome and sometime in the last 5 days images no longer show on ONLY the S.S. website.
*I've checked my chrome settings to auto-load images
*Chrome is up to date

*I've check the forum settings to auto load images
*I've cleared cookies and cashe
*Signed out and signed back in

Help?
Screenshot 2021-06-09 07.39.15.png
You do not have the required permissions to view the files attached to this post.
1999 Yamaha Royal Star Venture
2007 Ural Tourist - The Big Red Brick
Chinese Knock off Honda Trail 70 rescued from the in-laws shed
1984 Suzuki LT125 Quadrunner - Sold off to a Friend
Boats, Jets Skis and Golf Carts...other fun stuff!

stagewex
Hero of the Soviet Union - 2020
Hero of the Soviet Union - 2020
Posts: 8681
Joined: Sat Jul 14, 2012 10:45 pm
Location: New Rochelle, New York

Re: Images No Longer Loading

Post by stagewex » Wed Jun 09, 2021 9:22 am

Yes, I've seen the same thing. But maybe specific to those couple posts? The member who posted those since has posted (some of the funniest stuff) pictures and graphics since on SS with no problem.

Are you getting the same with any other postings on SS?
Stagewex

2019 Honda CRF450L (Elec Start)
2008 Vespa 150S (Elec & Kick Start)
2007 Ural Patrol (2WD, Elec & Kick Start)
1991 Honda XR250L (Kick Start Only)

User avatar
Lofty
Hero of the Soviet Union - 2020
Hero of the Soviet Union - 2020
Posts: 1921
Joined: Wed Feb 14, 2018 9:17 pm
Location: Pennsylvania, USA

Re: Images No Longer Loading

Post by Lofty » Wed Jun 09, 2021 5:29 pm

I've the same issue as what bratmanxj mentions. It isn't limited to one member or one thread, either. Some pictures are evident, others, aren't. There's no apparent pattern evident to explain the disconnect.
Inventory:
2018 Ural Gear Up
2015 Suzuki DR650
1991 Bianchi Osprey
1952 Columbia RX-5 ('87, NOS)

User avatar
Mr Wazzock
Hero of the Soviet Union - 2020
Hero of the Soviet Union - 2020
Posts: 6679
Joined: Wed Feb 01, 2017 8:22 pm
Location: Boston, UK
Contact:

Re: Images No Longer Loading

Post by Mr Wazzock » Wed Jun 09, 2021 6:32 pm

Ditto, with latest Firefox on Windows 10 :(

Glad it's not just me.
Mike H
2016 Ural cT, in glorious terracotta
(aka Oranzhevaya Opasnost, "The Orange Peril")

User avatar
bratmanxj
Hero of the Soviet Union - 2020
Hero of the Soviet Union - 2020
Posts: 456
Joined: Wed Sep 05, 2018 8:24 am
Location: Munster, IN. 46321

Re: Images No Longer Loading

Post by bratmanxj » Wed Jun 09, 2021 11:31 pm

It was across 3-4 different threads all by different people, that's just the screen shot I put up. Some photos still load, but not all.
1999 Yamaha Royal Star Venture
2007 Ural Tourist - The Big Red Brick
Chinese Knock off Honda Trail 70 rescued from the in-laws shed
1984 Suzuki LT125 Quadrunner - Sold off to a Friend
Boats, Jets Skis and Golf Carts...other fun stuff!

louisg
Comrade
Comrade
Posts: 67
Joined: Mon Jan 04, 2021 4:28 am
Location: WA State

Re: Images No Longer Loading

Post by louisg » Fri Jun 11, 2021 4:07 am

Came across this myself so I looked at the page HTML. It seems like the argument for the image load is incorrect or file.php changed.

This is from a post where we the alt text shows (i.e., ATTACHMENTS and the name of the file) because it can't display the image.

<img src="./download/file.php?id=131511&t=1" class="postimage" alt="20210609_185850-min.jpg" title="20210609_185850-min.jpg (972.79 KiB) Viewed 63 times">

This is the problem: src="./download/file.php?id=131511&t=1 That URL doesn't resolve. I went into the developer console in chrome and got rid of the &t=1 and the image displays.

So either file.php doesn't understand what t=1 means (I'm guessing it means to show a thumbnail?) or the forum software should be generating something other than t=1.
2011 Ural Gear Up - "Donna"
Snoqualmie Valley area, WA

Mods: Hella H4 ECE Headlamp, DZG H4 LED bulb, K&N Air Filter

@5K,7.5K:
Engine and Gear Box: Lucas Oil Hot Rod & Classic 20W-50
@5K
Oil Filter: Hiflo Filtro HF895

louisg
Comrade
Comrade
Posts: 67
Joined: Mon Jan 04, 2021 4:28 am
Location: WA State

Re: Images No Longer Loading

Post by louisg » Fri Jun 11, 2021 4:18 am

Oh... Or the existing thumbnails got deleted?

Posting a test image of a pannier to see if a thumbnail gets generated.
rtwpannier2.jpg
You do not have the required permissions to view the files attached to this post.
2011 Ural Gear Up - "Donna"
Snoqualmie Valley area, WA

Mods: Hella H4 ECE Headlamp, DZG H4 LED bulb, K&N Air Filter

@5K,7.5K:
Engine and Gear Box: Lucas Oil Hot Rod & Classic 20W-50
@5K
Oil Filter: Hiflo Filtro HF895

louisg
Comrade
Comrade
Posts: 67
Joined: Mon Jan 04, 2021 4:28 am
Location: WA State

Re: Images No Longer Loading

Post by louisg » Fri Jun 11, 2021 4:20 am

If everyone can see the pic of my pannier inline above, I'm guessing old thumbnails got deleted or there was a change to thumbnail generation settings.

Hope my comments help the board admins.
2011 Ural Gear Up - "Donna"
Snoqualmie Valley area, WA

Mods: Hella H4 ECE Headlamp, DZG H4 LED bulb, K&N Air Filter

@5K,7.5K:
Engine and Gear Box: Lucas Oil Hot Rod & Classic 20W-50
@5K
Oil Filter: Hiflo Filtro HF895

User avatar
bratmanxj
Hero of the Soviet Union - 2020
Hero of the Soviet Union - 2020
Posts: 456
Joined: Wed Sep 05, 2018 8:24 am
Location: Munster, IN. 46321

Re: Images No Longer Loading

Post by bratmanxj » Fri Jun 11, 2021 10:52 am

louisg wrote:
Fri Jun 11, 2021 4:18 am
Oh... Or the existing thumbnails got deleted?

Posting a test image of a pannier to see if a thumbnail gets generated.

rtwpannier2.jpg
Image shows up for me....
1999 Yamaha Royal Star Venture
2007 Ural Tourist - The Big Red Brick
Chinese Knock off Honda Trail 70 rescued from the in-laws shed
1984 Suzuki LT125 Quadrunner - Sold off to a Friend
Boats, Jets Skis and Golf Carts...other fun stuff!

User avatar
Lofty
Hero of the Soviet Union - 2020
Hero of the Soviet Union - 2020
Posts: 1921
Joined: Wed Feb 14, 2018 9:17 pm
Location: Pennsylvania, USA

Re: Images No Longer Loading

Post by Lofty » Fri Jun 11, 2021 1:05 pm

I can see your photo, louisg.
Inventory:
2018 Ural Gear Up
2015 Suzuki DR650
1991 Bianchi Osprey
1952 Columbia RX-5 ('87, NOS)

User avatar
Mr Wazzock
Hero of the Soviet Union - 2020
Hero of the Soviet Union - 2020
Posts: 6679
Joined: Wed Feb 01, 2017 8:22 pm
Location: Boston, UK
Contact:

Re: Images No Longer Loading

Post by Mr Wazzock » Fri Jun 11, 2021 3:26 pm

louisg wrote:
Fri Jun 11, 2021 4:07 am
This is the problem: src="./download/file.php?id=131511&t=1 That URL doesn't resolve. I went into the developer console in chrome and got rid of the &t=1 and the image displays.

So either file.php doesn't understand what t=1 means (I'm guessing it means to show a thumbnail?) or the forum software should be generating something other than t=1.
file.php is essentially a program that runs on the server
?id=xxx is a parameter that's passed to it, as: file.php?id=xxx

However &t=1 is a second parameter, that file.php isn't separating from the first, I'm guessing. So it's treating the whole line as the image file name, so it fails.

Usually php gets the parameter: '?name=value' using $_GET (there's probably other methods that I can't remember :D ).

My own web site has a module that does this: (the module is called 'index.php')

Code: Select all

   protected function handleRequest () {

      if (isset( $_GET["p"] )) {
         $this->page = $_GET["p"]; /* gets '?p=pagename' or keep default */
      } else {	// check if last seen was saved in cookie
         $this->page = $_COOKIE["@lastpage"] ? $_COOKIE["@lastpage"] : $this->page;
      }
	  
/* First test if '&' still present in search string: */
      $pos = strpos($this->page, "&");

/* If yes, truncate the string: */
      if ($pos !== false) {
         $this->page = substr($this->page, 0, $pos);
      }
where "p" is a page file name, but note the part that tests whether a '&something' is present and strips it off if so. Else the file name load would fail.

I can't find where and how it extracts the '&' bit of information, but which I think is redundant anyway, but the trap is still present just in case.

-
Mike H
2016 Ural cT, in glorious terracotta
(aka Oranzhevaya Opasnost, "The Orange Peril")

louisg
Comrade
Comrade
Posts: 67
Joined: Mon Jan 04, 2021 4:28 am
Location: WA State

Re: Images No Longer Loading

Post by louisg » Fri Jun 11, 2021 5:00 pm

Luckily, phpBB is open source :-)

https://github.com/phpbb/phpbb/blob/mas ... d/file.php

Code: Select all

$attach_id = $request->variable('id', 0);
$mode = $request->variable('mode', '');
$thumbnail = $request->variable('t', false);

$response = new RedirectResponse(
	$controller_helper->route('phpbb_storage_attachment', array(
		'file'	=> $attach_id,
		't'		=> $thumbnail,
	), false),
	301
);
So it should parse the t argument.

Probably what happens is when an image is uploaded imagemagick runs and generates a thumbnail for it. When the post is displayed, it refers to the thumbnail file that was generated and displays that; if the image isn't available we get the "alt" which we see as the attachment and filename message.

That leads me to believe the generated thumbnails are missing (or the src is pointing to the wrong place) because viewing those images and getting rid of the &t=1 (equivalent to "show the full image") make them show up.

My test post seems to have generated a thumbnail properly, so I have to guess that something happened to the thumbnails for earlier images.
2011 Ural Gear Up - "Donna"
Snoqualmie Valley area, WA

Mods: Hella H4 ECE Headlamp, DZG H4 LED bulb, K&N Air Filter

@5K,7.5K:
Engine and Gear Box: Lucas Oil Hot Rod & Classic 20W-50
@5K
Oil Filter: Hiflo Filtro HF895

louisg
Comrade
Comrade
Posts: 67
Joined: Mon Jan 04, 2021 4:28 am
Location: WA State

Re: Images No Longer Loading

Post by louisg » Fri Jun 11, 2021 5:05 pm

phpthumbnail.png
Yeah, for my pannier post we can see that it's using a thumbnail (&t=1) for the image src and it's displaying. So maybe some cleanup was run that inadvertently deleted the old thumbnail images?

Debugging code is not 1/2 as much fun as solving Ural fuel flow issues. :x
You do not have the required permissions to view the files attached to this post.
2011 Ural Gear Up - "Donna"
Snoqualmie Valley area, WA

Mods: Hella H4 ECE Headlamp, DZG H4 LED bulb, K&N Air Filter

@5K,7.5K:
Engine and Gear Box: Lucas Oil Hot Rod & Classic 20W-50
@5K
Oil Filter: Hiflo Filtro HF895

User avatar
S 854
Commissar
Commissar
Posts: 5436
Joined: Mon Dec 03, 2007 8:44 am
Location: Big Sky Country

Re: Images No Longer Loading

Post by S 854 » Sat Jun 12, 2021 12:29 am

Mr Wazzock wrote:
Fri Jun 11, 2021 3:26 pm
louisg wrote:
Fri Jun 11, 2021 4:07 am
This is the problem: src="./download/file.php?id=131511&t=1 That URL doesn't resolve. I went into the developer console in chrome and got rid of the &t=1 and the image displays.

So either file.php doesn't understand what t=1 means (I'm guessing it means to show a thumbnail?) or the forum software should be generating something other than t=1.
file.php is essentially a program that runs on the server
?id=xxx is a parameter that's passed to it, as: file.php?id=xxx

However &t=1 is a second parameter, that file.php isn't separating from the first, I'm guessing. So it's treating the whole line as the image file name, so it fails.

Usually php gets the parameter: '?name=value' using $_GET (there's probably other methods that I can't remember :D ).

My own web site has a module that does this: (the module is called 'index.php')

Code: Select all

   protected function handleRequest () {

      if (isset( $_GET["p"] )) {
         $this->page = $_GET["p"]; /* gets '?p=pagename' or keep default */
      } else {	// check if last seen was saved in cookie
         $this->page = $_COOKIE["@lastpage"] ? $_COOKIE["@lastpage"] : $this->page;
      }
	  
/* First test if '&' still present in search string: */
      $pos = strpos($this->page, "&");

/* If yes, truncate the string: */
      if ($pos !== false) {
         $this->page = substr($this->page, 0, $pos);
      }
where "p" is a page file name, but note the part that tests whether a '&something' is present and strips it off if so. Else the file name load would fail.

I can't find where and how it extracts the '&' bit of information, but which I think is redundant anyway, but the trap is still present just in case.

-
...and I thought the Marzel Vane thread was confusing... :shock:
'07 Arctic: The Russian Raucous Ship

Things turn out best for the people who make the best of the way things turn out...

stagewex
Hero of the Soviet Union - 2020
Hero of the Soviet Union - 2020
Posts: 8681
Joined: Sat Jul 14, 2012 10:45 pm
Location: New Rochelle, New York

Re: Images No Longer Loading

Post by stagewex » Sat Jun 12, 2021 11:20 am

That "code select all" is why I ride a carbie. :)
Stagewex

2019 Honda CRF450L (Elec Start)
2008 Vespa 150S (Elec & Kick Start)
2007 Ural Patrol (2WD, Elec & Kick Start)
1991 Honda XR250L (Kick Start Only)

Post Reply