Warning (2): Missing argument 1 for NewslettersController::view(), called in /usr/home/houstonpartymusic/www/cake/libs/object.php on line 115 and defined [APP/controllers/newsletters_controller.php, line 555]
CodeNewslettersController::view() - APP/controllers/newsletters_controller.php, line 555
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88
Notice (8): Undefined variable: id [APP/controllers/newsletters_controller.php, line 557]
Code function view($id) {
$this->layout = "newsView";
$this->Newsletter->id = $id;
NewslettersController::view() - APP/controllers/newsletters_controller.php, line 557
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88
Notice (8): Undefined variable: id [APP/controllers/newsletters_controller.php, line 559]
Code $this->Newsletter->id = $id;
if(1 == 1) { // borrem $this->data i carreguem els nous valors
$sql = 'SELECT * FROM newsletters WHERE id = '.$id;
NewslettersController::view() - APP/controllers/newsletters_controller.php, line 559
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 525]
Code |
Context$sql = "SELECT * FROM newsletters WHERE id = "
$error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
$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 337
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 221
Model::query() - CORE/cake/libs/model/model.php, line 2290
NewslettersController::view() - APP/controllers/newsletters_controller.php, line 560
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
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 * FROM newsletters WHERE id =
Notice (8): Undefined variable: id [APP/controllers/newsletters_controller.php, line 566]
Code |
Context$sql = "SELECT * FROM newsletters WHERE id = "
$tipo = null
// texto
$sql = 'SELECT * FROM newsletters_textos WHERE newsletter_id = '.$id.' ORDER BY id ASC';
NewslettersController::view() - APP/controllers/newsletters_controller.php, line 566
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id ASC' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 525]
Code |
Context$sql = "SELECT * FROM newsletters_textos WHERE newsletter_id = ORDER BY id ASC"
$error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id ASC' at line 1"
$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 337
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 221
Model::query() - CORE/cake/libs/model/model.php, line 2290
NewslettersController::view() - APP/controllers/newsletters_controller.php, line 567
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
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 * FROM newsletters_textos WHERE newsletter_id = ORDER BY id ASC
Warning (2): Invalid argument supplied for foreach() [APP/controllers/newsletters_controller.php, line 568]
Code |
Context$sql = "SELECT * FROM newsletters_textos WHERE newsletter_id = ORDER BY id ASC"
$tipo = null
$auxTextos = false
$sql = 'SELECT * FROM newsletters_textos WHERE newsletter_id = '.$id.' ORDER BY id ASC';
$auxTextos = $this->Newsletter->Query($sql);
foreach($auxTextos as $k => $v) {
NewslettersController::view() - APP/controllers/newsletters_controller.php, line 568
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 88
|
Si no lo ves correctamente puedes verlo desde tu navegador haciendo click aquí. |
|
|