Whoops! There was an error.
4. ErrorException
…/­app/­models/­Product.php508
3. Illuminate\Exception\Handler handleError
…/­app/­models/­Product.php508
2. Product get_breadcrumbs
/­var/­www/­vhosts/­fashionsales.ch/­httpdocs/­html/­search.shop_title.php33
1. require
/­var/­www/­vhosts/­fashionsales.ch/­httpdocs/­html/­searchform-home.php1
0. require
/­var/­www/­vhosts/­fashionsales.ch/­httpdocs/­index.php18

ErrorException

Invalid argument supplied for foreach()

              'title' =>  $brand_name,
          );
          $breadcrumbs[] = array(
              'url' =>  name_for_url($category) ,
              'title' =>  $category,
          );
      } else
          foreach($categories as $category){
              $breadcrumbs[] = array(
                  'url' =>  name_for_url($category) ,
              'title' =>  $brand_name,
          );
          $breadcrumbs[] = array(
              'url' =>  name_for_url($category) ,
              'title' =>  $category,
          );
      } else
          foreach($categories as $category){
              $breadcrumbs[] = array(
                  'url' =>  name_for_url($category) ,
 
 
 
 
        <?php
        require_once(BASEPATH.'/includes/class.encoding.php');
        $dispath = Product::parse_uri($_SERVER['REQUEST_URI']);
        $breadcrumbs = Product::get_breadcrumbs($dispath['brand'], $dispath['categories']);
        $breadcrumbs_list = array();
        for($i=0; $i<count($breadcrumbs); $i++){
<? require "html/search.shop_title.php"; ?>
 
<!--<div class="row top-area">-->
<!---->
<!--<div class='pt_sf search_form'>-->
<!---->
<!--  <div class='row'>-->
<!---->
<!--    <div class='search_form_inner medium-12 --><?php //print (isset($searchform["centered"])?"medium-centered":""); ?><!-- columns'>-->
<!---->
  $ROBOTS_TAG = "noindex, follow";
}
 
require("html/header.php");
 
require("html/menu.php");
 
require("html/searchform-home.php");
 
require("html/home-brands.php");
Key Value
UNIQUE_ID WEgcRgUJXzAAAGZhwUsAAAAG
HTTP_HOST www.fashionsales.ch
HTTP_X_REAL_IP 54.158.119.60
HTTP_X_FORWARDED_FOR 54.158.119.60
HTTP_CONNECTION close
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PATH /usr/local/bin:/usr/bin:/bin
SERVER_SIGNATURE <address>Apache Server at www.fashionsales.ch Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.fashionsales.ch
SERVER_ADDR 5.9.95.48
SERVER_PORT 80
REMOTE_ADDR 54.158.119.60
DOCUMENT_ROOT /var/www/vhosts/fashionsales.ch/httpdocs
SERVER_ADMIN cvladan+alexey@gmail.com
SCRIPT_FILENAME /var/www/vhosts/fashionsales.ch/httpdocs/index.php
REMOTE_PORT 39066
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1481120838.33
REQUEST_TIME 1481120838
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler