yii\db\Exception#1
(
    [*:
message] => 'SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type integer: \"\"
The SQL being executed was: SELECT * FROM \"store_product\" WHERE (\"product_id\"=\'\') AND (\"connected\"=TRUE) AND (\"cap\" > 0) ORDER BY \"price\"'
    
[Exception:string] => ''
    
[*:code] => '22P02'
    
[*:file] => '/var/www/html/david/vendor/yiisoft/yii2/db/Schema.php'
    
[*:line] => 676
    
[Exception:trace] => [
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 1325
            
'function' => 'convertException'
            'class' 
=> 'yii\\db\\Schema'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 1186
            
'function' => 'internalExecute'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 431
            
'function' => 'queryInternal'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/Query.php'
            'line' 
=> 287
            
'function' => 'queryOne'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/ActiveQuery.php'
            'line' 
=> 304
            
'function' => 'one'
            'class' 
=> 'yii\\db\\Query'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/html/david/modules/shop/models/Product.php'
            'line' 
=> 595
            
'function' => 'one'
            'class' 
=> 'yii\\db\\ActiveQuery'
            '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' 
=> '->'
        
]
        
10 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/ListView.php'
            'line' 
=> 191
            
'function' => 'render'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
11 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/ListView.php'
            'line' 
=> 124
            
'function' => 'renderItem'
            'class' 
=> 'yii\\widgets\\ListView'
            'type' 
=> '->'
        
]
        
12 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/BaseListView.php'
            'line' 
=> 160
            
'function' => 'renderItems'
            'class' 
=> 'yii\\widgets\\ListView'
            'type' 
=> '->'
        
]
        
13 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/BaseListView.php'
            'line' 
=> 135
            
'function' => 'renderSection'
            'class' 
=> 'yii\\widgets\\BaseListView'
            'type' 
=> '->'
        
]
        
14 => [
            
'function' => 'yii\\widgets\\{closure}'
            'class' 
=> 'yii\\widgets\\BaseListView'
            'type' 
=> '->'
        
]
        
15 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/BaseListView.php'
            'line' 
=> 138
            
'function' => 'preg_replace_callback'
        
]
        
16 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Widget.php'
            'line' 
=> 146
            
'function' => 'run'
            'class' 
=> 'yii\\widgets\\BaseListView'
            'type' 
=> '->'
        
]
        
17 => [
            
'file' => '/var/www/html/david/modules/shop/views/shop/collections.php'
            'line' 
=> 167
            
'function' => 'widget'
            'class' 
=> 'yii\\base\\Widget'
            'type' 
=> '::'
        
]
        
18 => [
            
'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'
        
]
        
19 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
            'line' 
=> 258
            
'function' => 'renderPhpFile'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
20 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
            'line' 
=> 157
            
'function' => 'renderFile'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
21 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Controller.php'
            'line' 
=> 407
            
'function' => 'render'
            'class' 
=> 'yii\\base\\View'
            'type' 
=> '->'
        
]
        
22 => [
            
'file' => '/var/www/html/david/modules/shop/controllers/ShopController.php'
            'line' 
=> 525
            
'function' => 'render'
            'class' 
=> 'yii\\base\\Controller'
            'type' 
=> '->'
        
]
        
23 => [
            
'function' => 'actionCollections'
            'class' 
=> 'app\\modules\\shop\\controllers\\ShopController'
            'type' 
=> '->'
        
]
        
24 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/InlineAction.php'
            'line' 
=> 57
            
'function' => 'call_user_func_array'
        
]
        
25 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Controller.php'
            'line' 
=> 178
            
'function' => 'runWithParams'
            'class' 
=> 'yii\\base\\InlineAction'
            'type' 
=> '->'
        
]
        
26 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Module.php'
            'line' 
=> 552
            
'function' => 'runAction'
            'class' 
=> 'yii\\base\\Controller'
            'type' 
=> '->'
        
]
        
27 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/web/Application.php'
            'line' 
=> 103
            
'function' => 'runAction'
            'class' 
=> 'yii\\base\\Module'
            'type' 
=> '->'
        
]
        
28 => [
            
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Application.php'
            'line' 
=> 384
            
'function' => 'handleRequest'
            'class' 
=> 'yii\\web\\Application'
            'type' 
=> '->'
        
]
        
29 => [
            
'file' => '/var/www/html/david/web/index.php'
            'line' 
=> 13
            
'function' => 'run'
            'class' 
=> 'yii\\base\\Application'
            'type' 
=> '->'
        
]
    ]
    [
Exception:previous] => PDOException#2
    
(
        [*:
message] => 'SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type integer: \"\"'
        
[Exception:string] => ''
        
[*:code] => '22P02'
        
[*:file] => '/var/www/html/david/vendor/yiisoft/yii2/db/Command.php'
        
[*:line] => 1320
        
[Exception:trace] => [
            
=> [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 1320
                
'function' => 'execute'
                'class' 
=> 'PDOStatement'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 1186
                
'function' => 'internalExecute'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 431
                
'function' => 'queryInternal'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/Query.php'
                'line' 
=> 287
                
'function' => 'queryOne'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/db/ActiveQuery.php'
                'line' 
=> 304
                
'function' => 'one'
                'class' 
=> 'yii\\db\\Query'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/html/david/modules/shop/models/Product.php'
                'line' 
=> 595
                
'function' => 'one'
                'class' 
=> 'yii\\db\\ActiveQuery'
                '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' 
=> '->'
            
]
            
10 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/ListView.php'
                'line' 
=> 191
                
'function' => 'render'
                'class' 
=> 'yii\\base\\View'
                'type' 
=> '->'
            
]
            
11 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/ListView.php'
                'line' 
=> 124
                
'function' => 'renderItem'
                'class' 
=> 'yii\\widgets\\ListView'
                'type' 
=> '->'
            
]
            
12 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/BaseListView.php'
                'line' 
=> 160
                
'function' => 'renderItems'
                'class' 
=> 'yii\\widgets\\ListView'
                'type' 
=> '->'
            
]
            
13 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/BaseListView.php'
                'line' 
=> 135
                
'function' => 'renderSection'
                'class' 
=> 'yii\\widgets\\BaseListView'
                'type' 
=> '->'
            
]
            
14 => [
                
'function' => 'yii\\widgets\\{closure}'
                'class' 
=> 'yii\\widgets\\BaseListView'
                'type' 
=> '->'
            
]
            
15 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/widgets/BaseListView.php'
                'line' 
=> 138
                
'function' => 'preg_replace_callback'
            
]
            
16 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Widget.php'
                'line' 
=> 146
                
'function' => 'run'
                'class' 
=> 'yii\\widgets\\BaseListView'
                'type' 
=> '->'
            
]
            
17 => [
                
'file' => '/var/www/html/david/modules/shop/views/shop/collections.php'
                'line' 
=> 167
                
'function' => 'widget'
                'class' 
=> 'yii\\base\\Widget'
                'type' 
=> '::'
            
]
            
18 => [
                
'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'
            
]
            
19 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
                'line' 
=> 258
                
'function' => 'renderPhpFile'
                'class' 
=> 'yii\\base\\View'
                'type' 
=> '->'
            
]
            
20 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/View.php'
                'line' 
=> 157
                
'function' => 'renderFile'
                'class' 
=> 'yii\\base\\View'
                'type' 
=> '->'
            
]
            
21 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Controller.php'
                'line' 
=> 407
                
'function' => 'render'
                'class' 
=> 'yii\\base\\View'
                'type' 
=> '->'
            
]
            
22 => [
                
'file' => '/var/www/html/david/modules/shop/controllers/ShopController.php'
                'line' 
=> 525
                
'function' => 'render'
                'class' 
=> 'yii\\base\\Controller'
                'type' 
=> '->'
            
]
            
23 => [
                
'function' => 'actionCollections'
                'class' 
=> 'app\\modules\\shop\\controllers\\ShopController'
                'type' 
=> '->'
            
]
            
24 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/InlineAction.php'
                'line' 
=> 57
                
'function' => 'call_user_func_array'
            
]
            
25 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Controller.php'
                'line' 
=> 178
                
'function' => 'runWithParams'
                'class' 
=> 'yii\\base\\InlineAction'
                'type' 
=> '->'
            
]
            
26 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Module.php'
                'line' 
=> 552
                
'function' => 'runAction'
                'class' 
=> 'yii\\base\\Controller'
                'type' 
=> '->'
            
]
            
27 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/web/Application.php'
                'line' 
=> 103
                
'function' => 'runAction'
                'class' 
=> 'yii\\base\\Module'
                'type' 
=> '->'
            
]
            
28 => [
                
'file' => '/var/www/html/david/vendor/yiisoft/yii2/base/Application.php'
                'line' 
=> 384
                
'function' => 'handleRequest'
                'class' 
=> 'yii\\web\\Application'
                'type' 
=> '->'
            
]
            
29 => [
                
'file' => '/var/www/html/david/web/index.php'
                'line' 
=> 13
                
'function' => 'run'
                'class' 
=> 'yii\\base\\Application'
                'type' 
=> '->'
            
]
        ]
        [
Exception:previous] => null
        
[errorInfo] => [
            
=> '22P02'
            
=> 7
            2 
=> 'ERROR:  invalid input syntax for type integer: \"\"'
        
]
    )
    [
errorInfo] => [
        
=> '22P02'
        
=> 7
        2 
=> 'ERROR:  invalid input syntax for type integer: \"\"'
    
]
)