Jump to content
  • 0

error adding product to basket cpanel module


MDHMatt

Question

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...