整数に 2 を加算しようとすると、このエラーが発生します。Codeigniter フレームワークを使用しています。
致命的なエラー: D:\wamp\www\application\libraries\Gen_images.php 行 180 のサポートされていないオペランド型
これが呼ばれる場所です:
// Now process the image
var_dump($this->upload->data('image_width'));
$this->gen_login->resize($file_name, $this->upload->data('image_width'), $this->upload->data('image_height'));
次のエラーが表示されますline 180
。
$config['width'] = $width + 2;
したがって、 $width は配列または文字列でなければならないので、追加できないと思いましたが、次のようにvar dump
表示されます。
array
'file_name' => string 'genyx_1341414096.jpg' (length=20)
'file_type' => string 'image/jpeg' (length=10)
'file_path' => string 'D:/wamp/www/beer/uploads/' (length=25)
'full_path' => string 'D:/wamp/www/beer/uploads/genyx_1341414096.jpg' (length=45)
'raw_name' => string 'genyx_1341414096' (length=16)
'orig_name' => string 'genyx_1341414096.jpg' (length=20)
'client_name' => string '294207_177080222375077_100002193022560_361510_991268937_s.jpg' (length=61)
'file_ext' => string '.jpg' (length=4)
'file_size' => float 55.85
'is_image' => boolean true
'image_width' => int 720
'image_height' => int 479
'image_type' => string 'jpeg' (length=4)
'image_size_str' => string 'width="720" height="479"' (length=24)
誰でも私を助けることができますか?