Some images missing

Help and support in getting the EVE-Dev Killboard to run on your site.
underwoodr
Apprentice
Posts: 49
Joined: Sat Jan 31, 2009 03:23

Re: Some images missing

Post by underwoodr » Tue May 02, 2017 20:38

Hi there,
Alliances was the only folder, Has now been renamed.
*EDIT*
Seems the missing alliance pics are now there,
Just the ammo/scripts that are not working now ^^

User avatar
Salvoxia
Developer
Posts: 1515
Joined: Wed Feb 22, 2012 12:11

Re: Some images missing

Post by Salvoxia » Fri May 05, 2017 16:21

Hi,

sorry for my late reply.
I hope we're easing in on it ;)
I'm still convinced it's an access issue with the image cache folder, I'm not an Apache export, though.

When using one of the broken image's URLs, the error is "Image not found".
http://www.random-servers.co.uk/goe/thu ... e=24&int=1

Now this will be thrown if ANYTHING goes wrong, so there are multiple possible code paths leading to this error.
So that we know exactly what path we're dealing with, I'd like you to do the following:
Open /thumb.php and find method throwing the error:

Code: Select all

function show404()
{
    //header("HTTP:/1.1 404 Not Found");
    header("Status: 404 Not Found");
    echo "Image not found";
    die;
}
Just for testing, replace it with the following:

Code: Select all

function show404()
{
    //header("HTTP:/1.1 404 Not Found");
    header("Status: 404 Not Found");
    echo "Image not found";
    
    $e = new Exception();
    echo "<pre>";
    print_r($e->getTraceAsString());
    echo  "</pre>";
    die;
}
Then visit the above URL again and post the output. Then revert to the original.

Best Regards,
Salvoxia

underwoodr
Apprentice
Posts: 49
Joined: Sat Jan 31, 2009 03:23

Re: Some images missing

Post by underwoodr » Fri May 05, 2017 20:59

Image not found
#0 /home/randomse/public_html/goe/thumb.php(307): show404()
#1 /home/randomse/public_html/goe/thumb.php(217): fetchImage()
#2 /home/randomse/public_html/goe/thumb.php(98): goType(12557, 'InventoryType', 32, 'png')
#3 {main}

User avatar
Salvoxia
Developer
Posts: 1515
Joined: Wed Feb 22, 2012 12:11

Re: Some images missing

Post by Salvoxia » Fri May 05, 2017 21:33

Great, that proved me wrong. Seems to be more of an issue of fetching the image from CCP's image server. cURL returned with an HTTP code other than 200.
Next step, find out what's wrong with the fetching the image.
Please again open /thumb.php, find this line:

Code: Select all

$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
and add the following after it:

Code: Select all

echo "<pre>";
var_dump($http_code);
var_dump($url);
var_dump(curl_getinfo($ch));
echo "</pre>";
die();
Check the image URL again, revert the file and post output please :)

Best Regards,
Salvoxia

underwoodr
Apprentice
Posts: 49
Joined: Sat Jan 31, 2009 03:23

Re: Some images missing

Post by underwoodr » Fri May 05, 2017 21:51

Code: Select all

int(0)
string(60) "https://imageserver.eveonline.com/InventoryType/12557_32.png"
array(20) {
  ["url"]=>
  string(60) "https://imageserver.eveonline.com/InventoryType/12557_32.png"
  ["content_type"]=>
  NULL
  ["http_code"]=>
  int(0)
  ["header_size"]=>
  int(0)
  ["request_size"]=>
  int(0)
  ["filetime"]=>
  int(-1)
  ["ssl_verify_result"]=>
  int(0)
  ["redirect_count"]=>
  int(0)
  ["total_time"]=>
  float(0)
  ["namelookup_time"]=>
  float(0.000348)
  ["connect_time"]=>
  float(0.002078)
  ["pretransfer_time"]=>
  float(0)
  ["size_upload"]=>
  float(0)
  ["size_download"]=>
  float(0)
  ["speed_download"]=>
  float(0)
  ["speed_upload"]=>
  float(0)
  ["download_content_length"]=>
  float(-1)
  ["upload_content_length"]=>
  float(-1)
  ["starttransfer_time"]=>
  float(0)
  ["redirect_time"]=>
  float(0)
}

User avatar
Salvoxia
Developer
Posts: 1515
Joined: Wed Feb 22, 2012 12:11

Re: Some images missing

Post by Salvoxia » Fri May 05, 2017 22:10

Hmm,seems it doesn't even connect to CCP's image server..
What API connection method do you have set in ACP -> Configuration and are there any errors in ACP -> Troubleshooting?

underwoodr
Apprentice
Posts: 49
Joined: Sat Jan 31, 2009 03:23

Re: Some images missing

Post by underwoodr » Fri May 05, 2017 23:26

Hi,
API connection method: cURL
and no errors, green ticks across the board :)

User avatar
Salvoxia
Developer
Posts: 1515
Joined: Wed Feb 22, 2012 12:11

Re: Some images missing

Post by Salvoxia » Sun May 07, 2017 14:46

Ok, let's get one step back and check whether cURL can tell us about that error itself.
Same code to modify as in this post, but use this code as a replacement:

Code: Select all

echo "<pre>";
var_dump(curl_getinfo($ch));
var_dump(curl_error($ch));
echo "</pre>";
die();
Check the image URL again, revert the file and post output please :)

Best Regards,
Salvoxia

underwoodr
Apprentice
Posts: 49
Joined: Sat Jan 31, 2009 03:23

Re: Some images missing

Post by underwoodr » Sun May 07, 2017 17:32

Thanks for the help!
Its a rarity to have support that is so quick xD

Code: Select all

array(20) {
  ["url"]=>
  string(60) "https://imageserver.eveonline.com/InventoryType/12557_32.png"
  ["content_type"]=>
  NULL
  ["http_code"]=>
  int(0)
  ["header_size"]=>
  int(0)
  ["request_size"]=>
  int(0)
  ["filetime"]=>
  int(-1)
  ["ssl_verify_result"]=>
  int(0)
  ["redirect_count"]=>
  int(0)
  ["total_time"]=>
  float(0)
  ["namelookup_time"]=>
  float(0.001182)
  ["connect_time"]=>
  float(0.003254)
  ["pretransfer_time"]=>
  float(0)
  ["size_upload"]=>
  float(0)
  ["size_download"]=>
  float(0)
  ["speed_download"]=>
  float(0)
  ["speed_upload"]=>
  float(0)
  ["download_content_length"]=>
  float(-1)
  ["upload_content_length"]=>
  float(-1)
  ["starttransfer_time"]=>
  float(0)
  ["redirect_time"]=>
  float(0)
}
string(80) "error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure"

User avatar
Salvoxia
Developer
Posts: 1515
Joined: Wed Feb 22, 2012 12:11

Re: Some images missing

Post by Salvoxia » Sun May 07, 2017 18:36

Hi,

great, now we know the problem.

Code: Select all

error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
cURL tries to use the SSLv3 protocol for talking to the image server, but that is disabled on CCP's side, because it is no longer considered safe. The cURL and PHP version you are using automatically default to using that protocol, I guess both are a bit out of date ;)
However, when calling the API using cURL, everything works.
I compared the cURL options used for calling the API and fetching images, I don't see any substatantial differences that might explain this, but I'll keep looking.

However, if you have the option, it's definitely not a bad idea to update PHP and OpenSSL.

Best Regards,
Salvoxia

Post Reply

Return to “Support”

Who is online

Users browsing this forum: No registered users and 6 guests