Toms Homepage
  Home    Downloads    Your Account    Forums  
  Create an account
Modules
· Home
· Games
· My Gallery
· PHP Manual
· PHP-Nuke HOWTO
· Web Links
· Your Account
 
Who's Online
Welcome, Anonymous
Nickname

Password

Security Code
Security Code
Type Security Code


(Register)

Membership:
Latest: SCindustink
New Today: 0
New Yesterday: 2
Overall: 5005

People Online:
Visitors: 29
Members: 0
Total: 29
 
You cannot create the administrator account

3.9.16. You cannot create the administrator account

Figure 3-34. Administration panel: Edit Admins.

Administration panel: Edit Admins.

Administration panel: Edit Admins.



Everything looks fine with your newly created PHP-Nuke site, then you are told by the system that there is no administrator yet and you should create one:

There are no Administrators Accounts yet, proceeed to create the Super User:

You do what you are told and create that Super User, but the next time you get the same message. It seems that you cannot create the administrator account!

The message that asks you to create the Super User is the _NOADMINYET message whose translation you can find in the various language files (see Section 13.1) in the admin/language folder. For example, in admin/language/lang-english.php, we read:

define("_NOADMINYET","There are no Administrators Accounts yet, proceeed to create the Super User:");

The _NOADMINYET message is output in admin.php:

$the_first = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_authors"));
if ($the_first == 0) {
    if (!$name) {
    include("header.php");
    title("$sitename: "._ADMINISTRATION."");
    OpenTable();
    echo "<center><b>"._NOADMINYET."</b></center><br><br>"

From the code we see that it is echoed only if $the_first is 0, meaning no entries in the $prefix_authors table. Thus, for some reason, the nuke_authors table (assuming your $prefix is "nuke" in config.php), is not filled. You can do the following (see I cant make my Admin acount work):

You should check the entries in nuke_authors. You can do this either from the MySQL prompt with

select aid, name, email, pwd from nuke_authors;

or with the "browse" function of phpMyAdmin (Section 3.4).

If your Super Admin is there, then it is weird...Inline graphic

If the Super Admin is not there, then you can't write to the database. To check this possibility, find the function create_first() in admin.php. There, you will see two lines with a call to sql_query. They are both identical:

$db->sql_query($sql);

Insert the line:

echo mysql_error();

after each one. This will echo a more descriptive error message (see Section 3.9.23) and may lead you to the solution. But, as experience shows (see I cant make my Admin acount work), you most probably have set the wrong values in your config.php (Section 3.7).Inline graphicThis is a known issue and a solution is presented in Section 3.10.1.


Help us make a better PHP-Nuke HOWTO!

Want to contribute to this HOWTO? Have a suggestion or a solution to a problem that was not treated here? Post your comments on my PHP-Nuke Forum!

Chris Karakas, Maintainer PHP-Nuke HOWTO

Great hosting I can recommend

This site is hosted with Lunar Pages and I am very happy with their service, support and the hosting packages they provide.

CLick on the image below for all the details.

Lunarpages.com Web Hosting

 
This site is
best viewed with:

Get Firefox now
Mozilla Firefox

Need a better mail client? Get Firefox now
Use Mozilla Thunderbird
 
Weather Forcast
Brisbane Today
Forecast
Select City:
 
Whirlpool.net.au
Currently there is a problem with headlines from this site
 
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004 by Tom Nitzschner.
Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.066 Seconds

:: VereorLCARS phpbb2 style by Vereor :: PHP-Nuke theme by www.nukemods.com ::