WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: M.Boxma on November 30, 2020, 11:16:27 PM

Title: Installation - Database Name - ([a-z0-9_-])
Post by: M.Boxma 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?
Title: Re: Installation - Database Name - ([a-z0-9_-])
Post by: hgs on December 01, 2020, 10:30:59 AM
Development is looking for a solution.
Title: Re: Installation - Database Name - ([a-z0-9_-])
Post by: dbs 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'])) {
Title: Re: Installation - Database Name - ([a-z0-9_-])
Post by: Luisehahne 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  (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?download=08AA8D65)

Dietmar