goteo-legacy
goteo-legacy copied to clipboard
can't upload banner
I am trying to upload the banner of the project to show on the homepage, but got this error
PDOException Object ( [message:protected] => SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'active' cannot be null [string:Exception:private] => [code:protected] => 23000 [file:protected] => /var/www/crowdfund/public_html_goteo2/core/model.php [line:protected] => 95 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/crowdfund/public_html_goteo2/core/model.php [line] => 95 [function] => execute [class] => PDOStatement [type] => -> [args] => Array ( [0] => Array ( [:id] => [:node] => goteo [:title] => [:description] => [:url] => [:project] => el-nuevo-proyecto-de-test [:image] => 11 [:order] => 1 [:active] => )
)
)
[1] => Array
(
[file] => /var/www/crowdfund/public_html_goteo2/model/banner.php
[line] => 221
[function] => query
[class] => Goteo\Core\Model
[type] => ::
[args] => Array
(
[0] => REPLACE INTO banner SET `id` = :id , `node` = :node , `title` = :title , `description` = :description , `url` = :url , `project` = :project , `image` = :image , `order` = :order , `active` = :active
[1] => Array
(
[:id] =>
[:node] => goteo
[:title] =>
[:description] =>
[:url] =>
[:project] => el-nuevo-proyecto-de-test
[:image] => 11
[:order] => 1
[:active] =>
)
)
)
[2] => Array
(
[file] => /var/www/crowdfund/public_html_goteo2/controller/admin/banners.php
[line] => 59
[function] => save
[class] => Goteo\Model\Banner
[type] => ->
[args] => Array
(
[0] => Array
(
)
)
)
[3] => Array
(
[file] => /var/www/crowdfund/public_html_goteo2/controller/admin.php
[line] => 334
[function] => process
[class] => Goteo\Controller\Admin\Banners
[type] => ::
[args] => Array
(
[0] => list
[1] =>
[2] => Array
(
)
[3] =>
)
)
[4] => Array
(
[function] => index
[class] => Goteo\Controller\Admin
[type] => ->
[args] => Array
(
[0] => banners
)
)
[5] => Array
(
[file] => /var/www/crowdfund/public_html_goteo2/index.php
[line] => 174
[function] => invokeArgs
[class] => ReflectionMethod
[type] => ->
[args] => Array
(
[0] => Goteo\Controller\Admin Object
(
)
[1] => Array
(
[0] => banners
)
)
)
)
[previous:Exception:private] =>
[errorInfo] => Array
(
[0] => 23000
[1] => 1048
[2] => Column 'active' cannot be null
)
)