Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
I can't make my Admin acount work


Goto page 1, 2, 3 ... 11, 12, 13  Next
 
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP-Nuke Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
bossman
Staff Sergeant
Staff Sergeant


Joined: 26 Nov 2003
Posts: 50

PostPosted: Wed Nov 26, 2003 8:52 am    Post subject: I can't make my Admin acount work
Reply with quote

i did the test.php that you talked about in your other post's chris
and every thing looks fine now i go to log in to my site
and make supper user i get to make it but when i get the admin login it takes me back to the make supper use page
can you help

this is what it says:

Code:

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


i try and make one but not working!
Back to top
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Wed Nov 26, 2003 12:18 pm    Post subject:
Reply with quote

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><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. 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.
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bossman
Staff Sergeant
Staff Sergeant


Joined: 26 Nov 2003
Posts: 50

PostPosted: Wed Nov 26, 2003 2:44 pm    Post subject: i cant make my Admin acount work
Reply with quote

NO there is no supper amdin on nuke_authors

the only thing i seen was

Code:

aid  varchar(25)   No  Change  Drop  Primary  Index  Unique  Fulltext 
   
name  varchar(50)  Yes  NULL    Change  Drop  Primary  Index  Unique  Fulltext 
   
url  varchar(255)   No      Change  Drop  Primary  Index  Unique  Fulltext 
   
email  varchar(255)   No      Change  Drop  Primary  Index  Unique  Fulltext 
   
pwd  varchar(40)   Yes  NULL    Change  Drop  Primary  Index  Unique  Fulltext


? im close just dont know how close .. i hope

[edit] Included code in code tags. Chris [/edit]
Back to top
View user's profile Send private message
bossman
Staff Sergeant
Staff Sergeant


Joined: 26 Nov 2003
Posts: 50

PostPosted: Wed Nov 26, 2003 2:53 pm    Post subject: i cant make my Admin acount work
Reply with quote

Aslo wanted to add that i used the analyze.php

and i got back this

Code:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\FoxServ\www\analyze.php on line 738

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\FoxServ\www\analyze.php on line 756

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in C:\FoxServ\www\analyze.php on line 761

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\FoxServ\www\analyze.php on line 764

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in C:\FoxServ\www\analyze.php on line 769


Dont know if its of any help to you in finding whats going on here..

[edit] Included code in code tags. Chris [/edit]
Back to top
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Wed Nov 26, 2003 6:08 pm    Post subject: Re: i cant make my Admin acount work
Reply with quote

bossman wrote:
Open quoteAslo wanted to add that i used the analyze.php

and i got back this

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\FoxServ\www\analyze.php on line 738 Close quote


You can't connect to the database. Check your config.php again.

A frequent error is that people write "mysql" instead of "MySQL" for the dbtype. Check this and all the other values in config.php again.
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bossman
Staff Sergeant
Staff Sergeant


Joined: 26 Nov 2003
Posts: 50

PostPosted: Wed Nov 26, 2003 7:23 pm    Post subject: i cant make my Admin acount work
Reply with quote

this is my config.php Every thing looks Ok i think

Code:

$dbhost = "localhost";
$dbuname = "timmy";
$dbpass = "stoper";
$dbname = "MySQL";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+me";
$gfx_chk = 0;


[edit] Included code in code tags. Chris [/edit]
Back to top
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Wed Nov 26, 2003 7:38 pm    Post subject:
Reply with quote

dbname is wrong. Unless you named your database "MySQL"... Rolling Eyes

The user timmy must have all privileges for the database.
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bossman
Staff Sergeant
Staff Sergeant


Joined: 26 Nov 2003
Posts: 50

PostPosted: Wed Nov 26, 2003 8:14 pm    Post subject: i cant make my Admin acount work
Reply with quote

the db name ? what do i put ?
Back to top
View user's profile Send private message
bossman
Staff Sergeant
Staff Sergeant


Joined: 26 Nov 2003
Posts: 50

PostPosted: Wed Nov 26, 2003 9:08 pm    Post subject: i cant make my Admin acount work
Reply with quote

i got it wow thanks you Rock .......

Shocked But now ppl paged me back about site.
To me it looks fine but on there side they see Boxs and sysbols what can this Be...

Take a look www.webbroz.co.nr
Back to top
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Thu Nov 27, 2003 12:51 am    Post subject: Re: i cant make my Admin acount work
Reply with quote

I started writing this, but was interrupted, then I saw that you fixed your problem with the database. I am posting it anyway:
bossman wrote:
Open quotethe db name ? what do i put ? Close quote


You created a database before you installed PHP-Nuke, didn't you?

See How to install PHP-Nuke manually.
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP-Nuke Forum
Page 1 of 13
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group