SQL White Page
#1
SQL White Page
Good afternoon 

I wonder if anybody can help me. I can successfully create sql databases however when I create a user for the databases using the panel I get a blank white page. I can't seem to find what the issue is.
Reply
#2
RE: SQL White Page
(04-04-2019, 10:00 PM)klubbers Wrote: Good afternoon 

I wonder if anybody can help me. I can successfully create sql databases however when I create a user for the databases using the panel I get a blank white page. I can't seem to find what the issue is.

I've seen this issue before. I think I traced it to some updates to functions or something like that. I'll have to have a look at the released Sentora files and compare them to my own working versions to remember what you need to change.

I'll get back to you once I've had a chance to do this. 

Keith
Reply
#3
RE: SQL White Page
(04-04-2019, 10:00 PM)klubbers Wrote: Good afternoon 

I wonder if anybody can help me. I can successfully create sql databases however when I create a user for the databases using the panel I get a blank white page. I can't seem to find what the issue is.

I think this might have been the solution... try it and see!

Edit:


Code:
/etc/sentora/panel/modules/mysql_users/code/controller.ext.php


Find the function:


Code:
static function ExecuteCreateUser($uid, $username, $database, $access)


A couple of lines into the function you should see:


Code:
$currentuser = ctrl_users::GetUserDetail($uid);


Add this on a new line just below:


Code:
$username = $currentuser['username'] . '_' . $username;


Save the file.

Now try creating a user. Also, keep in mind that the maximum MySQL username length in the latest release of Sentora is around 17 characters, and this includes your Sentora username and the underscore. So, if you are using the zadmin account, a database user such as:


Code:
zadmin_user1


should be valid, but:


Code:
zadmin_thisnameistoolongforsentora


will cause an error. The latest github master repository has updated the length to 32 characters, but the version you have installed is most likely the previous release with the shorter limit.

Keith
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
sentora creates vhost but it displays the apache start page timce2000 4 12 ,779 06-17-2018, 11:31 AM
Last Post: TGates
Sentora Suspended Page not showing, just FORBIDDEN aaronlroberts 3 9 ,906 04-13-2018, 06:43 AM
Last Post: TGates
ONLY home page working ! RobotMarketer 6 18 ,040 12-04-2017, 07:27 PM
Last Post: varun.naharia

Forum Jump:


Users browsing this thread: 1 Guest(s)