Frontend adding payment with points error

  • Posts: 683
  • Thank you received: 8
  • Hikashop Business
1 year 1 month ago #310099

-- HikaShop version -- : 4.2.1
-- HikaMarket version -- : 3.0.2
-- Joomla version -- : 3.9.11
-- PHP version -- : 7.0.2

Hi!
I believe I found a bug while I was adding as a vendor my payment methods. Adding HikaShop User Points payment plugin, I got
Call to a member function display() on null.
Please try it as vendor

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

  • Posts: 24406
  • Thank you received: 3757
  • MODERATOR
1 year 1 month ago #310100

Hello,

Please activate the Joomla debug mode in order to have the callstack (which will indicate in which file the error is).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 683
  • Thank you received: 8
  • Hikashop Business
1 year 1 month ago #310120

0
Call to a member function display() on null

Αρχική Σελίδα
Call stack
# Function Location
1 () JROOT/plugins/hikashoppayment/userpoints/userpoints_configuration.php:39
2 require() JROOT/components/com_hikamarket/views/pluginmarket/view.html.php:566
3 pluginmarketViewpluginmarket->loadPluginTemplate() JROOT/components/com_hikamarket/views/pluginmarket/view.html.php:377
4 pluginmarketViewpluginmarket->form() JROOT/components/com_hikamarket/views/pluginmarket/view.html.php:21
5 pluginmarketViewpluginmarket->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
6 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikamarket/helpers/helper.php:1626
7 hikamarketController->display() JROOT/components/com_hikamarket/controllers/plugin.php:145
8 pluginMarketController->edit() JROOT/libraries/src/MVC/Controller/BaseController.php:710
9 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikamarket/helpers/helper.php:1692
10 hikamarketController->execute() JROOT/components/com_hikamarket/hikamarket.php:76
11 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
12 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
13 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:194
14 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:233
15 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196
16 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49

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

  • Posts: 70518
  • Thank you received: 10587
  • MODERATOR
1 year 1 month ago #310126

Hi,

Add the code:

$this->categoryType = hikashop_get('type.categorysub');
$this->categoryType->type = 'tax';
$this->categoryType->field = 'category_id';
before the line 39 of the file /plugins/hikashoppayment/userpoints/userpoints_configuration.php and it should fix the problem.
We'll add another patch on our end to fix the problem in a cleaner way.

The following user(s) said Thank You: verzevoul

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

Moderators: Obsidev
Time to create page: 0.061 seconds
Powered by Kunena Forum