pk4
10-03-2007, 05:28 PM
I updated to 373 last night, now i get this error on the tickets page:
DAO_Group(2566):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 t.name ASC' at line 1
The query in question is:
SELECT t.id , t.name, t.signature FROM team t WHERE t.id IN () ORDER BY t.name ASC
the getTeams($ids) function is being called with
$ids = array(0 => "") which breaks the SQL generation on line 2566
Here's a partial backtrace...
Array
(
[0] => Array
(
[file] => C:\wamp\www\cerb4\api\DAO.class.php
[line] => 2541
[function] => getTeams
[class] => DAO_Group
[type] => ::
[args] => Array
(
[0] => Array
(
[0] =>
)
)
)
[1] => Array
(
[file] => C:\wamp\www\cerb4\plugins\cerberusweb.core\classes .php
[line] => 402
[function] => getTeam
[class] => DAO_Group
[type] => ::
[args] => Array
(
[0] =>
)
)
[2] => Array
(
[file] => C:\wamp\www\cerb4\libs\devblocks\tmp\templates_c\% %7A^7AE^7AE2F24B%%border.php.php
[line] => 68
[function] => render
[class] => ChTicketsPage
[object] => ChTicketsPage Object
(
[manifest] => DevblocksExtensionManifest Object
(
[id] => core.page.tickets
[plugin_id] => cerberusweb.core
[point] => cerberusweb.page
[name] => Tickets Page
[file] => classes.php
[class] => ChTicketsPage
[params] => Array
(
[uri] => tickets
[title] => Mail
[menutitle] => mail
)
)
[instance_id] => 1
[id] => core.page.tickets
[params:private] => Array
(
)
[params_loaded:private] =>
)
[type] => ->
[args] => Array
(
)
)
[3] => Array
(
[file] => C:\wamp\www\cerb4\libs\devblocks\libs\smarty\Smart y.class.php
[line] => 1258
[args] => Array
(
[0] => C:\wamp\www\cerb4\libs\devblocks\tmp\templates_c\% %7A^7AE^7AE2F24B%%border.php.php
)
[function] => include
)
DAO_Group(2566):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 t.name ASC' at line 1
The query in question is:
SELECT t.id , t.name, t.signature FROM team t WHERE t.id IN () ORDER BY t.name ASC
the getTeams($ids) function is being called with
$ids = array(0 => "") which breaks the SQL generation on line 2566
Here's a partial backtrace...
Array
(
[0] => Array
(
[file] => C:\wamp\www\cerb4\api\DAO.class.php
[line] => 2541
[function] => getTeams
[class] => DAO_Group
[type] => ::
[args] => Array
(
[0] => Array
(
[0] =>
)
)
)
[1] => Array
(
[file] => C:\wamp\www\cerb4\plugins\cerberusweb.core\classes .php
[line] => 402
[function] => getTeam
[class] => DAO_Group
[type] => ::
[args] => Array
(
[0] =>
)
)
[2] => Array
(
[file] => C:\wamp\www\cerb4\libs\devblocks\tmp\templates_c\% %7A^7AE^7AE2F24B%%border.php.php
[line] => 68
[function] => render
[class] => ChTicketsPage
[object] => ChTicketsPage Object
(
[manifest] => DevblocksExtensionManifest Object
(
[id] => core.page.tickets
[plugin_id] => cerberusweb.core
[point] => cerberusweb.page
[name] => Tickets Page
[file] => classes.php
[class] => ChTicketsPage
[params] => Array
(
[uri] => tickets
[title] => Mail
[menutitle] => mail
)
)
[instance_id] => 1
[id] => core.page.tickets
[params:private] => Array
(
)
[params_loaded:private] =>
)
[type] => ->
[args] => Array
(
)
)
[3] => Array
(
[file] => C:\wamp\www\cerb4\libs\devblocks\libs\smarty\Smart y.class.php
[line] => 1258
[args] => Array
(
[0] => C:\wamp\www\cerb4\libs\devblocks\tmp\templates_c\% %7A^7AE^7AE2F24B%%border.php.php
)
[function] => include
)