Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

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

Locked
stich
Posts: 3
Joined: Thu Sep 12, 2013 5:43 pm

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

Unread post by stich »

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
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

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

Unread post by massiws »

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?
stich
Posts: 3
Joined: Thu Sep 12, 2013 5:43 pm

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

Unread post by stich »

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.
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

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

Unread post by massiws »

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
stich
Posts: 3
Joined: Thu Sep 12, 2013 5:43 pm

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

Unread post by stich »

Thanks for the post. It was my fault. It was pointing to a different database. I can login now
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

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

Unread post by massiws »

.
Locked