Hello!
If I could get some help ASAP on this it would be greatly appreciated!
I'm getting errors while trying to upload images. Upload max image size is 7MB and image size is around 2MB. However, when I try a 178kb image, that works fine.
I guess I'm not understanding if this is a cmsadmin issue or a server issue.
++++
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) in /home/codyhors/public_html/cmsb/lib/image_functions.php on line 130 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 73728 bytes) in /home/codyhors/public_html/cmsb/lib/errorlog_functions.php on line 322
lines 128-141 of "image_functions.php"
if (empty($src_image) || empty($dst_image) || $quality <= 0) { return false; }
if ($quality < 5 && (($dst_w * $quality) < $src_w || ($dst_h * $quality) < $src_h)) {
$temp = imagecreatetruecolor ($dst_w * $quality + 1, $dst_h * $quality + 1);
_image_saveTransparency($temp, $src_image, $imageType);
imagecopyresized ($temp, $src_image, 0, 0, $src_x, $src_y, $dst_w * $quality + 1, $dst_h * $quality + 1, $src_w, $src_h);
imagecopyresampled ($dst_image, $temp, $dst_x, $dst_y, 0, 0, $dst_w, $dst_h, $dst_w * $quality, $dst_h * $quality);
imagedestroy($temp);
}
else {
imagecopyresampled($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h);
}
return true;
}
lines 320 - 330 of "errorlog_functions.php"
// create index of nums to names
if (!$numsToNames) {
foreach (get_defined_constants() as $name => $num) {
if (preg_match("/^E_/", $name)) { $numsToNames[$num] = $name; }
}
}
//
if (array_key_exists($errno, $numsToNames)) { return $numsToNames[$errno]; }
else { return $errno; }
}
++++
I'm running v3.11 (Build 2156). I did find a reference for errors like this and I cleared the error logs and fixed a reoccurring header error but still getting the fatal errors.
• https://www.interactivetools.com/forum/forum-posts.php?postNum=2242679#post2242679
• Admin Men > General > Security Settings > View Error Log (CLEARED ALL)
Thanks for the help!! Tina