Error!

TypeError [ Error ]:
get_class(): Argument #1 ($object) must be of type object, null given

COREPATH/classes/security.php @ line 241

236            foreach ($value as $k => $v)
237            {
238                $value[$k] = static::htmlentities($v$flags$encoding$double_encode);
239            }
240        }
241        elseif ($value instanceof \Iterator or get_class($value) == 'stdClass')
242        {
243            // Add to $already_cleaned variable
244            $already_cleaned[] = $value;
245
246            foreach ($value as $k => $v)

Backtrace

  1. COREPATH/classes/security.php @ line 241
    236            foreach ($value as $k => $v)
    237            {
    238                $value[$k] = static::htmlentities($v$flags$encoding$double_encode);
    239            }
    240        }
    241        elseif ($value instanceof \Iterator or get_class($value) == 'stdClass')
    242        {
    243            // Add to $already_cleaned variable
    244            $already_cleaned[] = $value;
    245
    246            foreach ($value as $k => $v)
    
  2. COREPATH/base.php @ line 258
    253 */
    254if ( ! function_exists('e'))
    255{
    256    function e($string)
    257    {
    258        return \Security::htmlentities($string);
    259    }
    260}
    261
    262/**
    263 Takes a classname and returns the actual classname for an alias or just the classname
    
  3. APPPATH/views/blog/index.php @ line 73
    68
    69                <div class="col-md-3 sidebar">
    70                    <div class="search">
    71                        <form>
    72                            <span class="icomoon-search"></span>
    73                            <input type="text" name="q" placeholder="Search on blog..." value="<?php echo e(\Input::get('q')); ?>">
    74                        </form>
    75                    </div>
    76                    <div class="updates">
    77                        <strong>
    78                            Free blog updates
    
  4. COREPATH/classes/view.php @ line 258
    253            ob_start();
    254
    255            try
    256            {
    257                // Load the view within the current scope
    258                include $__file_name;
    259            }
    260            catch (\Exception $e)
    261            {
    262                // Delete the output buffer
    263                ob_end_clean();
    
  5. COREPATH/classes/view.php @ line 274
    269            // Get the captured output and close the buffer
    270            return ob_get_clean();
    271        };
    272
    273        // import and process the view file
    274        $result $clean_room($file_override ?: $this->file_name$data $this->get_data());
    275
    276        // disable sanitization on objects that support it
    277        $this->unsanitize($data);
    278
    279        // return the result
    
  6. COREPATH/classes/view.php @ line 678
    673        {
    674            throw new \FuelException('You must set the file to use within your view before rendering');
    675        }
    676
    677        // combine local and global data and capture the output
    678        $return $this->process_file();
    679
    680        // restore the current language setting
    681        $this->active_language and \Config::set('language'$current_language);
    682
    683        // and the active request class
    
  7. COREPATH/classes/view.php @ line 227
    222     */
    223    public function __toString()
    224    {
    225        try
    226        {
    227            return $this->render();
    228        }
    229        catch (\Exception $e)
    230        {
    231            \Errorhandler::exception_handler($e);
    232
    
  8. APPPATH/views/template.php @ line 208
    203                    </div>
    204                </div>
    205            </div>
    206        <?php endif; ?>
    207
    208        <?= empty($content) ? '' $content?>
    209
    210        <div id="footer-clients">
    211            <div class="container">
    212                <div class="row">
    213                    <div class="col-md-12">
    
  9. COREPATH/classes/view.php @ line 258
    253            ob_start();
    254
    255            try
    256            {
    257                // Load the view within the current scope
    258                include $__file_name;
    259            }
    260            catch (\Exception $e)
    261            {
    262                // Delete the output buffer
    263                ob_end_clean();
    
  10. COREPATH/classes/view.php @ line 274
    269            // Get the captured output and close the buffer
    270            return ob_get_clean();
    271        };
    272
    273        // import and process the view file
    274        $result $clean_room($file_override ?: $this->file_name$data $this->get_data());
    275
    276        // disable sanitization on objects that support it
    277        $this->unsanitize($data);
    278
    279        // return the result
    
  11. COREPATH/classes/view.php @ line 678
    673        {
    674            throw new \FuelException('You must set the file to use within your view before rendering');
    675        }
    676
    677        // combine local and global data and capture the output
    678        $return $this->process_file();
    679
    680        // restore the current language setting
    681        $this->active_language and \Config::set('language'$current_language);
    682
    683        // and the active request class
    
  12. COREPATH/classes/view.php @ line 227
    222     */
    223    public function __toString()
    224    {
    225        try
    226        {
    227            return $this->render();
    228        }
    229        catch (\Exception $e)
    230        {
    231            \Errorhandler::exception_handler($e);
    232
    
  13. APPPATH/classes/controller/base.php @ line 102
    97        return parent::after($response);
    98    }
    99
    100    public function compress_html($html) {
    101//        $html = preg_replace('/(<[a-z\\-]+)\\s+([^>]+>)/i', '$1 $2', $html);
    102        $html preg_replace('/^\\s+|\\s+$/m'''$html);
    103//        $html = preg_replace('/\\s+(<\\/?(?:area|base(?:font)?|blockquote|title|body'
    104//            . '|caption|cite|col(?:group)?|dd|dir|div|dl|dt|fieldset|form'
    105//            . '|iframe|h[1-6]|head|nav|section|header|footer|shr|html|legend|link|menu|meta|script'
    106//            . '|ul|ol|li|opt(?:group|ion)|p|param|t(?:able|body|head|d|h||r|foot|title)?'
    107//            . ')\\b[^>]*>)/i', '$1', $html);
    
  14. APPPATH/classes/controller/base.php @ line 95
    90                    ->order_by('order_in_footer''asc')
    91                    ->limit(20);
    92            });
    93
    94        empty($response)
    95            and $response $this->compress_html($this->template);
    96
    97        return parent::after($response);
    98    }
    99
    100    public function compress_html($html) {
    
  15. COREPATH/classes/request.php @ line 475
    470
    471                    $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance);
    472
    473                    $response $action->invokeArgs($this->controller_instance$this->method_params);
    474
    475                    $class->hasMethod('after') and $response $class->getMethod('after')->invoke($this->controller_instance$response);
    476
    477                    // fire any controller finished events
    478                    \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished''''none');
    479                }
    480                else
    
  16. DOCROOT/index.php @ line 88
    83// Boot the app
    84require APPPATH 'bootstrap.php';
    85
    86// Generate the request, execute it and send the output.
    87try {
    88    $response Request::forge()->execute()->response();
    89} catch (HttpNotFoundException $e) {
    90    $route array_key_exists('_404_'Router::$routes) ? Router::$routes['_404_']->translation Config::get('routes._404_');
    91
    92    if ($route instanceof Closure) {
    93        $response $route();
    

Prior Contents (show)