反射添加到db但文件不会退出

时间:2016-02-03 17:59:02

标签: impresspages

文件是相对于/file/repository/AutoSalon/hasi/BB_Light_House_8.png

ipFileUrl(ipReflection('AutoSalon/'.$user['username'].'/'.$value['photo1'],$opti‌​ons,'thumb_'.$value['photo1'],true));

(36, options ,fprit, 'AutoSalon/hasi/BB_Light_House_8.png', '2016/02/03/thumb_BB_Light_House_8.png', 1454520313);

但/ file/2016/02/03/thumb_BB_Light_House_8.png

中没有档案
GET http://kukur.dev/file/2016/02/03/thumb_BB_Light_House_8_1.png 404 (Not Found)

这是LOG FILE

{" errorTrace":"#0 /Users/flakerimi/Sites/ImpressPages/Ip/Internal/Repository/ReflectionModel.php(60):Ip \ Internal \ Repository \ ReflectionModel-&gt ; createReflectionRecord(' AutoSalon / hasi /',Array,NULL)\ n#1 /Users/flakerimi/Sites/ImpressPages/Ip/Internal/Repository/ReflectionService.php(84):Ip \ Internal \ Repository \ ReflectionModel-> getReflection(' AutoSalon / hasi /',Array,NULL,true)\ n#2 /Users/flakerimi/Sites/ImpressPages/Ip/Functions.php(957):Ip \ Internal \ Repository \ ReflectionService-> getReflection(' AutoSalon / hasi /',Array,NULL,true)\ n#3 / Users / flakerimi / Sites / ImpressPages / Plugin / AutoSalon / view / user /list.php(25):ipReflection(' AutoSalon / hasi /',Array)\ n#4 /Users/flakerimi/Sites/ImpressPages/Ip/View.php(111):require(& #39; / Users / flakerim ...')\ n#5 /Users/flakerimi/Sites/ImpressPages/Ip/Application.php(352):Ip \ View-> render()\ n#6 /Users/flakerimi/Sites/ImpressPages/Ip/Application.php(442):Ip \ Application-> handleRequest(Object(I) p \ Request),Array,false)\ n#7 /Users/flakerimi/Sites/ImpressPages/Ip/script/run.php(8):Ip \ Application-> run()\ n#8 / Users / flakerimi /Sites/ImpressPages/index.php(14):require_once(' / Users / flakerim ...')\ n#9 {main}"}

1 个答案:

答案 0 :(得分:0)

仅用于存档目的:

问题在于$ options,

$options = array('type' => 'center', 'widht' => 400, 'height'=>200,  'forced' => true);

Width(widht)有一个拼写错误,这就是原因。也许更好的检查一下?