Undefined offset: 1


  • /home/mcf/public_html/mcf.rs/vendor/intellex/curly/src/Response.php : 38
    31      * @param string $response The complete response from the remote
    32      * @param array  $info     The curl info
    33      */ 
    34     public function __construct($response, array $info) { 
    35         $this->raw $response
    36  
    37         // Get the content 
    38         list($headers$this->content) = explode("\r\n\r\n"$response2); 
    39  
    40         // Extract headers and cookies 
    41         list($this->headers$this->cookies) = static::extractHeadersAndCookies($headers); 
    42  
    43         // From info 
    44         $this->code $info['http_code']; 
    45         $this->contentType Type::init($info['content_type']); 
    46     
  • AppErrorHandler :: handleError ( integer: 8 , Undefined offset: 1 , /home/mcf/public_html/mcf.rs/vendor/intellex/curly/src/Response.… , integer: 38 , Array ( [response] => [info] => Array ( … )
    /home/mcf/public_html/mcf.rs/vendor/intellex/curly/src/Response.php : 38
    31      * @param string $response The complete response from the remote
    32      * @param array  $info     The curl info
    33      */ 
    34     public function __construct($response, array $info) { 
    35         $this->raw $response
    36  
    37         // Get the content 
    38         list($headers$this->content) = explode("\r\n\r\n"$response2); 
    39  
    40         // Extract headers and cookies 
    41         list($this->headers$this->cookies) = static::extractHeadersAndCookies($headers); 
    42  
    43         // From info 
    44         $this->code $info['http_code']; 
    45         $this->contentType Type::init($info['content_type']); 
    46     
  • Intellex\Curly\Response __construct ( boolean: false , Array ( [url] => http://magicbox.rs/api/v3/movies/top10 … )
    /home/mcf/public_html/mcf.rs/vendor/intellex/curly/src/Curl.php : 220
    213         // Apply the overrides 
    214         foreach ($this->overrides as $option => $value) { 
    215             static::curl_setopt($ch$option$value); 
    216         
    217  
    218         // Execute and get the full info 
    219         $data curl_exec($ch); 
    220         $response = new Response($datacurl_getinfo($ch)); 
    221  
    222         // Return the data 
    223         curl_close($ch); 
    224         return $response
    225     
    226  
    227     /** 
    228      Set the curl option and write it to the request log
  • Intellex\Curly\Curl execute ( )
    /home/mcf/public_html/mcf.rs/VectorCMS/View/Layouts/front.ctp(45) : eval()'d code : 59
  • eval ( )
    /home/mcf/public_html/mcf.rs/VectorCMS/View/Layouts/front.ctp : 45
    38         $documentTitle array_reverse($documentTitle); 
    39     
    40 
    41  
    42 # Render the page 
    43 if (!empty($html)) { 
    44     ob_start(); 
    45     eval('?>' $html); 
    46     $pageContent ob_get_clean(); 
    47  
    48     # No page supplied, show admin login 
    49 } else { 
    50     header('Location: ' BACK_BASE_URL); 
    51     exit; 
    52 
    53  
  • include ( /home/mcf/public_html/mcf.rs/VectorCMS/View/Layouts/front.ctp )
    /home/mcf/public_html/mcf.rs/lib/Cake/View/View.php : 971
    964  * @return string Rendered output 
    965  */ 
    966     protected function _evaluate($viewFile$dataForView) { 
    967         $this->__viewFile $viewFile
    968         extract($dataForView); 
    969         ob_start(); 
    970  
    971         include $this->__viewFile
    972  
    973         unset($this->__viewFile); 
    974         return ob_get_clean(); 
    975     
    976  
    977 /** 
    978  Loads a helperDelegates to the `HelperCollection::load()to load the helper 
    979  
  • View _evaluate ( /home/mcf/public_html/mcf.rs/VectorCMS/View/Layouts/front.ctp , HUGE Array )
    /home/mcf/public_html/mcf.rs/lib/Cake/View/View.php : 933
    926         $this->_current $viewFile
    927         $initialBlocks count($this->Blocks->unclosed()); 
    928  
    929         $eventManager $this->getEventManager(); 
    930         $beforeEvent = new CakeEvent('View.beforeRenderFile'$this, array($viewFile)); 
    931  
    932         $eventManager->dispatch($beforeEvent); 
    933         $content $this->_evaluate($viewFile$data); 
    934  
    935         $afterEvent = new CakeEvent('View.afterRenderFile'$this, array($viewFile$content)); 
    936  
    937         $afterEvent->modParams 1
    938         $eventManager->dispatch($afterEvent); 
    939         $content $afterEvent->data[1]; 
    940  
    941         if (isset($this->_parents[$viewFile])) { 
  • View _render ( /home/mcf/public_html/mcf.rs/VectorCMS/View/Layouts/front.ctp )
    /home/mcf/public_html/mcf.rs/lib/Cake/View/View.php : 473
    466         if ($this->hasRendered) { 
    467             return null; 
    468         } 
    469  
    470         if ($view !== false && $viewFileName = $this->_getViewFileName($view)) { 
    471             $this->_currentType = static::TYPE_VIEW; 
    472             $this->getEventManager()->dispatch(new CakeEvent('View.beforeRender', $this, array($viewFileName))); 
    473             $this->Blocks->set('content', $this->_render($viewFileName)); 
    474             $this->getEventManager()->dispatch(new CakeEvent('View.afterRender', $this, array($viewFileName))); 
    475         } 
    476  
    477         if ($layout === null) { 
    478             $layout = $this->layout; 
    479         } 
    480         if ($layout && $this->autoLayout) { 
    481             $this->Blocks->set('content', $this->renderLayout('', $layout)); 
  • View render ( /Layouts/front , (null value) )
    /home/mcf/public_html/mcf.rs/lib/Cake/Controller/Controller.php : 961
    954                 list($plugin) = pluginSplit(App::location($className)); 
    955                 $this->request->params['models'][$currentObject->alias] = compact('plugin''className'); 
    956                 $this->View->validationErrors[$currentObject->alias] =& $currentObject->validationErrors
    957             
    958         
    959  
    960         $this->autoRender false
    961         $this->response->body($this->View->render($view$layout)); 
    962         return $this->response
    963     
    964  
    965 /** 
    966  Returns the referring URL for this request
    967  
    968  * @param string $default Default URL to use if HTTP_REFERER cannot be read from headers 
    969  * @param bool $local If truerestrict referring URLs to local server 
  • Controller render ( /Layouts/front )
    /home/mcf/public_html/mcf.rs/VectorCMS/Controller/FrontController.php : 208
    201             
    202  
    203             # Handle custom logic after the page has been read from the database 
    204             $this->afterPage(); 
    205  
    206             $this->set('html'$html); 
    207             if (get_class($this) === 'FrontController') { 
    208                 $this->render('/Layouts/front'); 
    209             
    210  
    211         } catch (NotFoundException $ex) { 
    212             $this->redirect('/404'); 
    213         
    214     
    215  
    216     # ~ Handle cms tags parsing- - - - - - - - - - - - - - - - - - - - - - - - - - # 
  • FrontController beforeFilter ( HUGE CakeEvent )
  • call_user_func ( HUGE Array , HUGE CakeEvent )
    /home/mcf/public_html/mcf.rs/lib/Cake/Event/CakeEventManager.php : 243
    236         foreach ($listeners as $listener) { 
    237             if ($event->isStopped()) { 
    238                 break; 
    239             
    240             if ($listener['passParams'] === true) { 
    241                 $result call_user_func_array($listener['callable'], $event->data); 
    242             } else { 
    243                 $result call_user_func($listener['callable'], $event); 
    244             
    245             if ($result === false) { 
    246                 $event->stopPropagation(); 
    247             
    248             if ($result !== null) { 
    249                 $event->result $result
    250             
    251         
  • CakeEventManager dispatch ( HUGE CakeEvent )
    /home/mcf/public_html/mcf.rs/lib/Cake/Controller/Controller.php : 677
    670  * - triggers Component `startupmethods
    671  
    672  * @return void 
    673  * @triggers Controller.initialize $this 
    674  * @triggers Controller.startup $this 
    675  */ 
    676     public function startupProcess() { 
    677         $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize'$this)); 
    678         $this->getEventManager()->dispatch(new CakeEvent('Controller.startup'$this)); 
    679     
    680  
    681 /** 
    682  Perform the various shutdown processes for this controller
    683  Fire the Components and Controller callbacks in the correct order
    684  
    685  * - triggers the component `shutdowncallback
  • Controller startupProcess ( )
    /home/mcf/public_html/mcf.rs/lib/Cake/Routing/Dispatcher.php : 189
    182  
    183  * @param Controller $controller Controller to invoke 
    184  * @param CakeRequest $request The request object to invoke the controller for. 
    185  * @return CakeResponse the resulting response object 
    186  */ 
    187     protected function _invoke(Controller $controllerCakeRequest $request) { 
    188         $controller->constructClasses(); 
    189         $controller->startupProcess(); 
    190  
    191         $response $controller->response
    192         $render true
    193         $result $controller->invokeAction($request); 
    194         if ($result instanceof CakeResponse) { 
    195             $render false
    196             $response $result
    197         
  • Dispatcher _invoke ( HUGE FrontController , CakeRequest Object ( [params] => Array ( … )
    /home/mcf/public_html/mcf.rs/lib/Cake/Routing/Dispatcher.php : 167
    160         if (!($controller instanceof Controller)) { 
    161             throw new MissingControllerException(array( 
    162                 'class' => Inflector::camelize($request->params['controller']) . 'Controller', 
    163                 'plugin' => empty($request->params['plugin']) ? null : Inflector::camelize($request->params['plugin']) 
    164             )); 
    165         } 
    166  
    167         $response = $this->_invoke($controller, $request); 
    168         if (isset($request->params['return'])) { 
    169             return $response->body(); 
    170         } 
    171  
    172         $afterEvent = new CakeEvent('Dispatcher.afterDispatch', $this, compact('request', 'response')); 
    173         $this->getEventManager()->dispatch($afterEvent); 
    174         $afterEvent->data['response']->send(); 
    175     } 
  • Dispatcher dispatch ( CakeRequest Object ( [params] => Array ( … , CakeResponse Object ( [_statusCodes:protected] => Array … )
    /home/mcf/public_html/mcf.rs/VectorCMS/webroot/index.php : 156
    149 # Cronjob handler 
    150 if (isset($argc) && $argc == 2 && isCLI()) { 
    151     define('CRONJOB', $argv[1]); 
    152     $Dispatcher->dispatch(new CakeRequest($argv[1]), new CakeResponse()); 
    153     exit; 
    154 } 
    155  
    156 $Dispatcher->dispatch(new CakeRequest(), new CakeResponse([ 'charset' => Configure::read('App.encoding') ])); 
    157