Code Monkey home page Code Monkey logo

Comments (4)

Jimmy9876 avatar Jimmy9876 commented on July 30, 2024

是因为laravel版本的问题吗

from laravel-store.

nonfu avatar nonfu commented on July 30, 2024

报什么错

from laravel-store.

cqllang avatar cqllang commented on July 30, 2024

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

from laravel-store.

cqllang avatar cqllang commented on July 30, 2024

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

from laravel-store.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.