Add new Website make error when System->Server services-> Webserver - disabled and no slave server i
"Add new Website" makes error when in "System->Server services-> Webserver - is disabled", and slave web server is disconnected.
Server: (Debian Squeeze/Sid)
This erros shows:
DB::query(SELECT ip_address FROM server_ip WHERE ip_type = 'IPv4' AND server_id = ) -> mysqli_query 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#0 db->query(SELECT ip_address FROM server_ip WHERE ip_type = 'IPv4' AND server_id = ) called at [/usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php:157] #1 (closed) db->queryAllRecords(SELECT ip_address FROM server_ip WHERE ip_type = 'IPv4' AND server_id = ) called at [/usr/local/ispconfig/interface/web/sites/web_domain_edit.php:279] #2 (closed) page_action->onShowEnd() called at [/usr/local/ispconfig/interface/lib/classes/tform_actions.inc.php:513] #3 (closed) tform_actions->onShow() called at [/usr/local/ispconfig/interface/lib/classes/tform_actions.inc.php:70] #4 (closed) tform_actions->onLoad() called at [/usr/local/ispconfig/interface/web/sites/web_domain_edit.php:920] DB::query(SELECT ip_address FROM server_ip WHERE ip_type = 'IPv6' AND server_id = ) -> mysqli_query 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#0 db->query(SELECT ip_address FROM server_ip WHERE ip_type = 'IPv6' AND server_id = ) called at [/usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php:157] #1 (closed) db->queryAllRecords(SELECT ip_address FROM server_ip WHERE ip_type = 'IPv6' AND server_id = ) called at [/usr/local/ispconfig/interface/web/sites/web_domain_edit.php:294] #2 (closed) page_action->onShowEnd() called at [/usr/local/ispconfig/interface/lib/classes/tform_actions.inc.php:513] #3 (closed) tform_actions->onShow() called at [/usr/local/ispconfig/interface/lib/classes/tform_actions.inc.php:70] #4 (closed) tform_actions->onLoad() called at [/usr/local/ispconfig/interface/web/sites/web_domain_edit.php:920]