$useTable = '' or $name = '' maybe.

On Jun 15, 5:48 pm, cakeuser <web...@googlemail.com> wrote:
> All the actions in my cake-project work perfectly, but the "subscribe"
> action for my newsletter goes crazy.
> After 3 houres i don't know how to fix it.
>
> The error messages:
> ------------------------------------------
> 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 673]
> Code | Context
>
> $sql    =       "DESCRIBE "
> $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
>
> DboSource::showQuery() - CORE/cake/libs/model/datasources/
> dbo_source.php, line 673
> DboSource::execute() - CORE/cake/libs/model/datasources/
> dbo_source.php, line 263
> DboSource::fetchAll() - CORE/cake/libs/model/datasources/
> dbo_source.php, line 407
> DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php,
> line 284
> DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/
> dbo_mysql.php, line 125
> Model::schema() - CORE/cake/libs/model/model.php, line 925
> Model::hasField() - CORE/cake/libs/model/model.php, line 1011
> Model::hasField() - CORE/cake/libs/model/model.php, line 997
> Model::__construct() - CORE/cake/libs/model/model.php, line 477
> ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 149
> AuthComponent::getModel() - CORE/cake/libs/controller/components/
> auth.php, line 821
> AuthComponent::hashPasswords() - CORE/cake/libs/controller/components/
> auth.php, line 926
> AuthComponent::startup() - CORE/cake/libs/controller/components/
> auth.php, line 333
> Component::triggerCallback() - CORE/cake/libs/controller/
> component.php, line 186
> Controller::startupProcess() - CORE/cake/libs/controller/
> controller.php, line 527
> Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 187
> Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
>
> Query: DESCRIBE
>
> Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/
> model/datasources/dbo/dbo_mysql.php, line 127]
> Code | Context
>
>         $cols = $this->query('DESCRIBE ' . $this-
>
> >fullTableName($model));
>
>         foreach ($cols as $column) {
>
> DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/
> dbo_mysql.php, line 127
> Model::schema() - CORE/cake/libs/model/model.php, line 925
> Model::hasField() - CORE/cake/libs/model/model.php, line 1011
> Model::hasField() - CORE/cake/libs/model/model.php, line 997
> Model::__construct() - CORE/cake/libs/model/model.php, line 477
> ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 149
> AuthComponent::getModel() - CORE/cake/libs/controller/components/
> auth.php, line 821
> AuthComponent::hashPasswords() - CORE/cake/libs/controller/components/
> auth.php, line 926
> AuthComponent::startup() - CORE/cake/libs/controller/components/
> auth.php, line 333
> Component::triggerCallback() - CORE/cake/libs/controller/
> component.php, line 186
> Controller::startupProcess() - CORE/cake/libs/controller/
> controller.php, line 527
> Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 187
> Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
> [main] - APP/webroot/index.php, line 83
>
> Query: DESCRIBE
>
> Query: DESCRIBE
> ------------------------------------------
>
> I don't understand why cake wants to describe some tables without the
> table names.
> I hope someone has an idea.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to