View Full Version : Installation error
Gononda
08-18-2009, 02:44 PM
Hi, I get this error when trying to install the adoptables script:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\adoptables\inc\functions.php on line 183
SleepWalker
08-19-2009, 03:36 AM
Hi, I get this error when trying to install the adoptables script:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\adoptables\inc\functions.php on line 183
You must upload it to a FTP server.The URL must be:http://yoursite.com/adoptables/etc.,not C:/!
Gononda
08-19-2009, 05:05 AM
I'm using a localhost. One should be able to run the Adoptables script from a localhost.
SleepWalker
08-19-2009, 12:22 PM
I'm using a localhost. One should be able to run the Adoptables script from a localhost.
Localhost is not C:/.In MySQL,the localhost server name is common.If your SQL server is not localhost,the server name is the SQL address.Example:
something.yoursite.sql OR sql.yoursite.com OR etc..
Gononda
08-19-2009, 12:37 PM
I was trying to install it in wamp (http://www.wampserver.com/en/) which I'm running on my computer. Wamp includes php, mysql etc. I've installed many other scripts (e.g. forum scripts) on wamp before, but I get the above mentioned error when trying to install the Adoptables Script.
SleepWalker
08-19-2009, 12:42 PM
Use 000webhost.com.I tried it and it's cool!I will make a tutorial to you.
Gononda
08-19-2009, 12:48 PM
Thanks for the recommendation. I'll check it out. But I'm still looking for an answer why I get the 'Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource' error when trying to install this mod.
BMR777
08-19-2009, 01:38 PM
What step of the installation is this happening on and what is the page URL that appears in the browser address bar at the time you get this error?
You are correct in saying that it should be possible to install on a localhost installation. :)
Gononda
08-20-2009, 05:34 PM
Thanks for your reply. I realized that I have to go to the 'install' directory to install. (there should actually be some detection in the root to see if installation was done, and if not yet installed, redirect you to /install - as is done with many other scripts).
I also noticed a few bugs in the install:
1. One should not have to be asked to specify:
Domain Name
Script Path
-these should be detected by the script.
2.
On my localhost, a database password is not set, so I usually use:
db username: root
db: (leave blank)
but I get this error in this script when leaving it blank:
"Something required was left blank. Please go back and try again."
-meaning I still can't get this installed.[hr]
Use 000webhost.com.I tried it and it's cool!I will make a tutorial to you.
Beware of this host, as can be seen in the many negative reviews they got here:
http://www.web-hosting-top.com/web-hosting/web-hosting-top.000webhost.com-reviews
BMR777
08-20-2009, 05:43 PM
The database password thing is simply for security. You can bypass it by opening install > configwrite.php and find:
if($dbuser == "" or $dbpass == "" or $dbname == "" or $domain == "" or $prefix == ""){
die("Something required was left blank. Please go back and try again.");
}
Replace With:
if($dbuser == "" or $dbname == "" or $domain == "" or $prefix == ""){
die("Something required was left blank. Please go back and try again.");
}
That will allow you to install without a database password. :)
Gononda
08-22-2009, 12:18 PM
Thanks, I got it installed. But I don't quite get this script. What is the purpose of it? You click on a big green circle/image daily, and then the image can change, then what?
Also: I wasn't able to find a good description anywhere of what this script does. For example the description on the main adoptables page:
http://www.rusnakweb.com/adoptables.php
doesn't go into too much detail.
BMR777
08-22-2009, 02:30 PM
It lets you start a virtual pet website. The green circle is supposed to instead be a virtual pet you create, then users "adopt" it, level it up, etc. Basically your users create and grow virtual pets. That's really it. :)
Gononda
08-22-2009, 03:13 PM
But what is meant with "grow"? What aspects of the pet can change?
Ashje
08-22-2009, 05:49 PM
A member would join the site and go to the adopts page. Here they would adopt an image you have available and then go to their myadopts page and get the BB/HTML Code for it. THey would then past said code into their signature on a forum or on MySpace, etc. and other internet users would click it. Every time they clicked it they would raise it's level. When it gets to a high enough level, it evolves. It's like Pokemon. When a Pokemon evolves, it's image changes. That's what happens here. The image will change. It is a competition to see who can get the highest level pet, viewed on the stats page. Kids normally love this type of site. A good example would be PokePlushies, although I don't know if the use Brandon's script, it's very similar.
Gononda
08-22-2009, 06:10 PM
Now that's a great explanation! Thanks Ashje.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.