Sales Report gives Unsupported Operand Error

  • Posts: 97
  • Thank you received: 6
  • Hikashop Business
2 weeks 7 hours ago #361962

-- HikaShop version -- : 5.1.0
-- Joomla version -- : 4.4.5
-- PHP version -- : 8.2.21
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : An error has occurred.

0 Unsupported operand types: int - string

Call stack
# Function Location
1 () JROOT/administrator/components/com_hikashop/classes/widget.php:625
2 hikashopWidgetClass->data() JROOT/administrator/components/com_hikashop/views/dashboard/view.html.php:89
3 dashboardViewDashboard->widgets() JROOT/administrator/components/com_hikashop/views/dashboard/view.html.php:26
4 dashboardViewDashboard->listing() JROOT/administrator/components/com_hikashop/views/dashboard/view.html.php:17
5 dashboardViewDashboard->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660
6 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2596
7 hikashopController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2305
8 hikashopController->listing() JROOT/libraries/src/MVC/Controller/BaseController.php:693
9 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2574
10 hikashopController->execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
11 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
15 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
16 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
18 require_once() JROOT/administrator/index.php:32

Running the Sales Report with the following parameters gives an error:

O:8:"stdClass":26:{s:7:"display";s:7:"listing";s:9:"date_type";s:7:"created";s:10:"date_group";s:5:"%j %Y";s:10:"periodType";s:14:"proposedPeriod";s:14:"proposedPeriod";s:12:"previousWeek";s:6:"period";s:1:"0";s:7:"content";s:6:"orders";s:7:"filters";s:97:"a:2:{s:14:"a.order_status";a:1:{i:0;s:7:"shipped";}s:19:"a.order_currency_id";a:1:{i:0;s:1:"6";}}";s:15:"category_childs";s:1:"0";s:9:"customers";s:14:"last_customers";s:15:"customers_order";s:5:"sales";s:8:"partners";s:14:"last_customers";s:14:"partners_order";s:5:"sales";s:12:"compare_with";s:6:"values";s:5:"limit";s:2:"20";s:6:"region";s:5:"world";s:6:"format";s:5:"UTF-8";s:10:"map_source";s:8:"shipping";s:12:"product_data";s:5:"sales";s:16:"product_order_by";s:4:"best";s:15:"orders_order_by";s:4:"last";s:24:"orders_total_calculation";s:12:"include_fees";s:10:"categories";s:3:"all";s:8:"products";s:6:"a:0:{}";s:7:"coupons";s:6:"a:0:{}";s:6:"status";s:0:"";}

This results in an Unsupported Operand error and means the entire Dashboard is unavailable.

Please advise if you need any further information or if you need access to the site.

Please Log in or Create an account to join the conversation.

  • Posts: 4618
  • Thank you received: 624
  • MODERATOR
1 week 6 days ago #361971

Hello,

we will need these elements in order to progress on your issue :
- An Url link to your backend (administrator)
- Backend user references (with maximum Acl)
- Describe where and/or with what operation you get this error
- Ftp access
Note : Use our Contact us form to provide these elements, and don't forget to add an Url link to this topic in your message.
Regards

Last edit: 2 weeks 31 minutes ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 82095
  • Thank you received: 13195
  • MODERATOR
1 week 3 days ago #362064

Hi,

For anyone with the same issue, we've added a patch for this problem.
If you're on HikaShop 5.1.0, download again the install package of HikaShop on our website and install it on yours to get the latest version of HikaShop with that patch.
If you're on a lower version of HikaShop, just update HikaShop.
If you're on a higher version of HikaShop, you should not have that error. It's probably another error. Please open a new topic and provide information about your error. You can provide a link to this thread as reference in your message.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum