Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 07:35:03 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155439 Posts in 21702 Topics by 7732 Members
Latest Member: Smacki
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Error Installation table prefix WB 2.7.0  (Read 729 times)
G4

Offline Offline

Posts: 68



« on: August 26, 2008, 12:19:10 PM »

Hello everyone,

Iam trying to install wb but I get the following error.

Error: Only characters a-z, A-Z, 0-9 and _ allowed in table_prefix.


This is the name of my database

my-site_nl_-_home

In my url is a -(line). Is this the trouble? I can not change the url.
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: August 26, 2008, 12:45:38 PM »

Hi,

maybe I'm totaly wrong, but the issue with the "-" in database names should be fixed in 2.7 final version,
could it be you try a 2.7 RC version?

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
G4

Offline Offline

Posts: 68



« Reply #2 on: August 26, 2008, 01:44:02 PM »

I got it from this url

http://start.websitebaker2.org/nl/introductie.html
Logged
aldus

Offline Offline

Posts: 1238


« Reply #3 on: August 26, 2008, 02:07:19 PM »

Hm - in the install/save.php, line 228 ff.
Code:
<?php
    
// make sure only allowed characters are specified
    
if(preg_match('/[^a-z0-9_-]+/i'$_POST['database_name'])) {
        
// contains invalid characters (only a-z, A-Z, 0-9 and _ and - allowed to avoid problems with table/field names)
        
set_error('Only characters a-z, A-Z, 0-9, - and _ allowed in database name.''database_name');
    }
    
$database_name $_POST['database_name'];
?>


The "-" is allowed ... but i'm not sure if it is official, as i've got some changes anywhere here ...

Regards
Aldus
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #4 on: August 26, 2008, 02:19:03 PM »

That's what I meant,

G4 get's the "old" errormessage without the "-"
The uptodate errormessage should be:
Code:
'Only characters a-z, A-Z, 0-9, - and _ allowed in database name.

Just had a look in the download packages there is the correct code as mentioned by aldus.
Maybe the best to make a fresh download to get sure you have the actual package.

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
G4

Offline Offline

Posts: 68



« Reply #5 on: August 27, 2008, 02:16:16 PM »

Still no succes!

Please help. Can someone place a link too the correct package please!!
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #6 on: August 27, 2008, 02:41:06 PM »

Hi,

if you use the link you've postet, you have an actuall version.
Please have a look (as mentioned by aldus) at the file save.php in the folder /install
somewhere about line 228 you should read this:
Code:
if(preg_match('/[^a-z0-9_-]+/i', $_POST['database_name'])) {
Please compare it sign by sign.It should be exactly the same.
If it's so, you may have another problem, not the "-"

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!