Warning (512) : SQL Error: 1054: Unknown column 'Production.image_id' in 'on clause' [CORE/cake/libs/model/datasources/dbo_source.php , line 525 ]
Code |
Context $sql = "SELECT `Production`.`id`, `Production`.`image1_id`, `Production`.`image2_id`, `Production`.`image3_id`, `Production`.`image4_id`, `Production`.`video_id`, `Production`.`script_id`, `Production`.`article_id`, `Production`.`title`, `Production`.`secondary_title`, `Production`.`author`, `Production`.`awards`, `Production`.`description`, `Production`.`show_times`, `Production`.`url_prefix`, `Production`.`meta_description`, `Production`.`meta_keywords`, `Production`.`created`, `Production`.`modified`, `Production`.`active`, `Image`.`id`, `Image`.`name`, `Image`.`type`, `Image`.`size`, `Image`.`created`, `Image`.`modified`, `Video`.`id`, `Video`.`name`, `Video`.`type`, `Video`.`size`, `Video`.`created`, `Video`.`modified`, `Script`.`id`, `Script`.`name`, `Script`.`type`, `Script`.`size`, `Script`.`created`, `Script`.`modified`, `Article`.`id`, `Article`.`name`, `Article`.`type`, `Article`.`size`, `Article`.`created`, `Article`.`modified` FROM `cake_productions` AS `Production` LEFT JOIN `cake_uploads` AS `Image` ON (`Production`.`image_id` = `Image`.`id`) LEFT JOIN `cake_uploads` AS `Video` ON (`Production`.`video_id` = `Video`.`id`) LEFT JOIN `cake_uploads` AS `Script` ON (`Production`.`script_id` = `Script`.`id`) LEFT JOIN `cake_uploads` AS `Article` ON (`Production`.`article_id` = `Article`.`id`) WHERE `Production`.`active` = 1 "
$error = "1054: Unknown column 'Production.image_id' in 'on clause'"
$out = null $out = null;
if ($error) {
trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 525
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 201
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 336
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 653
Model::find() - CORE/cake/libs/model/model.php, line 1988
PagesController::home() - APP/controllers/pages_controller.php, line 32
Object::dispatchMethod() - CORE/cake/libs/object.php, line 116
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88 Query: SELECT `Production`.`id`, `Production`.`image1_id`, `Production`.`image2_id`, `Production`.`image3_id`, `Production`.`image4_id`, `Production`.`video_id`, `Production`.`script_id`, `Production`.`article_id`, `Production`.`title`, `Production`.`secondary_title`, `Production`.`author`, `Production`.`awards`, `Production`.`description`, `Production`.`show_times`, `Production`.`url_prefix`, `Production`.`meta_description`, `Production`.`meta_keywords`, `Production`.`created`, `Production`.`modified`, `Production`.`active`, `Image`.`id`, `Image`.`name`, `Image`.`type`, `Image`.`size`, `Image`.`created`, `Image`.`modified`, `Video`.`id`, `Video`.`name`, `Video`.`type`, `Video`.`size`, `Video`.`created`, `Video`.`modified`, `Script`.`id`, `Script`.`name`, `Script`.`type`, `Script`.`size`, `Script`.`created`, `Script`.`modified`, `Article`.`id`, `Article`.`name`, `Article`.`type`, `Article`.`size`, `Article`.`created`, `Article`.`modified` FROM `cake_productions` AS `Production` LEFT JOIN `cake_uploads` AS `Image` ON (`Production`.`image_id` = `Image`.`id`) LEFT JOIN `cake_uploads` AS `Video` ON (`Production`.`video_id` = `Video`.`id`) LEFT JOIN `cake_uploads` AS `Script` ON (`Production`.`script_id` = `Script`.`id`) LEFT JOIN `cake_uploads` AS `Article` ON (`Production`.`article_id` = `Article`.`id`) WHERE `Production`.`active` = 1
Home | Third World Bun Fight
Home
Warning (2) : Invalid argument supplied for foreach() [APP/views/pages/home.ctp , line 17 ]
Code |
Context $___viewFn = "/nfs/c03/h03/mnt/53231/domains/thorks.com/html/app/views/pages/home.ctp"
$___dataForView = array(
"pages" => array(
array(),
array(),
array(),
array(),
array()
),
"metaDescription" => null,
"metaKeywords" => null,
"page" => array(
"Page" => array()
),
"productions" => false
)
$loadHelpers = true
$cached = false
$loadedHelpers = array(
"Html" => HtmlHelper
HtmlHelper::$tags = array
HtmlHelper::$base = ""
HtmlHelper::$here = "/"
HtmlHelper::$params = array
HtmlHelper::$action = "home"
HtmlHelper::$data = NULL
HtmlHelper::$_crumbs = array
HtmlHelper::$__docTypes = array
HtmlHelper::$helpers = NULL
HtmlHelper::$webroot = "/"
HtmlHelper::$themeWeb = NULL
HtmlHelper::$plugin = NULL
HtmlHelper::$namedArgs = NULL
HtmlHelper::$argSeparator = NULL
HtmlHelper::$validationErrors = NULL
HtmlHelper::$__tainted = NULL
HtmlHelper::$__cleaned = NULL
HtmlHelper::$_log = NULL,
"Form" => FormHelper
FormHelper::$helpers = array
FormHelper::$fieldset = array
FormHelper::$__options = array
FormHelper::$fields = array
FormHelper::$requestType = NULL
FormHelper::$base = ""
FormHelper::$webroot = "/"
FormHelper::$themeWeb = NULL
FormHelper::$here = "/"
FormHelper::$params = array
FormHelper::$action = "home"
FormHelper::$plugin = NULL
FormHelper::$data = NULL
FormHelper::$namedArgs = NULL
FormHelper::$argSeparator = NULL
FormHelper::$validationErrors = NULL
FormHelper::$tags = array
FormHelper::$__tainted = NULL
FormHelper::$__cleaned = NULL
FormHelper::$_log = NULL
FormHelper::$Html = HtmlHelper object,
"Javascript" => JavascriptHelper
JavascriptHelper::$useNative = true
JavascriptHelper::$enabled = true
JavascriptHelper::$safe = false
JavascriptHelper::$tags = array
JavascriptHelper::$_blockOptions = array
JavascriptHelper::$_cachedEvents = array
JavascriptHelper::$_cacheEvents = false
JavascriptHelper::$_cacheToFile = false
JavascriptHelper::$_cacheAll = false
JavascriptHelper::$_rules = array
JavascriptHelper::$__scriptBuffer = NULL
JavascriptHelper::$helpers = NULL
JavascriptHelper::$base = ""
JavascriptHelper::$webroot = "/"
JavascriptHelper::$themeWeb = NULL
JavascriptHelper::$here = "/"
JavascriptHelper::$params = array
JavascriptHelper::$action = "home"
JavascriptHelper::$plugin = NULL
JavascriptHelper::$data = NULL
JavascriptHelper::$namedArgs = NULL
JavascriptHelper::$argSeparator = NULL
JavascriptHelper::$validationErrors = NULL
JavascriptHelper::$__tainted = NULL
JavascriptHelper::$__cleaned = NULL
JavascriptHelper::$_log = NULL,
"General" => GeneralHelper
GeneralHelper::$helpers = array
GeneralHelper::$base = ""
GeneralHelper::$webroot = "/"
GeneralHelper::$themeWeb = NULL
GeneralHelper::$here = "/"
GeneralHelper::$params = array
GeneralHelper::$action = "home"
GeneralHelper::$plugin = NULL
GeneralHelper::$data = NULL
GeneralHelper::$namedArgs = NULL
GeneralHelper::$argSeparator = NULL
GeneralHelper::$validationErrors = NULL
GeneralHelper::$tags = array
GeneralHelper::$__tainted = NULL
GeneralHelper::$__cleaned = NULL
GeneralHelper::$_log = NULL
GeneralHelper::$Html = HtmlHelper object
GeneralHelper::$Form = FormHelper object
GeneralHelper::$Javascript = JavascriptHelper object,
"Functions" => FunctionsHelper
FunctionsHelper::$helpers = array
FunctionsHelper::$base = ""
FunctionsHelper::$webroot = "/"
FunctionsHelper::$themeWeb = NULL
FunctionsHelper::$here = "/"
FunctionsHelper::$params = array
FunctionsHelper::$action = "home"
FunctionsHelper::$plugin = NULL
FunctionsHelper::$data = NULL
FunctionsHelper::$namedArgs = NULL
FunctionsHelper::$argSeparator = NULL
FunctionsHelper::$validationErrors = NULL
FunctionsHelper::$tags = array
FunctionsHelper::$__tainted = NULL
FunctionsHelper::$__cleaned = NULL
FunctionsHelper::$_log = NULL
FunctionsHelper::$Html = HtmlHelper object
FunctionsHelper::$Form = FormHelper object
FunctionsHelper::$Javascript = JavascriptHelper object,
"Session" => SessionHelper
SessionHelper::$helpers = NULL
SessionHelper::$__active = true
SessionHelper::$valid = false
SessionHelper::$error = false
SessionHelper::$_userAgent = "d3eb27b424df55ff15153fd6da148401"
SessionHelper::$path = "/"
SessionHelper::$lastError = NULL
SessionHelper::$security = NULL
SessionHelper::$time = 1268293163
SessionHelper::$sessionTime = false
SessionHelper::$watchKeys = array
SessionHelper::$id = NULL
SessionHelper::$_log = NULL
SessionHelper::$base = ""
SessionHelper::$webroot = "/"
SessionHelper::$here = "/"
SessionHelper::$params = array
SessionHelper::$action = "home"
SessionHelper::$data = NULL
SessionHelper::$themeWeb = NULL
SessionHelper::$plugin = NULL
)
$helper = "Session"
$camelBackedHelper = "session"
$html = HtmlHelper
HtmlHelper::$tags = array
HtmlHelper::$base = ""
HtmlHelper::$here = "/"
HtmlHelper::$params = array
HtmlHelper::$action = "home"
HtmlHelper::$data = NULL
HtmlHelper::$_crumbs = array
HtmlHelper::$__docTypes = array
HtmlHelper::$helpers = NULL
HtmlHelper::$webroot = "/"
HtmlHelper::$themeWeb = NULL
HtmlHelper::$plugin = NULL
HtmlHelper::$namedArgs = NULL
HtmlHelper::$argSeparator = NULL
HtmlHelper::$validationErrors = NULL
HtmlHelper::$__tainted = NULL
HtmlHelper::$__cleaned = NULL
HtmlHelper::$_log = NULL
$form = FormHelper
FormHelper::$helpers = array
FormHelper::$fieldset = array
FormHelper::$__options = array
FormHelper::$fields = array
FormHelper::$requestType = NULL
FormHelper::$base = ""
FormHelper::$webroot = "/"
FormHelper::$themeWeb = NULL
FormHelper::$here = "/"
FormHelper::$params = array
FormHelper::$action = "home"
FormHelper::$plugin = NULL
FormHelper::$data = NULL
FormHelper::$namedArgs = NULL
FormHelper::$argSeparator = NULL
FormHelper::$validationErrors = NULL
FormHelper::$tags = array
FormHelper::$__tainted = NULL
FormHelper::$__cleaned = NULL
FormHelper::$_log = NULL
FormHelper::$Html = HtmlHelper object
$javascript = JavascriptHelper
JavascriptHelper::$useNative = true
JavascriptHelper::$enabled = true
JavascriptHelper::$safe = false
JavascriptHelper::$tags = array
JavascriptHelper::$_blockOptions = array
JavascriptHelper::$_cachedEvents = array
JavascriptHelper::$_cacheEvents = false
JavascriptHelper::$_cacheToFile = false
JavascriptHelper::$_cacheAll = false
JavascriptHelper::$_rules = array
JavascriptHelper::$__scriptBuffer = NULL
JavascriptHelper::$helpers = NULL
JavascriptHelper::$base = ""
JavascriptHelper::$webroot = "/"
JavascriptHelper::$themeWeb = NULL
JavascriptHelper::$here = "/"
JavascriptHelper::$params = array
JavascriptHelper::$action = "home"
JavascriptHelper::$plugin = NULL
JavascriptHelper::$data = NULL
JavascriptHelper::$namedArgs = NULL
JavascriptHelper::$argSeparator = NULL
JavascriptHelper::$validationErrors = NULL
JavascriptHelper::$__tainted = NULL
JavascriptHelper::$__cleaned = NULL
JavascriptHelper::$_log = NULL
$general = GeneralHelper
GeneralHelper::$helpers = array
GeneralHelper::$base = ""
GeneralHelper::$webroot = "/"
GeneralHelper::$themeWeb = NULL
GeneralHelper::$here = "/"
GeneralHelper::$params = array
GeneralHelper::$action = "home"
GeneralHelper::$plugin = NULL
GeneralHelper::$data = NULL
GeneralHelper::$namedArgs = NULL
GeneralHelper::$argSeparator = NULL
GeneralHelper::$validationErrors = NULL
GeneralHelper::$tags = array
GeneralHelper::$__tainted = NULL
GeneralHelper::$__cleaned = NULL
GeneralHelper::$_log = NULL
GeneralHelper::$Html = HtmlHelper object
GeneralHelper::$Form = FormHelper object
GeneralHelper::$Javascript = JavascriptHelper object
$functions = FunctionsHelper
FunctionsHelper::$helpers = array
FunctionsHelper::$base = ""
FunctionsHelper::$webroot = "/"
FunctionsHelper::$themeWeb = NULL
FunctionsHelper::$here = "/"
FunctionsHelper::$params = array
FunctionsHelper::$action = "home"
FunctionsHelper::$plugin = NULL
FunctionsHelper::$data = NULL
FunctionsHelper::$namedArgs = NULL
FunctionsHelper::$argSeparator = NULL
FunctionsHelper::$validationErrors = NULL
FunctionsHelper::$tags = array
FunctionsHelper::$__tainted = NULL
FunctionsHelper::$__cleaned = NULL
FunctionsHelper::$_log = NULL
FunctionsHelper::$Html = HtmlHelper object
FunctionsHelper::$Form = FormHelper object
FunctionsHelper::$Javascript = JavascriptHelper object
$session = SessionHelper
SessionHelper::$helpers = NULL
SessionHelper::$__active = true
SessionHelper::$valid = false
SessionHelper::$error = false
SessionHelper::$_userAgent = "d3eb27b424df55ff15153fd6da148401"
SessionHelper::$path = "/"
SessionHelper::$lastError = NULL
SessionHelper::$security = NULL
SessionHelper::$time = 1268293163
SessionHelper::$sessionTime = false
SessionHelper::$watchKeys = array
SessionHelper::$id = NULL
SessionHelper::$_log = NULL
SessionHelper::$base = ""
SessionHelper::$webroot = "/"
SessionHelper::$here = "/"
SessionHelper::$params = array
SessionHelper::$action = "home"
SessionHelper::$data = NULL
SessionHelper::$themeWeb = NULL
SessionHelper::$plugin = NULL
$pages = array(
array(
"Page" => array(),
"children" => array()
),
array(
"Page" => array(),
"children" => array()
),
array(
"Page" => array(),
"children" => array()
),
array(
"Page" => array(),
"children" => array()
),
array(
"Page" => array(),
"children" => array()
)
)
$metaDescription = null
$metaKeywords = null
$page = array(
"Page" => array(
"id" => "1",
"parent_id" => null,
"lft" => "1",
"rght" => "2",
"sort_order" => "0",
"title" => "Home",
"content" => "<p>Conullutatum ea autat aliquate mincili quipsum volessed tin volorer alit atum del dionulolobortin utat.</p>
<p>Aliscing eros nonsecte volum voloreet praesse quiscid uissectem irit aliquismod ero odolonulla consequisi. Put do eum iriure eumsan exer adip eugue doluptatis et, sim vero consectem il dipit etummodoat aliquate mincili quipsum. volessed tin volorer alit atum del dionull andignim volobortin utat al]iscing eros nonsecte volum voloreet praesse quiscid. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>",
"name" => "",
"type" => "",
"size" => "0",
"external_url" => "",
"meta_description" => null,
"meta_keywords" => null,
"active" => "1",
"url_prefix" => "home",
"created" => "2010-01-26 08:51:16",
"modified" => "2010-01-26 08:51:16"
)
)
$productions = false
<?php
foreach ($productions as $production) {
include - APP/views/pages/home.ctp, line 17
View::_render() - CORE/cake/libs/view/view.php, line 666
View::render() - CORE/cake/libs/view/view.php, line 376
Controller::render() - CORE/cake/libs/controller/controller.php, line 803
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 230
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88
Conullutatum ea autat aliquate mincili quipsum volessed tin volorer alit atum del dionulolobortin utat.
Aliscing eros nonsecte volum voloreet praesse quiscid uissectem irit aliquismod ero odolonulla consequisi. Put do eum iriure eumsan exer adip eugue doluptatis et, sim vero consectem il dipit etummodoat aliquate mincili quipsum. volessed tin volorer alit atum del dionull andignim volobortin utat al]iscing eros nonsecte volum voloreet praesse quiscid. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.