Joomla - проблема имени базы
Материал из 1GbWiki.
Версия 07:23, 5 августа 2008 (править) Dmach (Обсуждение | вклад) м (Правки 75.55.14.67 (обсуждение) откачены к версии 81.1.243.193) ← К предыдущему изменению |
Версия 07:42, 5 августа 2008 (править) (отменить) 76.177.15.224 (Обсуждение) (→Неудобство решено) К следующему изменению → |
||
Строка 1: | Строка 1: | ||
- | + | http://preparazione-42.newsbloga.com Preparazione http://milionario-8.newsbloga.com Milionario http://increase-45.newsbloga.com Increase http://malcom-15.newsbloga.com Malcom http://bovaro-22.newsbloga.com Bovaro http://partenza-20.newsbloga.com Partenza http://siamese-82.newsbloga.com Siamese http://calvino-88.newsbloga.com Calvino http://anticoncezionali-53.newsbloga.com Anticoncezionali http://baleari-27.newsbloga.com Baleari http://inviate-86.newsbloga.com Inviate http://bellinzago-66.newsbloga.com Bellinzago http://esatta-6.newsbloga.com Esatta http://editor-71.newsbloga.com Editor http://glitterati-52.newsbloga.com Glitterati http://potenziale-9.newsbloga.com Potenziale http://cologno-4.newsbloga.com Cologno http://calling-20.newsbloga.com Calling http://timothy-58.newsbloga.com Timothy http://canali-55.newsbloga.com Canali http://lamento-77.newsbloga.com Lamento http://academic-30.newsbloga.com Academic http://continue-19.newsbloga.com Continue http://pigalle-38.newsbloga.com Pigalle http://melrose-97.newsbloga.com Melrose http://figino-79.newsbloga.com Figino http://chiavano-65.newsbloga.com Chiavano http://firmati-62.newsbloga.com Firmati http://onofri-20.newsbloga.com Onofri http://espressione-86.newsbloga.com Espressione http://prevenire-99.newsbloga.com Prevenire http://vikings-71.newsbloga.com Vikings http://combat-53.newsbloga.com Combat http://aventino-20.newsbloga.com Aventino http://fumare-67.newsbloga.com Fumare http://plastici-33.newsbloga.com Plastici http://deontologico-24.newsbloga.com Deontologico http://busines-67.newsbloga.com Busines http://sabrina-43.newsbloga.com Sabrina http://medioevale-76.newsbloga.com Medioevale http://builder-55.newsbloga.com Builder http://dummies-76.newsbloga.com Dummies http://copier-28.newsbloga.com Copier http://fiumefreddo-78.newsbloga.com Fiumefreddo http://protagonista-11.newsbloga.com Protagonista http://contenuti-22.newsbloga.com Contenuti http://migliore-90.newsbloga.com Migliore http://ritardo-61.newsbloga.com Ritardo http://marini-23.newsbloga.com Marini http://seventeen-85.newsbloga.com Seventeen | |
- | + | ||
- | + | ||
== Для истории == | == Для истории == |
Версия 07:42, 5 августа 2008
http://preparazione-42.newsbloga.com Preparazione http://milionario-8.newsbloga.com Milionario http://increase-45.newsbloga.com Increase http://malcom-15.newsbloga.com Malcom http://bovaro-22.newsbloga.com Bovaro http://partenza-20.newsbloga.com Partenza http://siamese-82.newsbloga.com Siamese http://calvino-88.newsbloga.com Calvino http://anticoncezionali-53.newsbloga.com Anticoncezionali http://baleari-27.newsbloga.com Baleari http://inviate-86.newsbloga.com Inviate http://bellinzago-66.newsbloga.com Bellinzago http://esatta-6.newsbloga.com Esatta http://editor-71.newsbloga.com Editor http://glitterati-52.newsbloga.com Glitterati http://potenziale-9.newsbloga.com Potenziale http://cologno-4.newsbloga.com Cologno http://calling-20.newsbloga.com Calling http://timothy-58.newsbloga.com Timothy http://canali-55.newsbloga.com Canali http://lamento-77.newsbloga.com Lamento http://academic-30.newsbloga.com Academic http://continue-19.newsbloga.com Continue http://pigalle-38.newsbloga.com Pigalle http://melrose-97.newsbloga.com Melrose http://figino-79.newsbloga.com Figino http://chiavano-65.newsbloga.com Chiavano http://firmati-62.newsbloga.com Firmati http://onofri-20.newsbloga.com Onofri http://espressione-86.newsbloga.com Espressione http://prevenire-99.newsbloga.com Prevenire http://vikings-71.newsbloga.com Vikings http://combat-53.newsbloga.com Combat http://aventino-20.newsbloga.com Aventino http://fumare-67.newsbloga.com Fumare http://plastici-33.newsbloga.com Plastici http://deontologico-24.newsbloga.com Deontologico http://busines-67.newsbloga.com Busines http://sabrina-43.newsbloga.com Sabrina http://medioevale-76.newsbloga.com Medioevale http://builder-55.newsbloga.com Builder http://dummies-76.newsbloga.com Dummies http://copier-28.newsbloga.com Copier http://fiumefreddo-78.newsbloga.com Fiumefreddo http://protagonista-11.newsbloga.com Protagonista http://contenuti-22.newsbloga.com Contenuti http://migliore-90.newsbloga.com Migliore http://ritardo-61.newsbloga.com Ritardo http://marini-23.newsbloga.com Marini http://seventeen-85.newsbloga.com Seventeen
Для истории
В Joomla версии 1.5 (проблема точно есть на версии 1.5.2) присутствует проблема связанная с тем, что эта "CMS" считает будто имя БД не может начинаться с цифры, при указании имени БД с префиксом "1gb_" пользователи получают сообщение
"Имя базы данных MySQL должно начинаться с латинской буквы и может содержать только латинские буквы, цифры или символ подчёркивания (A-Z,a-z,0-9,_)"
К сожалению разработчики Joomla в этом отношении не правы, так как имя базы данных для mySQL может содержать первым символом цифру, о чём имеется многолетняя беспроблемная практика как с нашей стороны, так и со стороны любых других CMS и систем которые как либо вообще работают с СУБД mySQL.
Для того что бы обойти указанное огарничение нужно внести изменение в код Joomla с целью снять проверку правильности ввода имени БД, для этого нужно отредактировать два файла:
- /installation/installer/models/model.php, найти в нём следующий код (ориентиром может служить переменная 'MYSQLDBNAMEINVALIDCHARS':
if (!preg_match( '#^[a-zA-Z]+[a-zA-Z0-9_]*$#', $DBname )) { $this->setError(JText::_('MYSQLDBNAMEINVALIDCHARS')); $this->setData('back', 'dbconfig'); $this->setData('errors', $errors); return false; }
и удалить его - просто стереть эти 6 строчек.
- /installation/template/tmpl/dbconfig.html, ориентир тот же:
} else if (!regex.test(DBname.value)) { alert('<jtmpl:translate key="MYSQLDBNAMEINVALIDCHARS" escape="yes">The MySQL Database Name must ... return;
и так же их удалить