PC Playground  

Go Back   PC Playground > The Core > Scripting/Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-30-2003, 06:08 PM
Junior Member
 
Join Date: Jul 2003
Posts: 11
Send a message via Yahoo to lynmangoro
Default Please help with my new installation

I am desperate to begin using PHPNuke and have been trying all day to get it working. First I installed PHPnuke 5.6 on the server and was stuck in an admin loop so I wiped everything and started again with 6.5...
So now everything is uploaded but it doesn't work...when I try to view the site I get this message.

regi("config.php",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die(); } ?>
Fatal error: Cannot instantiate non-existent class: sql_db in /data/members/free/tripod/uk/l/y/n/lynmangoro/htdocs/html/db/db.php on line 86


I am new to this (If you haven't already guessed and would appreciate some guidance....thanks in advance :)
Reply With Quote
  #2 (permalink)  
Old 07-30-2003, 06:12 PM
Administrator
 
Join Date: Jan 2003
Posts: 1,350
Default

First off, I suggest you come sign up for hosting here. Yes, we do offer domain hosting.

I went to your website and I do not see your error nor do I see phpnuke.

What is the URL to your website?
Reply With Quote
  #3 (permalink)  
Old 07-30-2003, 06:20 PM
Junior Member
 
Join Date: Jul 2003
Posts: 11
Send a message via Yahoo to lynmangoro
Default

Hi..thanks for the reply. I currently have the site at lycos as they support pfp and provide the database (this is just for practise purposes). The address of the site should be http://members.lycos.co.uk/lynmangoro/html/

The admin page should be

http://members.lycos.co.uk/lynmangoro/html/admin.php

I am so stuck....really appreciate any help you can give me...thanks
Reply With Quote
  #4 (permalink)  
Old 07-30-2003, 06:34 PM
Administrator
 
Join Date: Jan 2003
Posts: 1,350
Default

It is a database issue. I suggest you run a connection test.

Here is the code to do it:

Code:
<?php require_once("config.php"); $dbcheck = mysql_connect("$dbhost", "$dbuname", "$dbpass"); if (!$dbcheck) { die(" Connection Test Script was unable to connect to MySQL sever! One or more of these variables are wrong in your config.php: <font color=purple>$dbhost, $dbuname, $dbpass</font>"); }else{ echo "<font color=red>If everything looks good, but you still have problems, get the "; echo "<a href=\"http://nukecops.com/downloads-cat-7.htm\">analyzer from NukeCops</a></font> "; echo "Connection Test Script connected to your MySQL sever successfully! "; if (mysql_select_db($dbname)) { echo " Connection to your database \"<font color=purple>$dbname</font>\" was also successful. "; $result = mysql_list_tables($dbname); if (!$result) { print "DB Error, could not list tables\n"; print 'MySQL Error: ' . mysql_error(); die(); } $i=0; $stufftoprint = ""; while ($row = mysql_fetch_row($result)) { $tablename = $row[0]; if($tablename == "".$prefix."_authors") { $result4 = mysql_query("select aid from $tablename"); while(list($admin_name) = mysql_fetch_row($result4)) { $admin_names .= "$admin_name, &"; } } $result3 = mysql_query("select * from $tablename"); $numFields = mysql_num_fields($result3); $fields = "fields"; if($numFields == 1) {$fields = "field";} $stufftoprint .= "Table: <font color=purple>$tablename</font> &($numFields $fields)\n "; $i++; } if($dbtype != "MySQL" AND eregi("mysql",$dbtype)) { echo " <font color=red>But, you need to set </font><font color=purple> \$dbtype = \"MySQL\"; </font>"; echo "<font color=red> && in your config.php!!!!!!!!</font> "; } echo " There are <font color=purple>$i tables</font> in your \"<font color=purple>$dbname</font>\" database "; echo "(by default, there are 89 fields in phpnuke 6.5 and 76 fields in phpnuke 6.0) "; if($i<66) { echo " <font color=red>You don't seem to have all the tables installed. Get the "; echo "<a href=\"http://www.nukeresources.com/modules.php?name=Downloads&d_op=viewdownload&cid=79\">Web Installer</a> for your version of phpnuke</font> "; } echo " These are the admin names (aid) in your nuke_authors table: &<font color=purple>$admin_names</font> "; echo " Now check this list of tables with your nuke.sql file: $stufftoprint"; }else { if(mysql_query("CREATE DATABASE $dbname")) { echo " Your database \"$dbname\" did not exist, but this script just created it sucessfully "; echo "Now, you need to get the appropriate <a href=\"http://www.nukeresources.com/modules.php?name=Downloads&d_op=viewdownload&cid=79\">"; echo "Web Installer from nukeresources.com</a>"; die(); } echo " However, the \"$dbname\" database does not exist. If that is not the correct name, then put in the correct "; echo "name for <font color=purple>\$dbname = \"$dbname\";</font>&& (in your config.php) If you have not created the database yet, then "; echo "create it. If you are not the server, then ask your web host to create it for you. "; echo " Then, get the appropriate <a href=\"http://www.nukeresources.com/modules.php?name=Downloads&d_op=viewdownload&cid=79\">"; echo "Web Installer from nukeresources.com</a>"; } } ?>
Chances are you didnt enter your config.php info correctly.
Reply With Quote
  #5 (permalink)  
Old 07-30-2003, 06:54 PM
Junior Member
 
Join Date: Jul 2003
Posts: 11
Send a message via Yahoo to lynmangoro
Default

Hi, thanks...

I ran the connection test and it says the following..

Fatal error: main(): Failed opening required 'config.php' (include_path='.:/data/apache/php/mmp_lib') in /data/members/free/tripod/uk/l/y/n/lynmangoro/htdocs/test.php on line 2

Could you tell me what this means please and what I need to do to correct it? I have gone over and over the info in the config file and I'm sure it is all correct. Once again, thanks for the help....
Reply With Quote
  #6 (permalink)  
Old 07-30-2003, 07:48 PM
Administrator
 
Join Date: Jan 2003
Posts: 1,350
Default

Uhh thats bad... real bad.

Do you even know if you can run phpnuke from your host?

The translation of what the script said was that it can't find/open the config.php file. Is the file even there?
Reply With Quote
  #7 (permalink)  
Old 07-30-2003, 08:42 PM
Junior Member
 
Join Date: Jul 2003
Posts: 11
Send a message via Yahoo to lynmangoro
Default

Yes to both things....the file is definitely there and the host definitely runs phpnuke. Earlier I had PHPNuke 5.6 up and running in exactly the same place and I did everything the same....is there anything I can do?
Reply With Quote
  #8 (permalink)  
Old 07-30-2003, 09:14 PM
Junior Member
 
Join Date: Jul 2003
Posts: 11
Send a message via Yahoo to lynmangoro
Default

I just deleted the config file from the server and uploadd it again without changing anything and I still doesn't work but the message that I get when I try to access the site has changed to -
Fatal error: Call to undefined function: themeheader() in /data/members/free/tripod/uk/l/y/n/lynmangoro/htdocs/html/header.php on line 47


I'm so confused, Is there any way you can help?
Reply With Quote
  #9 (permalink)  
Old 07-30-2003, 09:27 PM
Administrator
 
Join Date: Jan 2003
Posts: 1,350
Default

Looks like the tables in your database arent setup.

Have you tried talking to your host about any of this?
Reply With Quote
  #10 (permalink)  
Old 07-30-2003, 09:36 PM
Junior Member
 
Join Date: Jul 2003
Posts: 11
Send a message via Yahoo to lynmangoro
Default

No, its a free host, I don't know if they would be very helpful. Would you ba able to explain what tables I need to set up please? I could give you the address of my phpmyadmin if it helps...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:01 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.