Answer the question
In order to leave comments, you need to log in
After downloading the site to the local server: ErrorException in Filesystem.php line 81, what's wrong?
After downloading the site to a local server (ubuntu 14.04) an error occurs:
ErrorException in Filesystem.php line 81:
file_put_contents(/c72b0b27fc0ad695f30d7f1a19e5ce13): failed to open stream: Permission denied
in Filesystem.php line 81
at HandleExceptions->handleError('2', 'file_put_contents(/c72b0b27fc0ad695f30d7f1a19e5ce13): failed to open stream: Permission denied', '/home/sergei/www/site/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', '81', array('path' => '/c72b0b27fc0ad695f30d7f1a19e5ce13', 'contents' => '<?php /*<style> body { background: url(/upload/<?php echo e(isset($bg) ? $bg: ''); ?>); } </style>*/ ?> <?php $__env->startSection('content'); ?> <script type="text/javascript"> var posts = "<?php echo e(json_encode($all)); ?>"; var re = /"/g; posts = JSON.parse(posts.replace(re, '"')); var categories = "<?php echo e(json_encode($categories)); ?>"; categories = JSON.parse(categories.replace(re, '"')); </script> <main class="tile js__tile" ng-controller="mainPageCtrl"> <?php if(isset($super)): ?> <!-- Primary row --> <div class="tile__super"> <div class="tile__img"> <img src="<?php echo e(( !is_null($super->postSpecificImage('metaCover')) ) ? '/upload/'.$super->postSpecificImage('metaCover')->name : '/client/img/no-image.png'); ?>"> </div> <div class="tile__header"> <a href="<?php echo e(route('front::post::url', ['url' => $super->url])); ?>" class="tile__title"> <?php echo e(isset($super->text['title']) ? $super->text['title'] : 'Нет заголовка'); ?> </a> </div> </div> <?php endif; ?> <section ng-repeat="row in allRows" class="tile__row row" ng-class="{ 'tile__row--secondary' : (row.type == 'big'), 'tile__row--tertiary' : (row.type == 'mini'), }" > <!-- Выдача всех мини постов --> <div ng-if="row.type == 'mini'" ng-repeat="mini in row.posts.mini" class="col-xs-12 col-sm-12 col-md-4 col-lg-3" > <div class="tile__mini"> <div class="tile__img"> <img ng-src="/upload/{[{ images[mini.id].name }]}"> </div> <div class="tile__header"> <a href="/post/view/{[{ mini.id }]}" class="tile__title"> {[{ (mini.text.title) ? mini.text.title : 'Нет заголовка'}]} </a> </div> </div> </div> <!-- Выдача мидлов и фичеров --> <div ng-if="row.type == 'big'" class="col-xs-12 col-sm-12 col-md-8 col-lg-6" > <!-- Выдача фичеров --> <div class="tile__feat" ng-if=" row.posts.featured"> <div class="tile__img"> <img src="/upload/{[{ images[row.posts.featured.id].name }]}" > </div> <div class="tile__header"> <a href="/post/view/{[{ row.posts.featured.id }]}" class="tile__title"> {[{ (row.posts.featured.text.title) ? row.posts.featured.text.title : 'Нет заголовка' }]} </a> <div class="tile__marks"> <a href="" class="tile__mark tile__mark--interview">{[{ cats[row.posts.featured.category_id] ? cats[row.posts.featured.category_id] : 'Статья' }]}</a> </div> </div> <div class="tile__tx"> {[{ (row.posts.featured.text.description) ? row.posts.featured.text.description : 'Нет описания' }]} </div> </div> </div> <div ng-if="row.type == 'big'" ng-repeat="middle in row.posts.middle" class="col-xs-12 col-sm-12 col-md-4 col-lg-3"> <div ng-if="middle.id" class="tile__midd"> <div class="tile__img"> <img src="/upload/{[{ images[middle.id].name }]}" > </div> <div class="tile__header"> <a href="/post/view/{[{ middle.id }]}" class="tile__title"> {[{ (middle.text.title) ? middle.text.title : 'Нет заголовка' }]} </a> <div class="tile__marks"> <a href="" class="tile__mark tile__mark--column">{[{ cats[middle.category_id] ? cats[middle.category_id] : 'Статья' }]}</a> </div> </div> <div class="tile__tx"> {[{ (middle.text.description) ? middle.text.description : 'Нет описания' }]} </div> </div> </div> </section> <!-- <div class="btn-load-wrapper"> <button ng-click="loadMore()" class="btn-load-more"> Загрузить ещё! </button> </div> --> <button ng-click="loadMore()" class="tile__more"><i></i> Нужно больше материалов</button> <div class="btn_top"></div> </main> <?php $__env->stopSection(); ?> <?php echo $__env->make('front.layouts.main', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>', 'lock' => false))
Answer the question
In order to leave comments, you need to log in
When downloading from the server via filezila, not all session files were received. Solution: pack the site into an archive and download.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question