+91 9899998390Customer Support

🧨 Undefined variable: main_image (View: /home1/decorzel/public_html/resources/views/themes/eCart_02/product.blade.php)

APP_DEBUG is set to true while APP_ENV is not local

This could make your application vulnerable to remote execution. Read more about Ignition security.

/home1/decorzel/public_html/
ErrorException
Undefined variable: main_image (View: /home1/decorzel/public_html/resources/views/themes/eCart_02/product.blade.php)

$main_image is undefined

Make the variable optional in the blade template. Replace {{ $main_image }} with {{ $main_image ?? '' }}

Loading...

    • 55
      app/helper.php
      Illuminate\Foundation\Bootstrap\HandleExceptions
      :175
    • 54
      :175
    • 53
      resources/views/themes/eCart_02/product.blade.php
      :603
    • 45
      app/Http/Controllers/Controller.php
      App\Http\Controllers\Controller
      :187
    • 44
      App\Http\Controllers\HomeController
      :181
    • 2
      public/index.php
      :55
    • 1
      :21
Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
app/helper.php:175

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

$cart_count = ($v->qty > 0 ? $v->qty : 1);

}

}

return $cart_count;

}

 

function get_main_image($p) {

$main_images = '';

 

if(isset($p->image)){

 

$main_image = $p->image;

 

}

 

return $main_image;

}

 

function get_gallery_images($v) {

$gallery_images = '';

 

if(isset($v->images)){

 

$gallery_images = implode(",", $v->images);

 

}

 

return $gallery_images;

}

 

function get_price($p, $isFree = true) {