Joomla error when deleting product.

  • Posts: 28
  • Thank you received: 5
  • Hikashop Business
9 months 4 days 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: 83007
  • Thank you received: 13398
  • MODERATOR
9 months 3 days 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: 28
  • Thank you received: 5
  • Hikashop Business
7 months 3 weeks 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.058 seconds
Powered by Kunena Forum