请问 用编辑器上传图片的时候出现ueditor.all.js:24515 POST http://dev.zhihu.com/ueditor/server?action=upload-image&_token=V8sGa1iMUbCVeo2v8co4nXRIInr9Nrz01MsQbHoi 500 (Internal Server Error)错误,我的public文件夹里并没有’/uploads/image/{yyyy}/{mm}/{dd}/目录 这要怎么解决呢?
Failed to loadresource: the server responded with a statusof500 (Internal ServerError)
ueditor.all.js:24515 POST http://localhost:8000/ueditor/server?action=upload-image&_token=DCOg4kfunug43Hgo0nhrvmraonGi8pTH8msKEBQ3 500 (Internal ServerError)
(anonymous) @ ueditor.all.js:24515
ueditor.all.js:24515 POST http://localhost:8000/ueditor/server?action=upload-image&_token=DCOg4kfunug43Hgo0nhrvmraonGi8pTH8msKEBQ3 500 (Internal ServerError)
非常感谢,刚检查了一下,在php.ini把extension=php_fileinfo.dll前面的;去掉了,但还是不行。问题从Network中显示
ErrorException in StorageManager.php line 217:
rand() expects parameter 2 to be integer, float given
我也是5.4,上传图片的时候也是出现这种情况,执行storage:link这个命令之后确实可以显示图片了,用php artisan list查看了一下,是这么解释的"Create a symbolic link from “public/storage” to “storage/app/public”。
原来是在public下创建一个指向"storage/app/public"的"storage"文件夹快捷方式,这样就能通过这个快捷方式直接访问到了。
创建后windows下看"public/storage"文件夹会发现文件夹图标左下角有个快捷方式标识,ubuntu用ll命令会看到ln后指向的路径。
一直困扰我很久的问题就是我使用model eloquent orm的方法 类似这样
Question::find($id);
都会有个黄色波浪线,Non-static method should not be called statically’
但是实际又不会报错,正常的。就是有个黄色波浪线提示这个。
请问下是怎么回事呢 laravel 5.5