• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Can't create image from source

  • Thread starter Thread starter rinku2012
  • Start date Start date
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