yii\base\ErrorException#1
(
    [*:
message] => 'Attempt to read property \"product\" on null'
    
[Exception:string] => ''
    
[*:code] => 2
    
[*:file] => '/var/www/html/david/modules/shop/models/Product.php'
    
[*:line] => 601
    
[Exception:trace] => [
        
=> [
            
'file' => '/var/www/html/david/modules/shop/models/Product.php'
            'line' 
=> 601
            
'function' => 'handleError'
            'class' 
=> 'yii\\base\\ErrorHandler'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/modules/shop/views/shop/_product.php'
            'line' 
=> 52
            
'function' => 'getMainPrice'
            'class' 
=> 'app\\modules\\shop\\models\\Product'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
            'line' 
=> 348
            
'args' => [
                
=> '/var/www/html/david/modules/shop/views/shop/_product.php'
            
]
            
'function' => 'require'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
            'line' 
=> 258
            
'function' => 'renderPhpFile'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
            'line' 
=> 157
            
'function' => 'renderFile'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/ListView.php'
            'line' 
=> 191
            
'function' => 'render'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/ListView.php'
            'line' 
=> 124
            
'function' => 'renderItem'
            'class' 
=> 'yii\\widgets\\ListView'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/BaseListView.php'
            'line' 
=> 160
            
'function' => 'renderItems'
            'class' 
=> 'yii\\widgets\\ListView'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/BaseListView.php'
            'line' 
=> 135
            
'function' => 'renderSection'
            'class' 
=> 'yii\\widgets\\BaseListView'
            'type' 
=> '->'
        
]
        
=> [
            
'function' => 'yii\\widgets\\{closure}'
            'class' 
=> 'yii\\widgets\\BaseListView'
            'type' 
=> '->'
        
]
        
10 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/BaseListView.php'
            'line' 
=> 138
            
'function' => 'preg_replace_callback'
        
]
        
11 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Widget.php'
            'line' 
=> 146
            
'function' => 'run'
            'class' 
=> 'yii\\widgets\\BaseListView'
            'type' 
=> '->'
        
]
        
12 => [
            
'file' => '/var/www/html/david/modules/shop/views/shop/collections.php'
            'line' 
=> 167
            
'function' => 'widget'
            'class' 
=> 'yii\\base\\Widget'
            'type' 
=> '::'
        
]
        
13 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
            'line' 
=> 348
            
'args' => [
                
=> '/var/www/html/david/modules/shop/views/shop/collections.php'
            
]
            
'function' => 'require'
        
]
        
14 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
            'line' 
=> 258
            
'function' => 'renderPhpFile'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
15 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
            'line' 
=> 157
            
'function' => 'renderFile'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
16 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Controller.php'
            'line' 
=> 407
            
'function' => 'render'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
17 => [
            
'file' => '/var/www/html/david/modules/shop/controllers/ShopController.php'
            'line' 
=> 540
            
'function' => 'render'
            'class' 
=> 'yii\\base\\Controller'
            'type' 
=> '->'
        
]
        
18 => [
            
'function' => 'actionCollections'
            'class' 
=> 'app\\modules\\shop\\controllers\\ShopController'
            'type' 
=> '->'
        
]
        
19 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/InlineAction.php'
            'line' 
=> 57
            
'function' => 'call_user_func_array'
        
]
        
20 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Controller.php'
            'line' 
=> 178
            
'function' => 'runWithParams'
            'class' 
=> 'yii\\base\\InlineAction'
            'type' 
=> '->'
        
]
        
21 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Module.php'
            'line' 
=> 552
            
'function' => 'runAction'
            'class' 
=> 'yii\\base\\Controller'
            'type' 
=> '->'
        
]
        
22 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/web/Application.php'
            'line' 
=> 103
            
'function' => 'runAction'
            'class' 
=> 'yii\\base\\Module'
            'type' 
=> '->'
        
]
        
23 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Application.php'
            'line' 
=> 384
            
'function' => 'handleRequest'
            'class' 
=> 'yii\\web\\Application'
            'type' 
=> '->'
        
]
        
24 => [
            
'file' => '/var/www/html/david/web/index.php'
            'line' 
=> 13
            
'function' => 'run'
            'class' 
=> 'yii\\base\\Application'
            'type' 
=> '->'
        
]
    ]
    [
Exception:previous] => null
    
[*:severity] => 2
)