Jump to content
  • 0

error adding product to basket cpanel module


Question

Posted
[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.

4 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted
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

image.png

  • 0
Posted

Update line 864:

$this->Html->ifSet($vars->cpanel_domain, $vars->domain),

to

$this->Html->ifSet($vars->cpanel_domain, $this->Html->ifSet($vars->domain)),

 

  • 0
Posted
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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...