Message: getimagesize-failed to open stream: HTTP request failed! HTTP / 1.1 404 Not Found

-1

The complete error I get is: (I have PHP V7.1, and said Script is in a Subfolder)

Message: getimagesize(http://thekingstim.com/down/down/assets/images/cover.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Filename: controllers/Main.php

Line Number: 40

Y:

Backtrace:

File: /home/theking2/public_html/down/application/controllers/Main.php
Line: 40
Function: getimagesize

Y This is the code of the Main.php File (Line 36 to 41)

    $settings = $this->DefaultModel->generalSettings();
    $data['settings'] = $settings;
    $cover = array();
    $coverPath = base_url("assets/images/".$settings['coverImage']);
    $cover['path'] = $coverPath;
    $cover['porperties'] = getimagesize($coverPath);
    $data['cover'] = $cover;

Could someone help me with this problem? Thanks in advance

    
asked by Sergio Yael Alvarado 29.03.2018 в 00:23
source

1 answer

0

You are using an image that is not accessible and if you put http://thekingstim.com/down/down/assets/images/cover.png in the browser, a 404 is displayed: /

Make sure that this image exists on the server.

Right now I do not remember it well, but in any case, the getimagesize parameter has to be a string so you should include quotation marks.

Salu2

    
answered by 29.03.2018 в 01:09