Are you seller, Login Here
Customer, Login / Register

Whoops! There was an error.
7. Whoops\Exception\ErrorException
…/­app/­theme/­client/­inc/­sidebar.php4
6. Whoops\Run handleError
…/­app/­theme/­client/­inc/­sidebar.php4
5. include_once
…/­app/­theme/­client/­page.php17
4. require_once
…/­app/­core/­controller.php13
3. Controller view
…/­app/­controllers/­pages.php13
2. Pages index
<#unknown>0
1. call_user_func_array
…/­app/­core/­core.php39
0. Core __construct
…/­index.php5

Whoops \ Exception \ ErrorException (E_NOTICE) Whoops\Exception\ErrorException thrown with message "Undefined offset: 0" Stacktrace: #7 Whoops\Exception\ErrorException in /home/shoppmpy/public_html/app/theme/client/inc/sidebar.php:4 #6 Whoops\Run:handleError in /home/shoppmpy/public_html/app/theme/client/inc/sidebar.php:4 #5 include_once in /home/shoppmpy/public_html/app/theme/client/page.php:17 #4 require_once in /home/shoppmpy/public_html/app/core/controller.php:13 #3 Controller:view in /home/shoppmpy/public_html/app/controllers/pages.php:13 #2 Pages:index in <#unknown>:0 #1 call_user_func_array in /home/shoppmpy/public_html/app/core/core.php:39 #0 Core:__construct in /home/shoppmpy/public_html/index.php:5

Undefined offset: 0

/home/shoppmpy/public_html/app/theme/client/inc/sidebar.php
<?php
  
  $city = City::all(['name' => Session::get("city")]);
  $city = $city[0]->id;
  $slider = Slider::all(["conditions" => "city = $city and banner_id = 1001","order" => "id DESC"]);
  if(count($slider)>0){
?>
  <!--side bar-->
   <?php 
      $i = 1;
/home/shoppmpy/public_html/app/theme/client/inc/sidebar.php
<?php
  
  $city = City::all(['name' => Session::get("city")]);
  $city = $city[0]->id;
  $slider = Slider::all(["conditions" => "city = $city and banner_id = 1001","order" => "id DESC"]);
  if(count($slider)>0){
?>
  <!--side bar-->
   <?php 
      $i = 1;
/home/shoppmpy/public_html/app/theme/client/page.php
	         <div class="para">
	           <?=html_entity_decode($data[0]->content);?>
	           
	          
	         </div>
	      </div>
	      <div class="col-md-3">
	         <?php include_once("inc/sidebar.php"); ?>
	      </div>
 
/home/shoppmpy/public_html/app/core/controller.php
    public function model($modelName){
        require_once("app/models/$modelName.php");
        return new $modelName();
    }
    
    public function view($viewname, $data = array()){
        extract($data);
        require_once("app/theme/$viewname.php");
    }
    
/home/shoppmpy/public_html/app/controllers/pages.php
    public function index($slug){
    	
    	if(!empty($slug)){
    	
	    		$data = Page::all(['slug'=>$slug]);
	    		
	    		if(count($data)>0){
	    			$this->view('client/page',array('data'=>$data,"active" => $data[0]->id,'pageSeo' => 1));
	    		}else{
	    			Redirect::to(base_url()."error/404");
<#unknown>
/home/shoppmpy/public_html/app/core/core.php
           $this->method = $url[1];
           unset($url[1]);
        }
    
        $url = array_values($url);
       
        
        call_user_func_array(array($this->controller,$this->method),$url);
        
        
/home/shoppmpy/public_html/index.php
<?php
define("SYSTEM_PATH", __dir__."/");
require_once "app/init.php";
 
$app = new Core();
 
 
 
if(!Session::exists('city')){
 
Key Value
LSPHP_ENABLE_USER_INI on
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
CONTENT_LENGTH 0
HTTP_HOST www.shoppingbazar.in
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_IF_MODIFIED_SINCE Wed, 21 Feb 2018 23:09:54 GMT
REDIRECT_UNIQUE_ID WtiWA9gK8FoACKJ4dlIAAAAW
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI www.shoppingbazar.in
REDIRECT_STATUS 200
UNIQUE_ID WtiWA9gK8FoACKJ4dlIAAAAW
HTTPS on
SSL_TLS_SNI www.shoppingbazar.in
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.shoppingbazar.in
SERVER_ADDR 216.10.240.90
SERVER_PORT 443
REMOTE_ADDR 107.22.48.243
DOCUMENT_ROOT /home/shoppmpy/public_html
SERVER_ADMIN webmaster@shoppingbazar.in
SCRIPT_FILENAME /home/shoppmpy/public_html/index.php
REMOTE_PORT 54012
REDIRECT_QUERY_STRING url=pages/about-us
REDIRECT_URL /pages/about-us
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING url=pages/about-us
REQUEST_URI /pages/about-us
SCRIPT_NAME /index.php
PATH_INFO /
PATH_TRANSLATED /home/shoppmpy/public_html/index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1524143619.953
REQUEST_TIME 1524143619
Key Value
url pages/about-us
empty
empty
empty
Key Value
token MTUyNDE0MzYxOXJCZjlvZ21iT0I5aHI5M1VlZXJmb2gyNFZWUFczMTZP
Key Value
LSPHP_ENABLE_USER_INI on
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
0. Whoops\Handler\PrettyPageHandler