Author Topic: Installation - Database Name - ([a-z0-9_-])  (Read 565 times)

Offline M.Boxma

  • Posts: 45
Installation - Database Name - ([a-z0-9_-])
« on: November 30, 2020, 11:16:27 PM »
Hi,

I'm trying to install a new WebsiteBaker on my website, but the host providers a database name with capital letters and i can't get it changed.

Is there a workaround so i can use capital letters in the database name field?

Offline hgs

  • Betatester
  • **
  • Posts: 1407
    • EFG MG
Re: Installation - Database Name - ([a-z0-9_-])
« Reply #1 on: December 01, 2020, 10:30:59 AM »
Development is looking for a solution.
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline dbs

  • Betatester
  • **
  • Posts: 8637
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Installation - Database Name - ([a-z0-9_-])
« Reply #2 on: December 01, 2020, 11:46:12 AM »
Hello, we will fix this. But for the moment you can try this.
In installer/save.php line 280,

replace this
Code: [Select]
if (\preg_match('/[^a-z0-9_-]+/', $aInputs['database_name'])) {
with this (a additional i)
Code: [Select]
if (\preg_match('/[^a-z0-9_-]+/i', $aInputs['database_name'])) {

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4448
  • Gender: Male
Re: Installation - Database Name - ([a-z0-9_-])
« Reply #3 on: December 01, 2020, 04:36:33 PM »
Hi,

I'm trying to install a new WebsiteBaker on my website, but the host providers a database name with capital letters and i can't get it changed.

Is there a workaround so i can use capital letters in the database name field?

Please test the new package  WebsiteBaker 2.13.0 RC1 r7

Dietmar


Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!