Whoops \ Exception \ ErrorException (E_WARNING)
Undefined array key 0 Whoops\Exception\ErrorException thrown with message "Undefined array key 0" Stacktrace: #4 Whoops\Exception\ErrorException in /var/www/silverpalace.in/public_html/src/app/controllers/View.php:107 #3 Whoops\Run:handleError in /var/www/silverpalace.in/public_html/src/app/controllers/View.php:107 #2 src\app\controllers\View:product in /var/www/silverpalace.in/public_html/src/main/Router.php:58 #1 call_user_func_array in /var/www/silverpalace.in/public_html/src/main/Router.php:58 #0 src\main\Router:dispatch in /var/www/silverpalace.in/public_html/index.php:138
Stack frames (5)
4
Whoops\Exception\ErrorException
/src/app/controllers/View.php107
3
Whoops\Run handleError
/src/app/controllers/View.php107
2
src\app\controllers\View product
/src/main/Router.php58
1
call_user_func_array
/src/main/Router.php58
0
src\main\Router dispatch
/index.php138
/var/www/silverpalace.in/public_html/src/app/controllers/View.php
      }
      if(!empty($data['data'][0]['seo_image'])) {
        $data['seo_image'] = HOME.'uploads/collections/'.$data['data'][0]['seo_image'];
      }
      $data['menu'] = $mdl->menu();
      $data['data'] = $data['data'][0]; 
      $data['products'] = $mdl->collectionProducts($data['data']['id'], $page); 
      if(!isset($_GET['filters'])) { 
        $data['pagination'] = $cmn->pagination("view/collections/".$slug, "collections_products WHERE collection =".$data['data']['id'], $page);
      }
      $this->render('view/collections', $data);
    } else {
      header("Location: ".HOME."404/"); exit();
    }
  }  
  
  function product($slug) {
    $mdl = $this->model('View');
    $data['data'] = $mdl->product($slug);
    $data['images'] = $mdl->productImages($data['data'][0]['id']);
    if(isset($data['data'][0])) {
      if(!empty($data['data'][0]['seo_title'])) {
        $data['title'] = $data['data'][0]['seo_title'];
      } else {
        $data['title'] = $data['data'][0]['name'];
      }
      if(!empty($data['data'][0]['seo_keywords'])) {
        $data['seo_keywords'] = $data['data'][0]['seo_keywords'];
      }
      if(!empty($data['data'][0]['seo_description'])) {
        $data['seo_description'] = $data['data'][0]['seo_description'];
      }
      if(!empty($data['data'][0]['seo_image'])) {
        $data['seo_image'] = HOME.'uploads/products/'.$data['data'][0]['seo_image'];
      } elseif(isset($data['images'][0])) {
        $data['seo_image'] = HOME.'uploads/products/'.$data['images'][0]['image'];
      }
 
      $data['seo_type'] = "Product";
      if(!empty($data['data'][0]['sku'])) {
/var/www/silverpalace.in/public_html/src/app/controllers/View.php
      }
      if(!empty($data['data'][0]['seo_image'])) {
        $data['seo_image'] = HOME.'uploads/collections/'.$data['data'][0]['seo_image'];
      }
      $data['menu'] = $mdl->menu();
      $data['data'] = $data['data'][0]; 
      $data['products'] = $mdl->collectionProducts($data['data']['id'], $page); 
      if(!isset($_GET['filters'])) { 
        $data['pagination'] = $cmn->pagination("view/collections/".$slug, "collections_products WHERE collection =".$data['data']['id'], $page);
      }
      $this->render('view/collections', $data);
    } else {
      header("Location: ".HOME."404/"); exit();
    }
  }  
  
  function product($slug) {
    $mdl = $this->model('View');
    $data['data'] = $mdl->product($slug);
    $data['images'] = $mdl->productImages($data['data'][0]['id']);
    if(isset($data['data'][0])) {
      if(!empty($data['data'][0]['seo_title'])) {
        $data['title'] = $data['data'][0]['seo_title'];
      } else {
        $data['title'] = $data['data'][0]['name'];
      }
      if(!empty($data['data'][0]['seo_keywords'])) {
        $data['seo_keywords'] = $data['data'][0]['seo_keywords'];
      }
      if(!empty($data['data'][0]['seo_description'])) {
        $data['seo_description'] = $data['data'][0]['seo_description'];
      }
      if(!empty($data['data'][0]['seo_image'])) {
        $data['seo_image'] = HOME.'uploads/products/'.$data['data'][0]['seo_image'];
      } elseif(isset($data['images'][0])) {
        $data['seo_image'] = HOME.'uploads/products/'.$data['images'][0]['image'];
      }
 
      $data['seo_type'] = "Product";
      if(!empty($data['data'][0]['sku'])) {
/var/www/silverpalace.in/public_html/src/main/Router.php
    if(!empty($output)) {
 
      $segments = explode('@', $output['callback']);
      $controller = $segments[0];
 
      if(ENABLE_LOGIN) {
        if($output['mode']==1) {
          if(isset($_SESSION[APP."_login"])) {
            $controller = new $controller();
            if($controller) {
              call_user_func_array( array( $controller, $segments[1] ), $output['params'] );
            }
          } else {
            header("Location: ".HOME."account/login/");
            exit();
          }
        } elseif($output['mode'] == 0) {
          $controller = new $controller();
          if($controller) {
            call_user_func_array( array( $controller, $segments[1] ), $output['params'] );
          }
        }
      } else {
        $controller = new $controller();
        if($controller) {
          call_user_func_array( array( $controller, $segments[1] ), $output['params'] );
        }
      }
    } else {
      echo '404';
    }
  }
}
 
/var/www/silverpalace.in/public_html/src/main/Router.php
    if(!empty($output)) {
 
      $segments = explode('@', $output['callback']);
      $controller = $segments[0];
 
      if(ENABLE_LOGIN) {
        if($output['mode']==1) {
          if(isset($_SESSION[APP."_login"])) {
            $controller = new $controller();
            if($controller) {
              call_user_func_array( array( $controller, $segments[1] ), $output['params'] );
            }
          } else {
            header("Location: ".HOME."account/login/");
            exit();
          }
        } elseif($output['mode'] == 0) {
          $controller = new $controller();
          if($controller) {
            call_user_func_array( array( $controller, $segments[1] ), $output['params'] );
          }
        }
      } else {
        $controller = new $controller();
        if($controller) {
          call_user_func_array( array( $controller, $segments[1] ), $output['params'] );
        }
      }
    } else {
      echo '404';
    }
  }
}
 
/var/www/silverpalace.in/public_html/index.php
        transform: translate(-50%, -50%);
      }
      </style>
    </head>
    <body>
    
      <div class="container">
        <div class="content">
          <p><strong>Under Maintenance.</strong><br>We'll be live soon. Stay tuned!</p>
        </div>
      </div>
    
    </body>
    </html>
 
  <?php }
} else {
  $router = new src\main\Router();
  include "src/config/routes.php";
  $router->dispatch();
}

Environment & details:

empty
empty
empty
Key Value
session CD10A817-A896-4227-6849-E47CED345F1F-20240328090324
empty
Key Value
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI silverpalace.in
REDIRECT_STATUS 200
HTTPS on
SSL_TLS_SNI silverpalace.in
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST silverpalace.in
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
SERVER_SIGNATURE <address>Apache/2.4.41 (Ubuntu) Server at silverpalace.in Port 443</address>
SERVER_SOFTWARE Apache/2.4.41 (Ubuntu)
SERVER_NAME silverpalace.in
SERVER_ADDR 206.189.131.16
SERVER_PORT 443
REMOTE_ADDR 3.235.130.73
DOCUMENT_ROOT /var/www/silverpalace.in/public_html
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/silverpalace.in/public_html
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /var/www/silverpalace.in/public_html/index.php
REMOTE_PORT 52208
REDIRECT_URL /view/product/trendy-all-day-wear-watch-for-office-women/
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /view/product/trendy-all-day-wear-watch-for-office-women/
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711616604.5813
REQUEST_TIME 1711616604
empty
0. Whoops\Handler\PrettyPageHandler