Warning: mysql_fetch_object(): supplied argument is not a va

Warning: mysql_fetch_object(): supplied argument is not a va

Postby stich » Fri Sep 13, 2013 1:18 am

I'm installing on a hosted linux setup and after hours of trying I am still getting the error
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/learnme/s2/public_html/lms/studentdata/productionnu2/dbfunctions.php on line 74

I tried on my database and the sample database. I had to change the database to learnme_sample as its a hosted server.

Do you know the reason for this error?

I still can't get past the login screen
stich
 
Posts: 3
Joined: Fri Sep 13, 2013 1:13 am

Re: Warning: mysql_fetch_object(): supplied argument is not

Postby massiws » Sat Sep 14, 2013 5:40 pm

stich,
- which nuBuilder package do you install?
- can you access your database with phpmyadmin (or something else)?
- have you properly set the db/your_db_name/config.php file?
massiws
 
Posts: 503
Joined: Thu May 24, 2012 9:38 am
Location: Milan, Italy

Re: Warning: mysql_fetch_object(): supplied argument is not

Postby stich » Sun Sep 15, 2013 1:03 pm

I installed version nubuilder-v2.8.1-12.12.19-Build554
I can access the database with phpmyadmin
I believe i have properly set the both config.php files. Before I had set it up there was a different error message but the error message is different now.
stich
 
Posts: 3
Joined: Fri Sep 13, 2013 1:13 am

Re: Warning: mysql_fetch_object(): supplied argument is not

Postby massiws » Sun Sep 15, 2013 9:59 pm

stich, try to change line 73 in dbfunction.php file:
Code: Select all
72    // check if email has been set up
73    $t1      = mysql_query("Select * From zzsys_setup") or die(mysql_error());
74    $setup   = mysql_fetch_object($t1);

Maybe you can get more information about error.

Max
massiws
 
Posts: 503
Joined: Thu May 24, 2012 9:38 am
Location: Milan, Italy

Re: Warning: mysql_fetch_object(): supplied argument is not

Postby stich » Sun Sep 15, 2013 11:19 pm

Thanks for the post. It was my fault. It was pointing to a different database. I can login now
stich
 
Posts: 3
Joined: Fri Sep 13, 2013 1:13 am

Re: Warning: mysql_fetch_object(): supplied argument is not

Postby massiws » Mon Sep 16, 2013 5:20 am

.
massiws
 
Posts: 503
Joined: Thu May 24, 2012 9:38 am
Location: Milan, Italy


Return to Installation



cron