Edit in designer error 500

Laraship QuestionsCategory: TechnicalEdit in designer error 500
basilhaffar asked 6 years ago

Edit in designer is not working. It appears 500, something wrong page whenever I click on edit in designer.. How to fix this ?

i read this quastion but i didnt see how to solve it

2 Answers
laraship Staff answered 6 years ago

Hello

500 error is very genetic, please follow the instrcutions in the article here

https://www.laraship.com/question/project-uploaded-on-my-server/

basilhaffar replied 6 years ago

i do what you suggest in article
this what i get:
ErrorException (E_ERROR)
Invalid argument supplied for foreach() (View: /Applications/MAMP/htdocs/laraship/Corals/modules/CMS/resources/views/designer/designer.blade.php)
Previous exceptions
Invalid argument supplied for foreach() (0)
—————
/Applications/MAMP/htdocs/laraship/storage/framework/views/88a08b1668f9f4d1fa7e21898f9d97c6480ef2e4.php

var first_load = true;
var editor = grapesjs.init({
height: ‘100%’,
container: ‘#gjs’,
fromElement: true,
showOffsets: 1,
canvas: {
styles: [
css): ?>
css; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $css): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
“”,
popLoop(); $loop = $__env->getLastLoop(); ?>

],
scripts: [
js): ?>
js; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $js): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
“”,
popLoop(); $loop = $__env->getLastLoop(); ?>

],
},
commands: {
defaults: [{
id: ‘save-page’,
run: function (editor, senderBtn) {
if (first_load) {
first_load = false;
} else {
var html = editor.getHtml();
Arguments
“Invalid argument supplied for foreach() (View: /Applications/MAMP/htdocs/laraship/Corals/modules/CMS/resources/views/designer/designer.blade.php)”

laraship Staff answered 6 years ago

Hello,

What is the activated frontend Theme you have ?

basilhaffar replied 6 years ago

Classified Master Theme