
11-05-2006, 10:41 AM
|
|
Junior Member
|
|
Join Date: Jul 2006
Posts: 11
|
|
|
Originally Posted by Marty
|
This is the _NOADMINYET message whose translation you can find in the various language files in the language folder. It occurs in admin.php:
|
Code:
|
$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>"._NOADMINYET."</center>
" |
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. Could you check the entries in nuke_authors? You can do this either from the MySQL prompt with
|
Code:
|
select aid, name, email, pwd from nuke_authors; |
or with the "browse" function of phpMyAdmin.
If your Super Admin is there, then it is weird...
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:
|
Code:
|
$db->sql_query($sql); |
Insert the line:
|
Code:
|
echo mysql_error(); |
after each one. This will echo a more descriptive error message and may lead you to the solution. But, as experience shows, you most probably have set the wrong values in your config.php
|
What are you saying I should check for in the config.php file?
|