Joomla error when deleting product.

  • Posts: 13
  • Thank you received: 3
  • Hikashop Business Hikashop Style
1 month 2 weeks ago #359801

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 5.0.3
-- Browser(s) name and version -- : 8.1.27

I am trying to correct the following issue:
When deleting a product I receive the following error:

Joomla\CMS\Event\Model\DeleteEvent::onSetSubject(): Argument #1 ($value) must be of type object, int given, called in /home/pachidjz/demo.pachecolodge.org/libraries/src/Event/AbstractEvent.php on line 225
However, the product is getting deleted.
Thank you for help with this.

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 month 1 week ago #359806

Hi,

I would recommend editing the file libraries/src/Event/AbstractEvent.php and then, on line 223, add such code:

if(function_exists('hikashop_writeToLog')) {
 hikashop_writeToLog(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)));
}
Then, on one tab of your browser, open the HikaShop configuration page, and on another tab, reproduce the issue.
Once the the issue is reproduced, go to the tab with the HikaShop configuration, and under the Files area, open the "payment log file".
This will open a popup with debug information. The latest entry should contain the debug information added by this code modification. It will allow us and you to better understand why this is happening.

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

  • Posts: 13
  • Thank you received: 3
  • Hikashop Business Hikashop Style
5 days 8 hours ago #360529

This issue seems to have corrected itself after the last update. Thank you.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.056 seconds
Powered by Kunena Forum