[Notice] getimagesize(): Read error!

GET /training-licensing/news-and-updates/?start=174

Line 1009 in /var/www/local478-website/framework/model/Image.php

Source

1000 	 * @param string $dim If this is equal to "string", return the dimensions in string form,
1001 	 * if it is 0 return the height, if it is 1 return the width.
1002 	 * @return string|int|null
1003 	 */
1004 	public function getDimensions($dim = "string") {
1005 		if($this->getField('Filename')) {
1006 
1007 			$imagefile = $this->getFullPath();
1008 			if($this->exists()) {
1009 				$size = getimagesize($imagefile);
1010 				return ($dim === "string") ? "$size[0]x$size[1]" : $size[$dim];
1011 			} else {
1012 				return ($dim === "string") ? "file '$imagefile' not found" : null;
1013 			}
1014 		}
1015 	}

Trace

GET /training-licensing/news-and-updates/?start=174

[Notice] getimagesize(): Read error!

GET /training-licensing/news-and-updates/?start=174

Line 132 in /var/www/local478-website/framework/filesystem/GD.php

Source

123 	 *
124 	 * @param string $filename
125 	 * @return boolean
126 	 */
127 	public function checkAvailableMemory($filename) {
128 		$limit = translate_memstring(ini_get('memory_limit'));
129 
130 		if ($limit < 0) return true; // memory_limit == -1
131 
132 		$imageInfo = getimagesize($filename);
133 
134 		// bits per channel (rounded up, default to 1)
135 		$bits = isset($imageInfo['bits']) ? ($imageInfo['bits'] + 7) / 8 : 1;
136 
137 		// channels (default 4 rgba)
138 		$channels = isset($imageInfo['channels']) ? $imageInfo['channels'] : 4;

Trace

IUOE

Login to Portal

Forgot your password? Click here.

Don’t have an account? Click here.

IUOE

CT Construction Digest Wednesday March 15, 2023

Read More

CT Construction Digest Tuesday March 14, 2023

Read More

CT Construction Digest Monday March 13, 2023

Read More

CT Construction Digest Thursday March 9, 2023

Read More

CT Construction Digest Wednesday March 8, 2023

Read More

CT Construction Digest Tuesday March 7, 2023

Read More

1 ... 28 29 30 31 32 ... 138