访问某个页面,大概有10%的概率会出现这个错误。资源文件我检查过是能够访问的。
1.您这个报错,是在后台Error Hander看到的信息把?
Error Handle:http://www.fecmall.com/doc/fecshop-guide/instructions/cn-2.0/guide-fecmall_error_handler.html
2.您是本地,还是服务器环境,内存多大? php版本?
1.这个应该是环境问题,可能是硬件内存太小
搜了一下资料:
它可能只是以下几项之一: PHP进程内存不足,文件句柄或类似内容 PHP环境自身的局限性以某种方式被超越 文件本身有一些限制,例如SELinux(安全性增强Linux)限制。
2.参考资料:
https://stackoverflow.com/questions/13445932/php-fopen-failed-to-open-stream-resource-temporarily-unavailable
怎么解决的?我也出现这个问题!
@pbmht #4楼 上面已经给与了导致问题的原因,是内存不足造成的,如何配置php的内存大小,自己去查资料。
php.ini文件设置 memory_limit = 1024M ,问题依然存在!
@pbmht #6楼
上面报错的copy函数,就是这个:https://github.com/yiisoft/yii2/blob/master/framework/helpers/BaseFileHelper.php#L344
vendor/yiisoft/yii2/helpers/BaseFileHelper.php 344行
if (is_file($from)) { if (!$dstExists) { // delay creation of destination directory until the first file is copied to avoid creating empty directories static::createDirectory($dst, isset($options['dirMode']) ? $options['dirMode'] : 0775, true); $dstExists = true; } copy($from, $to); if (isset($options['fileMode'])) { @chmod($to, $options['fileMode']); } }
Resource temporarily unavailable,资源暂时不可用
Resource temporarily unavailable
资源暂时不可用
您自行debug一下,看看具体原因,我本地无法重现的你的错误,因此,您自行debug一下看看吧,多查查资料.