Post by Frens » Sat Mar 25, 2023 9:12 pm

Hello

Got error in OC v3.0.3.8 when in admin go to catalog > product

Warning: getimagesize(/var/www/vhosts/mysite/httpdocs/opencart-3.0.3.8/image/no_image.jpg): Failed to open stream: No such file or directory in /var/www/vhosts/mysite/storage/modification/admin/model/tool/image.php on line 12

cant find a solution

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by xxvirusxx » Sat Mar 25, 2023 9:42 pm

Frens wrote:
Sat Mar 25, 2023 9:12 pm
no_image.jpg
Because your ocmod extension doesn't use .PNG and the file doesn't exist.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Frens » Sat Mar 25, 2023 10:51 pm

Thanks

So i made a no_image.jpg and the error is gone :)

But the original file is no_image.png in OC 3 so waths go wrong?

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by xxvirusxx » Sat Mar 25, 2023 11:00 pm

Frens wrote:
Sat Mar 25, 2023 10:51 pm
But the original file is no_image.png in OC 3 so waths go wrong?
An ocmod extension that use no_image.jpg instead of .PNG

Code: Select all

/storage/modification/admin/model/tool/image.php 

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Frens » Sat Mar 25, 2023 11:44 pm

Code: Select all

 if (!$image_info) {
                        return $server . 'image/' . $filename;
                    }
                } else {
                    $filename = "no_image.png";
                }
Ok thanks for help

normal it is .png but a extension use .jpg

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by paulfeakins » Mon Mar 27, 2023 6:44 pm

Frens wrote:
Sat Mar 25, 2023 10:51 pm
the error is gone :)
In that case, please add [SOLVED] to the start of this post title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by demcboon » Tue Jun 27, 2023 4:07 am

Hi everyone,
I have the same problem and I don't know where I need to make the change.
User "Frens" said he changed the name of a picture and the error disappeared. Can you explain more clearly how you did it and where you put the code?
I also need to remove the error!
Thank you!

Newbie

Posts

Joined
Sat Oct 11, 2014 2:49 am

Post by paulfeakins » Tue Jun 27, 2023 7:46 pm

demcboon wrote:
Tue Jun 27, 2023 4:07 am
Can you explain more clearly how you did it and where you put the code?
"So i made a no_image.jpg"

No code, just an image added with that name.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Semrush [Bot], Shiftcom, SohBH and 419 guests