Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
MySQL Installation issue

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
MySQL Installation issue
Author Message
beef_yo



Joined: 25 Sep 2006
Posts: 9
Location: New Zealand

Post MySQL Installation issue Reply with quote
Hi Guys,



I am having issues installing CuteNews using a MySQL database.



I when I install CuteNews I get this error:



Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\Inetpub\wwwroot\life\upload3\inc\db\mysql.class.php on line 107



Which is this line in the table_exists function:



Code:
       for ($i = 0; $i < mysql_num_rows($list); $i++){




And when I add a line of debug code I get this additional information:



Unknown database 'life'



And funnily enough, the database has not been created.



If I manually create the database first, then install CuteNews, it creates the tables successfully, but no data is entered. Then of course when I go to log in my username/password comes back as incorrect, along with the error message:



Warning: Invalid argument supplied for foreach() in c:\Inetpub\wwwroot\life\upload3\inc\functions.inc.php on line 56



Which is this line in the check_login function:



Code:
   foreach ($members as $row){




To me it seems the script is having real difficulties communicating with the MySQL database. I'm guessing it's something to do with my specific server, as it has had other MySQL difficulties in the past. I'm hoping however that someone has experienced a similar error, or worked with a similar set up and may know a solution.



Details of web server:



Windows Server 2003

IIS 6.0

PHP ver 5.1.6

MySQL 5.0.24a

[/code]
Tue Oct 10, 2006 9:34 pm View user's profile Send private message
Guest








Please login to hide the ads.

ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
i think the problem is with ur PHP 5!! (I am using windows server 2003 with IIS6 as well) There has been a number of issues with PHP5! There is a work aroun for post-installation issues here



http://english.cutenews.ru/forum/viewtopic.php?t=819&highlight=php5



May be u cud ask hawk how he managed thru the installation!!
Wed Oct 11, 2006 3:45 am View user's profile Send private message
beef_yo



Joined: 25 Sep 2006
Posts: 9
Location: New Zealand

Post Reply with quote
Hi ksen,



Thanks for the reply.



I think I'll first try convincing my admin to downgrade to MySQL 4 - seeing as him and me are the only ones using it. Will hopefully save some effort on my part Wink
Fri Oct 20, 2006 4:56 am View user's profile Send private message
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
Consider downgrading to php 4.x as well cos from what i'v read that seems to have some issues as well!! But i dont know it might work on ur's!! Give it a try Exclamation
Fri Oct 20, 2006 12:58 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
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
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.