bhtoys Posted November 22, 2021 Posted November 22, 2021 I was updating product, got this error.... Now I can't access Products at all in the admin? Maximum execution time of 30 seconds exceeded in file classes/ImageManager.php at line 316 Source file: classes/ImageManager.php 297: * @return resource 298: * 299: * @since 1.0.0 300: * @version 1.0.0 Initial version 301: */ 302: public static function create($type, $filename) 303: { 304: switch ($type) { 305: case IMAGETYPE_GIF : 306: return imagecreatefromgif($filename); 307: 308: case IMAGETYPE_PNG : 309: return imagecreatefrompng($filename); 310: 311: case 18: 312: return imagecreatefromwebp($filename); 313: 314: case IMAGETYPE_JPEG : 315: default: 316: return imagecreatefromjpeg($filename); 317: break; 318: } 319: } 320: 321: /** 322: * @param $dstImage 323: * @param $srcImage 324: * @param $dstX 325: * @param $dstY 326: * @param $srcX
0 nickz Posted November 22, 2021 Posted November 22, 2021 1 hour ago, bhtoys said: I was updating product, got this error.. 2 Questions I have for yer: How much time passed between all OK and I was updating product and got this error ... Issues? Where do you host?
0 datakick Posted November 22, 2021 Posted November 22, 2021 You have probably uploaded some huge product image. Thirtybees is trying to generate image thumbnail, but because of the source image size it take too kuch time, and pho script time out. You can either increase script running time (in your cpanel look for max_execution_time settings). If that is not possible, then delete the file you have uploaded. To do that, you first need to know image ID. This can be deducted from exception stacktrace, look for function parameter value, there will be some id_image somewhere). Once you know the ID, for example 1234, then delete file /img/p/1/2/3/4/1234.jpg
Question
bhtoys
I was updating product, got this error.... Now I can't access Products at all in the admin?
Maximum execution time of 30 seconds exceeded
Source file: classes/ImageManager.php
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now