Fli
07-12-2017, 11:26 PM
Hello, i got following error when i clicked Activate button in WHMCS 6.3.2 / Setup / Addon Modules
Fatal error: Uncaught exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY' (SQL: INSERT INTO `mod_prve` (`id`, `license`, `localkey`) VALUES (1, 'null', NULL);) (SQL: INSERT INTO `mod_prve` (`id`, `license`, `localkey`) VALUES (1, 'null', NULL);)' in /home/MyUsernameHere/public_html/includes/classes/WHMCS/Terminus.php:0 Stack trace: #0 [internal function]: WHMCS\Terminus->whmcsExceptionHandler(Object(Illuminate\Database\Q ueryException)) #1 {main} thrown in /home/MyUsernameHere/public_html/includes/classes/WHMCS/Terminus.php on line 0
Interesting is that i do not use path "/home/" but "/home1/"
But i found that in Addons list there was some addons without name. When enabled error showing (General Options / Other), i saw:
WHMCS Invalid argument supplied for foreach() configaddonmods.php on line 0
The addons are alphabeticaly sorted, so i guessed which addons in need to delete using File Manager. After deleting bad/outdated addons, this addon activation started working.
Fatal error: Uncaught exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY' (SQL: INSERT INTO `mod_prve` (`id`, `license`, `localkey`) VALUES (1, 'null', NULL);) (SQL: INSERT INTO `mod_prve` (`id`, `license`, `localkey`) VALUES (1, 'null', NULL);)' in /home/MyUsernameHere/public_html/includes/classes/WHMCS/Terminus.php:0 Stack trace: #0 [internal function]: WHMCS\Terminus->whmcsExceptionHandler(Object(Illuminate\Database\Q ueryException)) #1 {main} thrown in /home/MyUsernameHere/public_html/includes/classes/WHMCS/Terminus.php on line 0
Interesting is that i do not use path "/home/" but "/home1/"
But i found that in Addons list there was some addons without name. When enabled error showing (General Options / Other), i saw:
WHMCS Invalid argument supplied for foreach() configaddonmods.php on line 0
The addons are alphabeticaly sorted, so i guessed which addons in need to delete using File Manager. After deleting bad/outdated addons, this addon activation started working.