Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/275.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MeioUpload和phpThumb()不存在错误_Php_Cakephp_Phpthumb_Cakephp 2.2_Meio Upload - Fatal编程技术网

MeioUpload和phpThumb()不存在错误

MeioUpload和phpThumb()不存在错误,php,cakephp,phpthumb,cakephp-2.2,meio-upload,Php,Cakephp,Phpthumb,Cakephp 2.2,Meio Upload,我目前正在使用CakePHP v2.2.1和MeioUpload 4.0以及phpThumb()来尝试为这些图像生成图像上传和缩略图。如果我在没有thumbsizes属性的情况下设置了我的$actAs=array(),那么所有内容都可以上传,但是当我添加以下内容时: 'thumbsizes' => array( 'small' => array('width' => 165, 'height' => 115), 'medium' => array('

我目前正在使用CakePHP v2.2.1和MeioUpload 4.0以及phpThumb()来尝试为这些图像生成图像上传和缩略图。如果我在没有thumbsizes属性的情况下设置了我的
$actAs=array()
,那么所有内容都可以上传,但是当我添加以下内容时:

'thumbsizes' => array(
    'small' => array('width' => 165, 'height' => 115),
    'medium' => array('width' => 800, 'height' => 600)
),
"E:/xampp/htdocs/site/vendors/phpthumb/img/posts/image-name.jpg" does not exist
要生成缩略图,我会收到一个错误,说明如下:

'thumbsizes' => array(
    'small' => array('width' => 165, 'height' => 115),
    'medium' => array('width' => 800, 'height' => 600)
),
"E:/xampp/htdocs/site/vendors/phpthumb/img/posts/image-name.jpg" does not exist

我在网上尝试了几种不同的方法来解决这个问题,但似乎没有任何效果。我是cakephp新手,所以这可能是一个简单的解决方案,我只是没有连接点来找到解决方案。非常感谢您的帮助。

决定使用此处找到的Miles J.插件。看来Meio的2.2.1版CakePHP有问题,一切又好了

把答案放在这个评论下面。。。