Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > WHM Autopilot

Notices

Reply
 
Thread Tools
  #1  
Old 04-07-2008, 06:28 PM
miktor miktor is offline
Hatchling Croc
 
Join Date: Apr 2008
Posts: 27
Default Installed, but error at top of page

I installed WHM Autopilot by following the instructions. Everything went smooth but when I made an account and logged in to admin this is the error at the top of every page:

Quote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/mtorosya/public_html/host/tools/step_one_code[0].php on line 258

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/mtorosya/public_html/host/tools/step_one_code[0].php on line 300

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/mtorosya/public_html/host/inc/step_one_tables.php on line 14
Help, please?
Reply With Quote
  #2  
Old 04-07-2008, 06:31 PM
herpherp herpherp is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 43
Default Re: Installed, but error at top of page

Did you setup the mysql? Looks like maybe the password or login is incorrect or not setup.... ( I don't personally use whmap but that would be my guess)
Reply With Quote
  #3  
Old 04-07-2008, 06:58 PM
miktor miktor is offline
Hatchling Croc
 
Join Date: Apr 2008
Posts: 27
Default Re: Installed, but error at top of page

Quote:
Originally Posted by herpherp View Post
Did you setup the mysql? Looks like maybe the password or login is incorrect or not setup.... ( I don't personally use whmap but that would be my guess)
I don't think it is a MySQL password problem since the script accessed it during installation and created a user. I think I will reinstall it completely and see what happens...unless there is an easier way to fix it
Reply With Quote
  #4  
Old 04-07-2008, 11:06 PM
miktor miktor is offline
Hatchling Croc
 
Join Date: Apr 2008
Posts: 27
Default Re: Installed, but error at top of page

I reinstalled...I get the same error

any ideas?
Reply With Quote
  #5  
Old 04-07-2008, 11:27 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: Installed, but error at top of page

Quote:
Originally Posted by miktor View Post
I don't think it is a MySQL password problem since the script accessed it during installation and created a user. I think I will reinstall it completely and see what happens...unless there is an easier way to fix it
I would reinvestigate here. I'm pretty sure mysql scripts can't create Database users. You give them db user information, and the script can create tables and such though.

Also, have you tried reassigning the DB user you're using to the table and granting full permissions?
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #6  
Old 04-07-2008, 11:55 PM
miktor miktor is offline
Hatchling Croc
 
Join Date: Apr 2008
Posts: 27
Default Re: Installed, but error at top of page

When I said created user, I meant the admin account for WHM Autopilot, not a DB user.

I deleted everything and started with a new database but I got the same error. I think the script works, but it gives that error on all the pages.
Reply With Quote
  #7  
Old 04-08-2008, 12:27 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: Installed, but error at top of page

Have you considered trying WHMCS, that everybody likes a lot more than WHMAP and is also free with your hostgator plan?
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #8  
Old 04-08-2008, 12:32 AM
miktor miktor is offline
Hatchling Croc
 
Join Date: Apr 2008
Posts: 27
Default Re: Installed, but error at top of page

Quote:
Originally Posted by slapshotw View Post
Have you considered trying WHMCS, that everybody likes a lot more than WHMAP and is also free with your hostgator plan?
how do i get that? i was only notified of a free WHMAP license so i went for it.

link or something?
Reply With Quote
  #9  
Old 04-08-2008, 03:03 AM
bcmiller bcmiller is offline
Hatchling Croc
 
Join Date: Jun 2006
Location: Melbourne, Australia
Posts: 23
Default Re: Installed, but error at top of page

http://www.whmcs.com/hostgator/
Reply With Quote
  #10  
Old 04-08-2008, 09:33 AM
miktor miktor is offline
Hatchling Croc
 
Join Date: Apr 2008
Posts: 27
Default Re: Installed, but error at top of page

Quote:
Originally Posted by bcmiller View Post
thanks!
Reply With Quote
  #11  
Old 04-08-2008, 02:29 PM
miktor miktor is offline
Hatchling Croc
 
Join Date: Apr 2008
Posts: 27
Default Re: Installed, but error at top of page

thanks for the recommendation.... WHMCS installed without any problems, it looks cleaner, easier to use, pages load faster, etc.

thanks!
Reply With Quote
  #12  
Old 04-09-2008, 10:14 AM
jrettke1 jrettke1 is offline
Junior Croc
 
Join Date: Oct 2007
Location: Bixby, Oklahoma
Posts: 103
Default Re: Installed, but error at top of page

whmap

fail
Reply With Quote
  #13  
Old 04-09-2008, 10:05 PM
dgroesch dgroesch is offline
Hatchling Croc
 
Join Date: Apr 2008
Posts: 3
Default Re: Installed, but error at top of page

With regards to the WHMAP - were you trying to load V2? I have seen other posts stating that the V3 version is not perfect.

With regards to the WHMCS vs WHMAP - which is easier for a new reseller like myself?

Thanks in advance!
Dave
Reply With Quote
  #14  
Old 04-09-2008, 10:18 PM
miktor miktor is offline
Hatchling Croc
 
Join Date: Apr 2008
Posts: 27
Default Re: Installed, but error at top of page

Quote:
Originally Posted by dgroesch View Post
With regards to the WHMAP - were you trying to load V2? I have seen other posts stating that the V3 version is not perfect.

With regards to the WHMCS vs WHMAP - which is easier for a new reseller like myself?

Thanks in advance!
Dave
WHMAP was isntalled just gave some code at the top of every page. Just looking at it made me confused. WHMCS has a very clean interface that is very easy to setup. (I'm a new reseller too)
Reply With Quote
  #15  
Old 06-07-2008, 02:59 PM
Admin003 Admin003 is offline
Hatchling Croc
 
Join Date: Jun 2008
Posts: 1
Default Re: Installed, but error at top of page

Also getting an error msg when logging into the main administration system:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/account_user/public_html/admin/index2.php on line 225

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/account_user/public_html/admin/index2.php on line 232

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/account_user/public_html/admin/index2.php on line 490

I followed all the instructions, step by step. so i don't think this is a user error on my end. I don't have time to wait for hostgator support, so I'm just going to try installing WHMCS instead. Hopefully, my post can help other figure out this issue. It would be interesting to isolate the problem: find out if the problem lies with the MySQL database or the PHP script.
Reply With Quote
  #16  
Old 06-08-2008, 12:43 AM
WHMAutoPilot WHMAutoPilot is offline
Baby Croc
 
Join Date: Feb 2006
Location: Maryland
Posts: 87
Default Re: Installed, but error at top of page

Sounds like it is missing the plan_specs table in the database.

Run the following query against your database and confirm
Code:
CREATE TABLE `plan_specs` (
  `pid` int(11) unsigned NOT NULL auto_increment,
  `gid` int(22) NOT NULL default '0',
  `rid` bigint(22) NOT NULL default '0',
  `addon_gid` bigint(22) NOT NULL default '0',
  `whm_id` bigint(22) NOT NULL default '0',
  `package_name` varchar(255) NOT NULL default '',
  `whm_package_name` varchar(255) NOT NULL default '',
  `plan_status` int(1) NOT NULL default '0',
  `monthly_cost` float NOT NULL default '0',
  `quarterly_cost` float NOT NULL default '0',
  `semi_annual_cost` float NOT NULL default '0',
  `annual_cost` float NOT NULL default '0',
  `monthly_pid` varchar(32) NOT NULL default '',
  `quarterly_pid` varchar(32) NOT NULL default '',
  `semi_annual_pid` varchar(32) NOT NULL default '',
  `annual_pid` varchar(32) NOT NULL default '',
  `setup_cost` float NOT NULL default '0',
  `web_space` int(10) NOT NULL default '0',
  `shell_access` int(1) NOT NULL default '0',
  `ftp` int(25) NOT NULL default '0',
  `email` int(25) NOT NULL default '0',
  `email_list` int(25) NOT NULL default '0',
  `sql` int(25) NOT NULL default '0',
  `sub_domain` int(25) NOT NULL default '0',
  `parked_domain` int(25) NOT NULL default '0',
  `addon_domain` int(25) NOT NULL default '0',
  `unique_ip_activate` int(1) NOT NULL default '0',
  `unique_ip_cost` float NOT NULL default '0',
  `cgi_access` int(1) NOT NULL default '0',
  `frontpage` int(1) NOT NULL default '0',
  `bandwidth` int(20) NOT NULL default '0',
  `cpanel_theme` varchar(255) NOT NULL default '',
  `tpp_pro_period` int(20) NOT NULL default '0',
  `com_type` int(1) NOT NULL default '0',
  `com_rate_month` float NOT NULL default '0',
  `com_rate_onetime` float NOT NULL default '0',
  `free_trial` int(1) NOT NULL default '0',
  `free_trial_length` int(2) NOT NULL default '0',
  `ip_addresses` varchar(50) NOT NULL default '',
  `memory` varchar(50) NOT NULL default '',
  `processor` varchar(50) NOT NULL default '',
  `os` varchar(50) NOT NULL default '',
  `display_text` text NOT NULL,
  `dedicated` int(1) NOT NULL default '0',
  `in_stock` int(5) NOT NULL default '0',
  `internetsecure_period` int(20) NOT NULL default '0',
  PRIMARY KEY  (`pid`)
) TYPE=MyISAM COMMENT='Plan Specifications' AUTO_INCREMENT=1 ;
Thanks.
__________________
Brandee Diggs
+ Owner & Founder
+ WHM.AutoPilot
+ www.whmautopilot.com
Reply With Quote
  #17  
Old 11-10-2008, 07:00 PM
gpembert gpembert is offline
Hatchling Croc
 
Join Date: Nov 2008
Posts: 1
Default Re: Installed, but error at top of page

Worked Great I added that table and all the errors were gone! Thanks so much!
Reply With Quote
  #18  
Old 08-15-2009, 06:34 PM
virtualclues virtualclues is offline
Hatchling Croc
 
Join Date: Aug 2009
Posts: 1
Default Re: Installed, but error at top of page

Thanks for the query fix! It worked. Support told me to reinstall it and I did and all I needed to do was this fix. Ugh! Now let's just see if I can figure out the rest of the program.
Reply With Quote
  #19  
Old 09-15-2009, 01:07 PM
knorr knorr is offline
Hatchling Croc
 
Join Date: Jan 2009
Posts: 1
Default Re: Installed, but error at top of page

It fixed my error too.
Reply With Quote
Reply

Bookmarks

Thread Tools

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

All times are GMT -5. The time now is 08:28 AM.