Private Label and Cobranded VoIP Solutions
BrainCast internet & phone based message/memo recording & reminder organization system
Internet Phone Service and Broadband Phone Service by ViaTalk

Go Back   VoIP Forums, Internet Phone Service Forums, & Web Hosting Forums > CoderForums - Programming Discussion > General Programming Issues > Programming Languages & Technologies > PHP

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-30-2002, 05:34 PM
phreaked phreaked is offline
Registered User
 
Join Date: Jan 2002
Posts: 4
Phpnuke & Mysql Need Help Please

ok im trying to use phpnuke but am running into major problems getting it to connect right to the database.
the database is loaded and has all of the tables it should.
Bellow is the error I get all over my page.
When I rem out the database config in config.php they errors go away. I copied my username/password for the database and the database name exactly as was listed on the MYSQL manager page. I even tried different variations with them. What ever I try the errors still show up. If anyone has run into this problem before please let me know. Here is the table in the config.php that I am having trouble with.

I am also unsure what to enter into the $prefix and $user_prefix fields.

$dbhost = "localhost";
$dbuname = "";
$dbpass = "";
$dbname = "";
$prefix = "";
$user_prefix = "";
$dbtype = "MySQL";


Here is the error that shows up all over my page:


Warning: Supplied argument is not a valid MySQL result resource in /home/techsho/public_html/html/includes/sql_layer.php on line 271

Warning: Supplied argument is not a valid MySQL result resource in /home/techsho/public_html/html/includes/sql_layer.php on line 271

Warning: Supplied argument is not a valid MySQL result resource in /home/techsho/public_html/html/includes/sql_layer.php on line 271



THANKS FOR THE HELP =]
Reply With Quote
  #2  
Old 01-31-2002, 04:00 AM
DCE's Avatar
DCE DCE is offline
On the run.....
 
Join Date: Jan 2001
Location: Here and there
Posts: 690
Could you post the the code for *sql_layer.php*
__________________
DCE

If everything seems to be going well, you have obviously overlooked
something.
Reply With Quote
  #3  
Old 01-31-2002, 05:37 PM
phreaked phreaked is offline
Registered User
 
Join Date: Jan 2002
Posts: 4
Thumbs Down

i decided to try and install phpwebsite and it works like a charm. not sure what went wrong on the install of phpnuke, never got it to work. thanks for the reply DCE =]

-pk
Reply With Quote
  #4  
Old 02-01-2002, 07:25 PM
auto auto is offline
Registered User
 
Join Date: Feb 2002
Location: Ukraine, Kyiv
Posts: 7
You can using PostNuke.


Example my site.
Reply With Quote
  #5  
Old 02-03-2002, 12:50 PM
CutAndPaste CutAndPaste is offline
Registered User
 
Join Date: Jan 2002
Posts: 2
PHP Nuke Problem

The section of file I think you are having problems with is the config.php - I'm using PostNuke asnd the setup is very similar. Either you need to CHMOD this file to 666 so that the set install routine can add your proper details during installation or you need to manually edit this file to the correct values. Something like

$dbhost = "localhost";
$dbuname = "YourDBUserName";
$dbpass = "YouDBPassWord";
$dbname = "YourDBName";
$prefix = "";
$user_prefix = "";
$dbtype = "MySQL";

If you read the file config.php, all the variable have loads of comments. DON'T Post ANY of the above variables info on these or other pages else your site will taken over before you can say "what the...."

Check out the support pages for PHPNuke or PostNuke for more info.

Hope this Helps!

I've started with this stuff a bout 3 weeks ago and it's fairly easy to pick up! Check out http://www.26point2.co.uk - hosted on HOSTROCKET!

Simon
Reply With Quote
  #6  
Old 02-14-2002, 10:00 PM
Eye-On Eye-On is offline
Registered User
 
Join Date: Feb 2002
Posts: 3
I'm having the same problems, CutandPaste's suggestion didn't help, it made it worse
I now have Parse error: parse error in /home/eye-on-/public_html/includes/sql_layer.php on line 277

Fatal error: Call to undefined function: sql_fetch_row() in /home/eye-on-/public_html/mainfile.php on line 81


Anyone out there willing to help out?
Reply With Quote
  #7  
Old 02-14-2002, 10:11 PM
phreaked phreaked is offline
Registered User
 
Join Date: Jan 2002
Posts: 4
ya i still never got it to work right..
phpwebsite works perfect for me and i love it..
give it a try Eye-On =]


-pk
Reply With Quote
  #8  
Old 02-14-2002, 10:48 PM
eporue eporue is offline
Registered User
 
Join Date: Jun 2001
Location: Houston
Posts: 34
I had similar errors with PHP Nuke, and the solution was very simple: make sure that you do not have empty spaces at the end of the config.php file. As silly as it sounds, make sure that at the end, after ?>, there are no spaces.

Good luck. By the way, mine goes extremely well. Look at it at http://deusto.com
Reply With Quote
  #9  
Old 02-15-2002, 10:57 AM
Eye-On Eye-On is offline
Registered User
 
Join Date: Feb 2002
Posts: 3
I've done the above, but...
Warning: Supplied argument is not a valid MySQL result resource in /home/eye-on-/public_html/includes/sql_layer.php on line 283

I'd be very greatful if someone that has previously set up phpnuke on host rocket if someone could help out some more as I really need this up and running ASAP
icq: 58395222 pretty please with a cherry on top!!
Reply With Quote
  #10  
Old 02-15-2002, 07:20 PM
eporue eporue is offline
Registered User
 
Join Date: Jun 2001
Location: Houston
Posts: 34
Mmmm, very strange. Let me see, what I have in my PHP Nuke in HR is:

$dbhost = "localhost";
$dbuname = "Youraccount_YourDBUserName";
$dbpass = "YouDBPassWord";
$dbname = "Youraccount_YourDBName";
$prefix = "";
$user_prefix = "";
$dbtype = "MySQL";

And that is it.

I would recommend deleting all the files, reinstalling PHP Nuke from scartch. and trying that configuration. Also, remember to eliminate spaces at the end in any file that you modify. Ohh, and remember to update the permissions on as stated in the install file (this is probably not your problem).

I will try to contact you later (I have no access to ICQ now ....)
Reply With Quote
  #11  
Old 02-15-2002, 09:20 PM
eporue eporue is offline
Registered User
 
Join Date: Jun 2001
Location: Houston
Posts: 34
I just realiced that my config.php has:

$dbhost = "localhost";
$dbuname = "Youraccount_YourDBUserName";
$dbpass = "YouDBUserPassWord";
$dbname = "Youraccount_YourDBName";
$prefix = nuke;
$user_prefix = "";
$dbtype = "MySQL";


Please note that in dbpass you have to put the password of the user you are using.

And in prefix you have to say "nuke"

Good luck.
Reply With Quote
  #12  
Old 02-16-2002, 06:21 AM
Eye-On Eye-On is offline
Registered User
 
Join Date: Feb 2002
Posts: 3
nuke = no quotation marks?
Reply With Quote
  #13  
Old 02-16-2002, 01:14 PM
eporue eporue is offline
Registered User
 
Join Date: Jun 2001
Location: Houston
Posts: 34
Yes, I have nuke with no quotation marks. I would recommend you to try it with or without the quotation marks.

Eduardo
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump