THT Community (TCom)
Fatal Error on signup - Printable Version

+- THT Community (TCom) (https://thehostingtool.com/forum)
+-- Forum: Archive (/forum-40.html)
+--- Forum: THT Bug Report (/forum-25.html)
+--- Thread: Fatal Error on signup (/thread-390.html)

Pages: 1 2


Fatal Error on signup - jamiet757 - 09-08-2009 02:49 PM

THT Version:1.2
Browser (including version):Firefox 3.5.2
Your Operating System:Vista 64-bit SP2
Server's Operating System:Linux
Apache Version:2.2.13
Control Panel Type: WHM
Control Panel Version:11.24.2
Error:When signing up, I get this message after the signup is completed:
Your account has been completed!
You may now use the client login bar to see your client area or proceed to your control panel. An email has been dispatched to the address on file.
Fatal error: Cannot redeclare class whm in /home2/blufireh/public_html/includes/servers/whm.php on line 9


RE: Fatal Error on signup - Kevin - 09-08-2009 05:02 PM

Please use the Quik Paste guidelines.


RE: Fatal Error on signup - jamiet757 - 09-08-2009 05:19 PM

(09-08-2009 05:02 PM)Kevin M Wrote:  Please use the Quik Paste guidelines.

Fixed.


RE: Fatal Error on signup - Jonny - 09-08-2009 05:26 PM

Is this a paid account?


RE: Fatal Error on signup - Kevin - 09-08-2009 05:27 PM

This is the beginning of the 1.2 whm.php Line 9 is marked.
PHP Code:
<?php
//////////////////////////////
// The Hosting Tool
// cPanel/WHM Server Class
// By Jonny H and Kevin M
// Released under the GNU-GPL
//////////////////////////////

class whm // <--- Line 9
    
    # START THE MO TRUCKIN FUNCTIONS #
    
    
public $name "cPanel/WHM"# THT Values
    
public $hash true# Password or Access Hash?
    
    
private $server

Looks like whm.php is being included twice along the line somewhere. Odd. Anybody else having this problem? Does this problem always happen or was this just a random incident?


RE: Fatal Error on signup - adi003 - 09-13-2009 01:25 AM

and this one at paid hosting

PHP Code:
Fatal errorUncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/ihostnet/public_html/tht/includes/servers/whm.php:61 Stack trace#0 /home/ihostnet/public_html/tht/includes/servers/whm.php(61): SimpleXMLElement->__construct('') #1 /home/ihostnet/public_html/tht/includes/servers/whm.php(105): whm->remote('/xml-api/create...') #2 /home/ihostnet/public_html/tht/includes/class_server.php(139): whm->signup('3', '0') #3 /home/ihostnet/public_html/tht/includes/ajax.php(124): server->signup() #4 /home/ihostnet/public_html/tht/includes/ajax.php(939): AJAX->create() #5 {main} thrown in /home/ihostnet/public_html/tht/includes/servers/whm.php on line 61 

and this is for the free hosting

PHP Code:
Fatal errorUncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/ihostnet/public_html/tht/includes/servers/whm.php:61 Stack trace#0 /home/ihostnet/public_html/tht/includes/servers/whm.php(61): SimpleXMLElement->__construct('') #1 /home/ihostnet/public_html/tht/includes/servers/whm.php(105): whm->remote('/xml-api/create...') #2 /home/ihostnet/public_html/tht/includes/class_server.php(139): whm->signup('3', '0') #3 /home/ihostnet/public_html/tht/includes/ajax.php(124): server->signup() #4 /home/ihostnet/public_html/tht/includes/ajax.php(939): AJAX->create() #5 {main} thrown in /home/ihostnet/public_html/tht/includes/servers/whm.php on line 61 



RE: Fatal Error on signup - Jonny - 09-13-2009 03:54 AM

Your server details are wrong.
It's not connecting.

Make sure it's localhost if internal and all your access hash is setup properly.


RE: Fatal Error on signup - jamiet757 - 09-13-2009 08:30 PM

My server is set up correctly, and I just tried another test signup, and got the same error message, so it is not a random occurrence.


RE: Fatal Error on signup - Kevin - 09-13-2009 11:39 PM

Did you enable SSL in the security settings? If so, switch it off, if not, switch it on.


RE: Fatal Error on signup - jamiet757 - 09-14-2009 02:00 AM

Had SSL disabled, tried enabling it and creating another account, the error still appears.