PHP warning

Invalid argument supplied for foreach()

/home/scannex/domains/scannex.co.il/public_html/protected/views/front/wallConcept/product.php(54)

42 
43 <?php
44     $list_images = unserialize($concept->list_images);
45 ?>
46 <div class="images-parts">
47     <div class="container">
48         <div class="row">
49             <div class="col-md-12">
50                 <h3>התמונות שממנו מורכב הקונספט</h3>
51             </div>
52         </div>
53         <?php $i = 0; ?>
54         <?php foreach($list_images as $image): ?>
55             <?php $dimensions = end( explode('-', $image) ); ?>
56             <?php $dimensions = reset(explode('.', $dimensions)); ?>
57             <?php if($i == 0): ?><div class="row"><?php endif; ?>
58             <div class="col-md-4 text-center item-view">
59                 <img src="<?php print Yii::app()->createAbsoluteUrl('/wall-concepts/'.$image);?>" class="img-responsive">
60                 <span class="dimensions"><?php print $dimensions; ?> ס"מ</span>
61             </div>
62              <?php $i++; ?>
63             <?php if($i == 3): $i = 0; ?> </div> <?php endif ;?>
64         <?php endforeach; ?>
65         <?php if($i > 0): ?> </div> <?php endif; ?>
66 

Stack Trace

#4
+
 /home/scannex/domains/scannex.co.il/public_html/protected/controllers/front/WallConceptController.php(33): CController->render("product", array("concept" => null, "currentCoupon" => stdClass, "imageStore" => ImageStore))
28         $this->getCurrentCouopn();
29         $imageStore = new ImageStore();
30         $wallConcept = WallConcept::model()->findByPk($id);
31         $this->render('product', array('concept' => $wallConcept,
32                                         'currentCoupon' => $this->currentCoupon,
33                                         'imageStore' => $imageStore));
34     }
35 
36     public function actionProcess() {
37         $wall_concept_id = uniqid();
38 
#14
+
 /home/scannex/domains/scannex.co.il/public_html/protected/components/WebApplicationEndBehavior.php(25): CApplication->run()
20         // Attach the changeModulePaths event handler
21         // and raise it.
22         $this->onModuleCreate = array($this, 'changeModulePaths');
23         $this->onModuleCreate(new CEvent($this->owner));
24  
25         $this->owner->run(); // Run application.
26     }
27  
28     // This event should be raised when CWebApplication
29     // or CWebModule instances are being initialized.
30     public function onModuleCreate($event)
#17
+
 /home/scannex/domains/scannex.co.il/public_html/index.php(13): CComponent->__call("runEnd", array("front"))
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->runEnd('front');
2024-03-28 22:53:38 Apache/6.6.6 Yii Framework/1.1.12