Common Errors

From TheHostingTool Wiki
Jump to navigationJump to search

Package Issues

Common Causes

  • Spaces in package name in WHM.

Fixes

  • Remove spaces from package names.

Common Errors

Fatal error: Uncaught exception 'Exception'

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML'
in /home/****/public_html/billing/includes/servers/whm.php:49 Stack trace: #0
/home/****/public_html/billing/includes/servers/whm.php(49): SimpleXMLElement->__construct('') #1
/home/****/public_html/billing/includes/servers/whm.php(71): whm->remote('/xml-api/create...') #2
/home/****/public_html/billing/includes/class_server.php(111): whm->signup('1', '0') #3
/home/****/public_html/billing/includes/ajax.php(115): server->signup()
#4 /home/****/public_html/billing/includes/ajax.php(552): AJAX->create()
#5 {main} thrown in /home/****/public_html/billing/includes/servers/whm.php on line 49

Common Causes

  • The server details are incorrect. Make sure all fields are correct and generate a new API key.
  • The server is down
  • THT expected to parse XML but WHM gave it other text

Fixes

Check Server Details

Checks and correct your server details and generate and use a new access hash.

Enable SSL for WHM

If you are getting this error with WHM, then enable SSL security for WHM in the Admin Area -> General Settings -> Security Settings and this should prevent this error.

THT 1.1.2 Error Patch

USE AT YOUR OWN RISK
This patch for THT 1.1.2 will fix any issues you have connecting. This is not for use with THT 1.2 or above and will not be supported.

Order page hangs on Step 5 (Creating account)/Blank Error

Common Causes

  • The server is down
  • Server details are incorrect
  • The username is abnormal or too long

Fixes

Make sure WHM is accessible and that THT can contact WHM. Triple-check your server details, make sure the username isn't more than eight characters, and that it doesn't contain strange (special) characters such as @, $, #, %, ^, etc.

Order page shows all Xs on details

Common Causes

  • URL information is incorrect.
  • Permissions are incorrect.

Fixes

Make sure that the URL you are using in your browser to access the order page is exactly as it is set in your General Configuration URL. If your General Configuration URL is http://www.yourhost.com/tht then the order page will only work when you visit http://www.yourhost.com/tht/order (http://yourhost.com/tht/order WILL NOT WORK).

Known Bugs

#0001: Only 1 subdomain when ordering

  • Version acknowledged: 1.2
  • Version fixed: [unknown]
  • Date acknowledged: [unknown]

Patched bugs

#0002: shell_exec() on installer

  • Version acknowledged: 1.2
  • Version fixed: 1.2.1
  • Date acknowledged: [unknown]
  • Fixed by: Kevin

#0003: Type does not exist

  • Version acknowledged: 1.2
  • Version fixed: 1.2.1
  • Date acknowledged: [unknown]
  • Fixed by: Kevin

#0004: Undefined tooltip on change password ACP page

  • Version acknowledged: 1.2
  • Version fixed: 1.2.1
  • Date acknowledged: [unknown]
  • Fixed by: Kevin

#0005: Username above 8 characters doesn't return error

  • Version acknowledged: 1.2
  • Version fixed: 1.2.1
  • Date acknowledged: [unknown]
  • Fixed by: Kevin

#0006: ereg() is deprecated

  • Version acknowledged: [all]
  • Version fixed: 1.2.1
  • Date acknowledged: [unknown]
  • Fixed by: Kevin

#0007: Class Whm should not be redeclared

  • Version acknowledged: 1.2
  • Version fixed: 1.2.1
  • Date acknowledged: [unknown]
  • Fixed by: Jonny
  • Notes: PHP configuration issue on some servers was repaired.

#0008: Username truncatation

  • Description: When the user enters a username over length of 8 WHM truncates it to 8 letters causing the user the have an incorrect login for WHM.
  • Version acknowledged: 1.2
  • Version fixed: 1.2.1
  • Date acknowledged: [unknown]
  • Fixed by: Kevin

#0009: Usernames beginning with numbers

  • Description: WHM does not support usernames beginning with a number.
  • Version acknowledged: 1.2
  • Version fixed: 1.2.2
  • Date acknowledged: 2-22-10
  • Fixed by: KuJoe

#0010: Usernames can't have special characters

  • Description: WHM does not support usernames with special characters like _
  • Version acknowledged: 1.2.1
  • Version fixed: 1.2.2
  • Date acknowledge: 3-29-10
  • Fixed by: KuJoe