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.