laravel-store icon indicating copy to clipboard operation
laravel-store copied to clipboard

下载下来运行报错啊

Open Jimmy9876 opened this issue 7 years ago • 4 comments

Jimmy9876 avatar Apr 11 '17 02:04 Jimmy9876

是因为laravel版本的问题吗

Jimmy9876 avatar Apr 11 '17 02:04 Jimmy9876

报什么错

nonfu avatar May 11 '17 15:05 nonfu

ErrorException in compiled.php line 7348: file_put_contents(/886142d214d6adaa450e610bbea210090eeaba22.php): failed to open stream: Permission denied

at HandleExceptions->handleError('2', 'file_put_contents(/886142d214d6adaa450e610bbea210090eeaba22.php): failed to open stream: Permission denied', '/Users/Lance/work/websites/laravel-store/bootstrap/cache/compiled.php', '7348', array('path' => '/886142d214d6adaa450e610bbea210090eeaba22.php', 'contents' => '<?php $__env->startSection('商店首页', 'Page Title'); ?> <?php $__env->startSection('sidebar'); ?> @parent <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="container"> <div class="row"> <div class="col-md-12"> <?php foreach($products as $product): ?> <div class="col-sm-6 col-md-4"> <div class="thumbnail" > <img src="<?php echo e($product->imageurl); ?>" class="img-responsive"> <div class="caption"> <div class="row"> <div class="col-md-6 col-xs-6"> <h3><?php echo e($product->name); ?></h3> </div> <div class="col-md-6 col-xs-6 price"> <h3> <label>¥<?php echo e($product->price); ?></label></h3> </div> </div> <p><?php echo e($product->description); ?></p> <div class="row"> <div class="col-md-6 col-md-offset-3"> <a href="/addProduct/<?php echo e($product->id); ?>" class="btn btn-success btn-product"><span class="fa fa-shopping-cart"></span> 购买</a></div> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>', 'lock' => false)) at file_put_contents('/886142d214d6adaa450e610bbea210090eeaba22.php', '<?php $__env->startSection('商店首页', 'Page Title'); ?> <?php $__env->startSection('sidebar'); ?> @parent <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="container"> <div class="row"> <div class="col-md-12"> <?php foreach($products as $product): ?> <div class="col-sm-6 col-md-4"> <div class="thumbnail" > <img src="<?php echo e($product->imageurl); ?>" class="img-responsive"> <div class="caption"> <div class="row"> <div class="col-md-6 col-xs-6"> <h3><?php echo e($product->name); ?></h3> </div> <div class="col-md-6 col-xs-6 price"> <h3> <label>¥<?php echo e($product->price); ?></label></h3> </div> </div> <p><?php echo e($product->description); ?></p> <div class="row"> <div class="col-md-6 col-md-offset-3"> <a href="/addProduct/<?php echo e($product->id); ?>" class="btn btn-success btn-product"><span class="fa fa-shopping-cart"></span> 购买</a></div> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>', '0') in compiled.php line 7348 at Filesystem->put('/886142d214d6adaa450e610bbea210090eeaba22.php', '<?php $__env->startSection('商店首页', 'Page Title'); ?> <?php $__env->startSection('sidebar'); ?> @parent <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="container"> <div class="row"> <div class="col-md-12"> <?php foreach($products as $product): ?> <div class="col-sm-6 col-md-4"> <div class="thumbnail" > <img src="<?php echo e($product->imageurl); ?>" class="img-responsive"> <div class="caption"> <div class="row"> <div class="col-md-6 col-xs-6"> <h3><?php echo e($product->name); ?></h3> </div> <div class="col-md-6 col-xs-6 price"> <h3> <label>¥<?php echo e($product->price); ?></label></h3> </div> </div> <p><?php echo e($product->description); ?></p> <div class="row"> <div class="col-md-6 col-md-offset-3"> <a href="/addProduct/<?php echo e($product->id); ?>" class="btn btn-success btn-product"><span class="fa fa-shopping-cart"></span> 购买</a></div> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>') in compiled.php line 15297 at BladeCompiler->compile('/Users/Lance/work/websites/laravel-store/resources/views/main/index.blade.php') in compiled.php line 15214 at CompilerEngine->get('/Users/Lance/work/websites/laravel-store/resources/views/main/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'products' => object(Collection))) in /Users/Lance/work/websites/laravel-store/bootstrap/cache/compiled.php line 15049 at View->getContents() in compiled.php line 15037 at View->renderContents() in compiled.php line 15021

cqllang avatar Jul 08 '17 05:07 cqllang

这个是哪儿没设置权限还是你路径创建成了/根目录? @nonfu

cqllang avatar Jul 08 '17 05:07 cqllang