abonent1000 4 Posted 2015-03-21 23:09:57 Share Posted 2015-03-21 23:09:57 1) Нажимаю кнопку "Добавить свитч" 2) Указываю IP, местонахождение, модель свича 3) Нажимаю "Сохранить" 4) Вываливается ошибка: wrong data input: INSERT INTO `switches` (`id` ,`modelid` ,`ip` ,`desc` ,`location` ,`snmp`,`geo`,`parentid`) VALUES ('', '3', '10.90.90.101', '', 'shevchenko 25', '','', NULL ); Раньше добавлял свичи нормально (на версии 063), не пойму - или после обновления до 064, или где-то накосячил в конфигах? Link to post Share on other sites
nightfly 1,243 Posted 2015-03-21 23:30:21 Share Posted 2015-03-21 23:30:21 Раньше добавлял свичи нормально (на версии 063), не пойму - или после обновления до 064, или где-то накосячил в конфигах? Накосячили при обновлении: http://wiki.ubilling.net.ua/doku.php?id=relnotes#section064 Link to post Share on other sites
abonent1000 4 Posted 2015-03-21 23:32:12 Author Share Posted 2015-03-21 23:32:12 оперативно Вы ответили. Спасибо! Link to post Share on other sites
nightfly 1,243 Posted 2015-03-21 23:37:07 Share Posted 2015-03-21 23:37:07 Всегда пжалста Link to post Share on other sites
abonent1000 4 Posted 2015-03-21 23:58:41 Author Share Posted 2015-03-21 23:58:41 (edited) 1) alter.ini подправил 2) зашел в "консоль разработчика" и ... ... не совсем понял в мануале написано "При помощи SQL консоли последовательно выполнить следующие запросы:" т.е. в консоли сначала выполнить ALTER TABLE `switches` ADD `parentid` INT NULL AFTER `geo` потом ADD INDEX (`parentid`) ?? Edited 2015-03-22 00:01:06 by abonent1000 Link to post Share on other sites
abonent1000 4 Posted 2015-03-22 00:01:15 Author Share Posted 2015-03-22 00:01:15 (edited) уже после этого: ALTER TABLE `switches` ADD `parentid` INT NULL AFTER `geo` свичи стали добавляться нормально Edited 2015-03-22 00:02:11 by abonent1000 Link to post Share on other sites
nightfly 1,243 Posted 2015-03-22 00:11:23 Share Posted 2015-03-22 00:11:23 Кэп намекает, что это как-бэ один запрос. Link to post Share on other sites
abonent1000 4 Posted 2015-03-22 00:12:38 Author Share Posted 2015-03-22 00:12:38 (edited) понял слов нет, модуль просто БОМБА!!! Edited 2015-03-22 00:22:19 by abonent1000 Link to post Share on other sites
Pit 35 Posted 2016-11-08 17:24:26 Share Posted 2016-11-08 17:24:26 Ubilling 0.7.8 rev 5110 Ошибка wrong data input: INSERT INTO `switches` (`id` ,`modelid` ,`ip` ,`desc` ,`location` ,`snmp`,`geo`,`parentid`) VALUES ('', '2', '192.168.2.249', 'asdas', 'dsad', 'asd','sdasd', NULL ); Как лечить ? Link to post Share on other sites
Pit 35 Posted 2016-11-08 20:10:02 Share Posted 2016-11-08 20:10:02 Файл billing/api/libs/api.switches.php $query = "INSERT INTO `switches` (`id`,`modelid` ,`ip` ,`desc` ,`location` ,`snmp`,`geo`,`parentid`) " . "VALUES ('" . $modelid . "', '" . $ip . "', '" . $desc . "', '" . $location . "', '" . $snmp . "','" . $geo . "$ nr_query($query); заменить на $query = "INSERT INTO `switches` (`modelid` ,`ip` ,`desc` ,`location` ,`snmp`,`geo`,`parentid`) " . "VALUES ('" . $modelid . "', '" . $ip . "', '" . $desc . "', '" . $location . "', '" . $snmp . "','" . $geo . "$ nr_query($query); Link to post Share on other sites
nightfly 1,243 Posted 2016-11-08 22:33:30 Share Posted 2016-11-08 22:33:30 Чё? Link to post Share on other sites
Pit 35 Posted 2016-11-09 08:10:55 Share Posted 2016-11-09 08:10:55 (edited) mysql Ver 14.14 Distrib 5.7.16, for Linux (x86_64) using EditLine wrapper Не создает switch Поправил как написал. Теперь создает. Edited 2016-11-09 08:12:22 by Pit Link to post Share on other sites
nightfly 1,243 Posted 2016-11-09 08:53:32 Share Posted 2016-11-09 08:53:32 Как хорошо, что я не обращаю внимания на такие "советы" людей, которые абсолютно не в теме. Наверное поэтому, убиллинг еще как-то работает. Кроме того, что такие волшебные решения, ломают нахрен легаси и возможности последующих обновлений, они также декларируют отсутствие понимания работы mysql и strict_trans_tables советчиками. Link to post Share on other sites
Pit 35 Posted 2016-11-09 15:53:17 Share Posted 2016-11-09 15:53:17 У понимающего в strict_trans_tables оно ваще не работает :) :) :) Link to post Share on other sites
nightfly 1,243 Posted 2016-11-09 15:54:20 Share Posted 2016-11-09 15:54:20 чё? Link to post Share on other sites
Pit 35 Posted 2016-11-09 16:20:09 Share Posted 2016-11-09 16:20:09 говорю не работает :facepalm: :facepalm: wrong data input: INSERT INTO `switches` (`id` ,`modelid` ,`ip` ,`desc` ,`location` ,`snmp`,`geo`,`parentid`) VALUES ('', '2', '192.168.2.249', 'asdas', 'dsad', 'asd','sdasd', NULL ); Link to post Share on other sites
nightfly 1,243 Posted 2016-11-09 16:49:29 Share Posted 2016-11-09 16:49:29 говорю не работает :facepalm: :facepalm: Для особо одаренных, тычу мордочкой: https://github.com/nightflyza/UBinstaller/blob/master/UBinstaller.sh#L406 Link to post Share on other sites
zaza12 2 Posted 2016-11-09 16:58:25 Share Posted 2016-11-09 16:58:25 (edited) говорю не работает wrong data input: INSERT INTO `switches` (`id` ,`modelid` ,`ip` ,`desc` ,`location` ,`snmp`,`geo`,`parentid`) VALUES ('', '2', '192.168.2.249', 'asdas', 'dsad', 'asd','sdasd', NULL ); Не пойму , или это у меня глюк на этой страничке , или кому-то нужен окулист. Edited 2016-11-09 16:59:05 by zaza12 Link to post Share on other sites
Pit 35 Posted 2016-11-09 17:09:45 Share Posted 2016-11-09 17:09:45 (edited) Че? if [ -f /usr/local/my.cnf ]; then perl -e "s/,STRICT_TRANS_TABLES//g" -pi /usr/local/my.cnf echo "Disabling MySQL STRICT_TRANS_TABLES done" else echo "Looks like no MySQL STRICT_TRANS_TABLES disable required" Та ну нах fi Edited 2016-11-09 17:31:07 by Pit Link to post Share on other sites
sirko.n 0 Posted 2018-02-09 22:13:34 Share Posted 2018-02-09 22:13:34 Уже понял что где то накосячил с обновлением. Подскажите куда глянуть? wrong data input: INSERT INTO `speeds` ( `id` , `tariff` , `speeddown` , `speedup` , `burstdownload` , `burstupload` , `bursttimedownload` , `burstimetupload` ) VALUES ( NULL , 'partner', '0', '0', '', '', '', '' ); Link to post Share on other sites
nightfly 1,243 Posted 2018-02-10 00:20:20 Share Posted 2018-02-10 00:20:20 2 часа назад, sirko.n сказал: Уже понял что где то накосячил с обновлением. Подскажите куда глянуть? SHOW CREATE TABLE `speeds` Link to post Share on other sites
sirko.n 0 Posted 2018-02-10 14:24:23 Share Posted 2018-02-10 14:24:23 Спасибо, поправил, работает! Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now