ErrorException (E_ERROR)
Invalid argument supplied for foreach() (View: /var/www/html/resources/ppsdma/views/image/detail.blade.php) ErrorException thrown with message "Invalid argument supplied for foreach() (View: /var/www/html/resources/ppsdma/views/image/detail.blade.php)" Stacktrace: #11 ErrorException in /var/www/html/storage/views/0d9d60204ca56d7859b285e9045e11a006164080.php:26 #10 Whoops\Exception\ErrorException in /var/www/html/storage/views/0d9d60204ca56d7859b285e9045e11a006164080.php:26 #9 Whoops\Run:handleError in /var/www/html/storage/views/0d9d60204ca56d7859b285e9045e11a006164080.php:26 #8 include in /var/www/html/vendor/xiaoler/blade/src/Engines/PhpEngine.php:42 #7 Xiaoler\Blade\Engines\PhpEngine:evaluatePath in /var/www/html/vendor/xiaoler/blade/src/Engines/CompilerEngine.php:60 #6 Xiaoler\Blade\Engines\CompilerEngine:get in /var/www/html/vendor/xiaoler/blade/src/View.php:132 #5 Xiaoler\Blade\View:getContents in /var/www/html/vendor/xiaoler/blade/src/View.php:115 #4 Xiaoler\Blade\View:renderContents in /var/www/html/vendor/xiaoler/blade/src/View.php:82 #3 Xiaoler\Blade\View:render in /var/www/html/app/libraries/Blade.php:61 #2 Blade:view in /var/www/html/modules/ppsdma/Images/controllers/ImagesController.php:28 #1 ImagesController:index in /var/www/html/.system/core/CodeIgniter.php:532 #0 require_once in /var/www/html/public/index.php:360
Stack frames (12)
11
ErrorException
/
storage
/
views
/
0d9d60204ca56d7859b285e9045e11a006164080.php
26
10
Whoops
\
Exception
\
ErrorException
/
storage
/
views
/
0d9d60204ca56d7859b285e9045e11a006164080.php
26
9
Whoops
\
Run
handleError
/
storage
/
views
/
0d9d60204ca56d7859b285e9045e11a006164080.php
26
8
include
/
vendor
/
xiaoler
/
blade
/
src
/
Engines
/
PhpEngine.php
42
7
Xiaoler
\
Blade
\
Engines
\
PhpEngine
evaluatePath
/
vendor
/
xiaoler
/
blade
/
src
/
Engines
/
CompilerEngine.php
60
6
Xiaoler
\
Blade
\
Engines
\
CompilerEngine
get
/
vendor
/
xiaoler
/
blade
/
src
/
View.php
132
5
Xiaoler
\
Blade
\
View
getContents
/
vendor
/
xiaoler
/
blade
/
src
/
View.php
115
4
Xiaoler
\
Blade
\
View
renderContents
/
vendor
/
xiaoler
/
blade
/
src
/
View.php
82
3
Xiaoler
\
Blade
\
View
render
/
app
/
libraries
/
Blade.php
61
2
Blade
view
/
modules
/
ppsdma
/
Images
/
controllers
/
ImagesController.php
28
1
ImagesController
index
/
.system
/
core
/
CodeIgniter.php
532
0
require_once
/
public
/
index.php
360
/
var
/
www
/
html
/
storage
/
views
/
0d9d60204ca56d7859b285e9045e11a006164080.php
        </ol>
    </div>
 
    <div class="container-fluid cstm_con">
        <div class="row">
            <div class="col-md-12">
                <div class="isi-wrp">
                    <h1 class="full-ln"><?php echo e($image->title); ?></h1>
                    <div id="gallery" style="display:none; margin: 0px auto">
                        <a href="">
                            <img alt="<?php echo e(addslashes($image->description)); ?>"
                            src="<?php echo e(addhttp($image->fileurl_sm)); ?>"
                            data-image="<?php echo e(addhttp($image->fileurl)); ?>"
                            data-image-mobile="<?php echo e(addhttp($image->fileurl_sm)); ?>"
                            data-thumb-mobile="<?php echo e(addhttp($image->fileurl_sm)); ?>"
                            data-description="<?php echo e($image->description); ?>"
                            style="display:none">
                        </a>
 
                        <?php $__currentLoopData = $image->imageToGallery; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php 
                                $item = $item->gallery;
                             ?>
                            <a href="">
                                <img alt="<?php echo e(addslashes($item->gallery_title)); ?>"
                                src="<?php echo e(addhttp($item->fileurl_sm)); ?>"
                                data-image="<?php echo e(addhttp($item->fileurl)); ?>"
                                data-image-mobile="<?php echo e(addhttp($item->fileurl_sm)); ?>"
                                data-thumb-mobile="<?php echo e(addhttp($item->fileurl_sm)); ?>"
                                data-description="<?php echo e($item->gallery_description); ?>"
                                style="display:none">
                            </a>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
 
                    <?php 
                        $item = $image;
                        $item->meta_description = $image->title;
                     ?>
                    <?php echo $__env->make('partials._btn-share', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Arguments
  1. "Invalid argument supplied for foreach() (View: /var/www/html/resources/ppsdma/views/image/detail.blade.php)"
    
/
var
/
www
/
html
/
storage
/
views
/
0d9d60204ca56d7859b285e9045e11a006164080.php
        </ol>
    </div>
 
    <div class="container-fluid cstm_con">
        <div class="row">
            <div class="col-md-12">
                <div class="isi-wrp">
                    <h1 class="full-ln"><?php echo e($image->title); ?></h1>
                    <div id="gallery" style="display:none; margin: 0px auto">
                        <a href="">
                            <img alt="<?php echo e(addslashes($image->description)); ?>"
                            src="<?php echo e(addhttp($image->fileurl_sm)); ?>"
                            data-image="<?php echo e(addhttp($image->fileurl)); ?>"
                            data-image-mobile="<?php echo e(addhttp($image->fileurl_sm)); ?>"
                            data-thumb-mobile="<?php echo e(addhttp($image->fileurl_sm)); ?>"
                            data-description="<?php echo e($image->description); ?>"
                            style="display:none">
                        </a>
 
                        <?php $__currentLoopData = $image->imageToGallery; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php 
                                $item = $item->gallery;
                             ?>
                            <a href="">
                                <img alt="<?php echo e(addslashes($item->gallery_title)); ?>"
                                src="<?php echo e(addhttp($item->fileurl_sm)); ?>"
                                data-image="<?php echo e(addhttp($item->fileurl)); ?>"
                                data-image-mobile="<?php echo e(addhttp($item->fileurl_sm)); ?>"
                                data-thumb-mobile="<?php echo e(addhttp($item->fileurl_sm)); ?>"
                                data-description="<?php echo e($item->gallery_description); ?>"
                                style="display:none">
                            </a>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
 
                    <?php 
                        $item = $image;
                        $item->meta_description = $image->title;
                     ?>
                    <?php echo $__env->make('partials._btn-share', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Arguments
  1. "Invalid argument supplied for foreach()"
    
Exception message: Invalid argument supplied for foreach()
/
var
/
www
/
html
/
storage
/
views
/
0d9d60204ca56d7859b285e9045e11a006164080.php
        </ol>
    </div>
 
    <div class="container-fluid cstm_con">
        <div class="row">
            <div class="col-md-12">
                <div class="isi-wrp">
                    <h1 class="full-ln"><?php echo e($image->title); ?></h1>
                    <div id="gallery" style="display:none; margin: 0px auto">
                        <a href="">
                            <img alt="<?php echo e(addslashes($image->description)); ?>"
                            src="<?php echo e(addhttp($image->fileurl_sm)); ?>"
                            data-image="<?php echo e(addhttp($image->fileurl)); ?>"
                            data-image-mobile="<?php echo e(addhttp($image->fileurl_sm)); ?>"
                            data-thumb-mobile="<?php echo e(addhttp($image->fileurl_sm)); ?>"
                            data-description="<?php echo e($image->description); ?>"
                            style="display:none">
                        </a>
 
                        <?php $__currentLoopData = $image->imageToGallery; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php 
                                $item = $item->gallery;
                             ?>
                            <a href="">
                                <img alt="<?php echo e(addslashes($item->gallery_title)); ?>"
                                src="<?php echo e(addhttp($item->fileurl_sm)); ?>"
                                data-image="<?php echo e(addhttp($item->fileurl)); ?>"
                                data-image-mobile="<?php echo e(addhttp($item->fileurl_sm)); ?>"
                                data-thumb-mobile="<?php echo e(addhttp($item->fileurl_sm)); ?>"
                                data-description="<?php echo e($item->gallery_description); ?>"
                                style="display:none">
                            </a>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
 
                    <?php 
                        $item = $image;
                        $item->meta_description = $image->title;
                     ?>
                    <?php echo $__env->make('partials._btn-share', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Arguments
  1. 2
    
  2. "Invalid argument supplied for foreach()"
    
  3. "/var/www/html/storage/views/0d9d60204ca56d7859b285e9045e11a006164080.php"
    
  4. 26
    
  5. array:10 [
      "__path" => "/var/www/html//storage/views/0d9d60204ca56d7859b285e9045e11a006164080.php"
      "__data" => array:6 [
        "__env" => Factory {#1}
        "_ci" => ImagesController {#2}
        "image_type" => "inovasi"
        "image_id" => "7"
        "images" => array:19 [
          0 => {#3}
          1 => {#4}
          2 => {#5}
          3 => {#6}
          4 => {#7}
          5 => {#8}
          6 => {#9}
          7 => {#10}
          8 => {#11}
          9 => {#12}
          10 => {#13}
          11 => {#14}
          12 => {#15}
          13 => {#16}
          14 => {#17}
          15 => {#18}
          16 => {#19}
          17 => {#20}
          18 => {#21}
        ]
        "image" => null
      ]
      "obLevel" => 1
      "__env" => Factory {#1}
      "_ci" => ImagesController {#2}
      "image_type" => "inovasi"
      "image_id" => "7"
      "images" => array:19 [
        0 => {#3}
        1 => {#4}
        2 => {#5}
        3 => {#6}
        4 => {#7}
        5 => {#8}
        6 => {#9}
        7 => {#10}
        8 => {#11}
        9 => {#12}
        10 => {#13}
        11 => {#14}
        12 => {#15}
        13 => {#16}
        14 => {#17}
        15 => {#18}
        16 => {#19}
        17 => {#20}
        18 => {#21}
      ]
      "image" => null
      "__currentLoopData" => null
    ]
    
/
var
/
www
/
html
/
vendor
/
xiaoler
/
blade
/
src
/
Engines
/
PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
Arguments
  1. "/var/www/html/storage/views/0d9d60204ca56d7859b285e9045e11a006164080.php"
    
/
var
/
www
/
html
/
vendor
/
xiaoler
/
blade
/
src
/
Engines
/
CompilerEngine.php
     * @param  array   $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        $compiled = $this->compiler->getCompiledPath($path);
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($compiled, $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
Arguments
  1. "/var/www/html//storage/views/0d9d60204ca56d7859b285e9045e11a006164080.php"
    
  2. array:6 [
      "__env" => Factory {}
      "_ci" => ImagesController {}
      "image_type" => "inovasi"
      "image_id" => "7"
      "images" => array:19 [
        0 => {}
        1 => {}
        2 => {}
        3 => {}
        4 => {}
        5 => {}
        6 => {}
        7 => {}
        8 => {}
        9 => {}
        10 => {}
        11 => {}
        12 => {}
        13 => {}
        14 => {}
        15 => {}
        16 => {}
        17 => {}
        18 => {}
      ]
      "image" => null
    ]
    
/
var
/
www
/
html
/
vendor
/
xiaoler
/
blade
/
src
/
View.php
        $this->factory->incrementRender();
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    protected function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
Arguments
  1. "/var/www/html/resources/ppsdma/views/image/detail.blade.php"
    
  2. array:6 [
      "__env" => Factory {}
      "_ci" => ImagesController {}
      "image_type" => "inovasi"
      "image_id" => "7"
      "images" => array:19 [
        0 => {}
        1 => {}
        2 => {}
        3 => {}
        4 => {}
        5 => {}
        6 => {}
        7 => {}
        8 => {}
        9 => {}
        10 => {}
        11 => {}
        12 => {}
        13 => {}
        14 => {}
        15 => {}
        16 => {}
        17 => {}
        18 => {}
      ]
      "image" => null
    ]
    
/
var
/
www
/
html
/
vendor
/
xiaoler
/
blade
/
src
/
View.php
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/
var
/
www
/
html
/
vendor
/
xiaoler
/
blade
/
src
/
View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? call_user_func($callback, $this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
/
var
/
www
/
html
/
app
/
libraries
/
Blade.php
 
    public function renders($path, $vars = [])
    {
        echo $this->factory->make($path, $vars);
    }
 
    public function exists($path)
    {
        return $this->factory->exists($path);
    }
 
    public function share($key, $value)
    {
        return $this->factory->share($key, $value);
    }
 
    // just convert to renders
    public function view($path, $vars = [], $return = FALSE)
    {
        $view = $this->factory->make($path, $vars)->render();
        if ($return) {
            return $view;
        } else {
            echo $view;
        }
    }
 
    private function loadModules(&$path)
    {
        // Include routes every modules
        $modules_locations = config_item('modules_locations') ? config_item('modules_locations') : FALSE;
        if(!$modules_locations)
        {
            $modules_locations = APPPATH . 'modules/';
            if(is_dir($modules_locations))
            {
                $modules_locations = array($modules_locations => '../modules/');
            }
            else
            {
/
var
/
www
/
html
/
modules
/
ppsdma
/
Images
/
controllers
/
ImagesController.php
        $this->load->model('image_m');
        $this->load->model('imageToContent_m');
        $this->load->model('imageToGallery_m');
        $this->load->model('Malpages/page_m');
    }
 
    public function index($image_type = '', $image_id = NULL)
    {
        $data = [
            'image_type' => $image_type,
            'image_id' => $image_id,
            'images' => $this->image_m->getLists(['image_type'=>$image_type, 'status'=>'live', 'latest'=>TRUE]),
        ];
 
        if (($image_type == 'publikasi' || $image_type == 'inovasi') && $image_id != NULL) {
            $data['image'] = $this->image_m
                ->with('imageToContent')
                ->with('imageToGallery')
                ->get($image_id);
            $this->blade->view('image.detail', $data);
        } else {
            $this->blade->view('image.index', $data);
        }
    }
}
 
Arguments
  1. "image.detail"
    
  2. array:4 [
      "image_type" => "inovasi"
      "image_id" => "7"
      "images" => array:19 [
        0 => {}
        1 => {}
        2 => {}
        3 => {}
        4 => {}
        5 => {}
        6 => {}
        7 => {}
        8 => {}
        9 => {}
        10 => {}
        11 => {}
        12 => {}
        13 => {}
        14 => {}
        15 => {}
        16 => {}
        17 => {}
        18 => {}
      ]
      "image" => null
    ]
    
/
var
/
www
/
html
/
.system
/
core
/
CodeIgniter.php
 * ------------------------------------------------------
 */
    // Mark a start point so we can benchmark the controller
    $BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');
 
    $CI = new $class();
 
/*
 * ------------------------------------------------------
 *  Is there a "post_controller_constructor" hook?
 * ------------------------------------------------------
 */
    $EXT->call_hook('post_controller_constructor');
 
/*
 * ------------------------------------------------------
 *  Call the requested method
 * ------------------------------------------------------
 */
    call_user_func_array(array(&$CI, $method), $params);
 
    // Mark a benchmark end point
    $BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_end');
 
/*
 * ------------------------------------------------------
 *  Is there a "post_controller" hook?
 * ------------------------------------------------------
 */
    $EXT->call_hook('post_controller');
 
/*
 * ------------------------------------------------------
 *  Send the final rendered output to the browser
 * ------------------------------------------------------
 */
    if ($EXT->call_hook('display_override') === FALSE)
    {
        $OUT->_display();
    }
Arguments
  1. "inovasi"
    
  2. "7"
    
/
var
/
www
/
html
/
public
/
index.php
        );
    }
    else
    {
        header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
        echo 'Your application folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF;
        exit(3); // EXIT_CONFIG
    }
 
    define('ROOTPATH', $root_folder.DIRECTORY_SEPARATOR);
/*
 * --------------------------------------------------------------------
 * LOAD THE BOOTSTRAP FILE
 * --------------------------------------------------------------------
 *
 * And away we go...
 */
 
 
require_once BASEPATH.'core/CodeIgniter.php';
 
Arguments
  1. "/var/www/html/.system/core/CodeIgniter.php"
    

Environment & details:

empty
empty
empty
empty
Key Value
__ci_last_regenerate
1711720628
Key Value
REDIRECT_UNIQUE_ID
"ZgbItF8JoCf7RdSx@9E7UgAAAIM"
REDIRECT_CI_HTTP_SECURE
"true"
REDIRECT_STATUS
"200"
UNIQUE_ID
"ZgbItF8JoCf7RdSx@9E7UgAAAIM"
CI_HTTP_SECURE
"true"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"claudebot"
HTTP_REFERER
"http://ppsdmaparatur.esdm.go.id/inovasi/7"
HTTP_HOST
"ppsdmaparatur.esdm.go.id"
HTTP_X_FORWARDED_FOR
"44.212.93.133"
HTTP_CONNECTION
"close"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache/2.4.43 (codeit) OpenSSL/1.1.1g"
SERVER_NAME
"ppsdmaparatur.esdm.go.id"
SERVER_ADDR
"172.16.22.174"
SERVER_PORT
"80"
REMOTE_ADDR
"172.16.16.201"
DOCUMENT_ROOT
"/var/www/html/public"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/html/public"
SERVER_ADMIN
"root@localhost"
SCRIPT_FILENAME
"/var/www/html/public/index.php"
REMOTE_PORT
"39008"
REDIRECT_URL
"/inovasi/7"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/inovasi/7"
SCRIPT_NAME
"/index.php"
PATH_INFO
"/inovasi/7"
PATH_TRANSLATED
"redirect:/index.php/inovasi/7/7"
PHP_SELF
"/index.php/inovasi/7"
REQUEST_TIME_FLOAT
1711720628.211
REQUEST_TIME
1711720628
empty
0. Whoops\Handler\PrettyPageHandler