MDHMatt Posted March 9, 2020 Report Share Posted March 9, 2020 [2020-03-09 15:20:27] general.ERROR: UnknownException: Undefined property: stdClass::$domain in /home/XXXXX/public_html/XXXX/components/modules/cpanel/cpanel.php:864 Stack trace: #0 [internal function]: UnknownException::setErrorHandler(8, 'Undefined prope...', '/home/XXXXX/...', 864, Array) #1 /home/XXXXX/public_html/XXXX/vendors/monolog/monolog/src/Monolog/ErrorHandler.php(173): call_user_func(Array, 8, 'Undefined prope...', '/home/XXXXX/...', 864, Array) #2 /home/XXXXX/public_html/XXXX/components/modules/cpanel/cpanel.php(864): Monolog\ErrorHandler->handleError(8, 'Undefined prope...', '/home/XXXXX/...', 864, Array) #3 /home/XXXXX/public_html/XXXX/plugins/order/controllers/config.php(148): Cpanel->getClientAddFields(Object(stdClass), Object(stdClass)) #4 /home/XXXXX/public_html/XXXX/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): Config->index() #5 /home/XXXXX/public_html/XXXX/index.php(21): Dispatcher::dispatch('/XXXXX/order/...') #6 {main} anyone had an issue where when you add an item to the basket you get the error shown above? It seems to be with the cpanel module but im not sure what's up with it. Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted March 9, 2020 Report Share Posted March 9, 2020 A domain field that cPanel is looking for must not be provided from user input. The lack of the field should be handled more gracefully. In any case, you can upgrade to the latest version of Blesta/cPanel to see if that resolves the issue, or look at the cpanel file referenced in the error on line 864. For the latter, check the context of the "$vars->domain" usage. It should be wrapped in Html::ifSet, e.g. "$this->Html->ifSet($vars->domain)". That should resolve the error. Quote Link to comment Share on other sites More sharing options...
0 MDHMatt Posted March 9, 2020 Author Report Share Posted March 9, 2020 2 hours ago, Tyson said: A domain field that cPanel is looking for must not be provided from user input. The lack of the field should be handled more gracefully. In any case, you can upgrade to the latest version of Blesta/cPanel to see if that resolves the issue, or look at the cpanel file referenced in the error on line 864. For the latter, check the context of the "$vars->domain" usage. It should be wrapped in Html::ifSet, e.g. "$this->Html->ifSet($vars->domain)". That should resolve the error. attached is what is there. its come about after doing a full upgrade from 4.7.2 to 4.8.1. cPanel is fully updated also Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted March 9, 2020 Report Share Posted March 9, 2020 Update line 864: $this->Html->ifSet($vars->cpanel_domain, $vars->domain), to $this->Html->ifSet($vars->cpanel_domain, $this->Html->ifSet($vars->domain)), Quote Link to comment Share on other sites More sharing options...
0 MDHMatt Posted March 10, 2020 Author Report Share Posted March 10, 2020 8 hours ago, Tyson said: Update line 864: $this->Html->ifSet($vars->cpanel_domain, $vars->domain), to $this->Html->ifSet($vars->cpanel_domain, $this->Html->ifSet($vars->domain)), Thank you! this has fixed it. Tyson 1 Quote Link to comment Share on other sites More sharing options...
Question
MDHMatt
anyone had an issue where when you add an item to the basket you get the error shown above? It seems to be with the cpanel module but im not sure what's up with it.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.