• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Can't create image from source

Status
Not open for further replies.
R

rinku2012

Guest
Hello,

i am getting the below error while uploading pics on the website

Can't create image from source

I see the below logs in error_log file

[29-Sep-2016 13:50:25 America/Los_Angeles] Can't create image from source

Thanks
 
Same Error after reinstall GD from cpanel. what else might be the problem Rodolfo ?
 
Try enabling debug_level = 3 (read here) + Dashboard > Settings > System (enable show errors).

The conflict is at app/lib/classes/class.imageresize.php

PHP:
        switch($this->file_extension) {
            case 'gif':
                $src = imagecreatefromgif($this->source);
            break;
            case 'png':
                $src = imagecreatefrompng($this->source);
            break;
            case 'jpg':
                $src = imagecreatefromjpeg($this->source);
            break;
        }
       
        // Invalid SRC
        if(!$src) {
            throw new ImageresizeException("Can't create image from source", 210);
        }
 
Hi Rodolfo,

i have enabled debug and print error logs. Still i see only the same error
Can't create image from source

i have 2 websites on same server. Both the websites giving me same error. can you please take a look into it
can i message you my website details or is there something u can fix or suggest me something over here ?

Remote upload is working fine
 
Upon reviewing the images that you sent me I got these errors:

Code:
Warning:  imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Corrupt JPEG data: 2636 extraneous bytes before marker 0xd9

Code:
Warning:  imagecreatefromjpeg(): '/images/2016/09/30/HotBeauties7.jpg' is not a valid JPEG file in \app\lib\classes\class.imageresize.php on line 222


Which is caused by this invalid Exif data (readed by PHP):

Code:
SNAPCHAT ������������
#FOLLOW ⤵️ @models_f0rever ������
@models_f0rever ������
@models_f0rever ������
@models_f0rever ������
-
Also Follow @juicy_babez ������

M @Tag if know ✔


So basically what I'm doing here is to ignore the error then trim all unicode chars from that thing. I will add this fix for the next release.
 
Status
Not open for further replies.
Back
Top