error mail in payment
11 years 2 weeks ago #214718
by kaya
error mail in payment was created by kaya
-- HikaShop version -- : 2.x.x
-- Joomla version -- : 2.5
Hi dear
I have this error in payment
Catchable fatal error: Object of class stdClass could not be converted to string in administrator/components/com_hikashop/classes/mail.php on line 279
how can fix this error?
-- Joomla version -- : 2.5
Hi dear
I have this error in payment
Catchable fatal error: Object of class stdClass could not be converted to string in administrator/components/com_hikashop/classes/mail.php on line 279
how can fix this error?
Please Log in or Create an account to join the conversation.
11 years 1 week ago #214725
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic error mail in payment
Hi,
Please provide your exact HikaShop version number.
Regards,
Please provide your exact HikaShop version number.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
11 years 1 week ago #214789
by kaya
Replied by kaya on topic error mail in payment
Hikashop version number is: 2.2.2
i should use this version and can't update now.
How can fix my error?
i should use this version and can't update now.
How can fix my error?
Please Log in or Create an account to join the conversation.
11 years 1 week ago #214804
by nicolas
Replied by nicolas on topic error mail in payment
Hi,
You want to replace the code:
in that file by:
and that will fix the problem. That's actually already fixed like that in newer versions of HikaShop, so updating would also fix the problem automatically.
You want to replace the code:
Code:
$content = str_replace('{VAR:'.$k.'}', '', $content);
Code:
if(is_string($v) || is_int($v) || is_float($v))
$content = str_replace('{VAR:'.$k.'}', $v, $content);
else if(is_object($v) || is_array($v)) {
foreach($v as $objK => $objV) {
if(is_string($objV) || is_int($objV) || is_float($objV))
$content = str_replace('{VAR:'.$k.'.'.$objK.'}', $objV, $content);
}
}
The following user(s) said Thank You: kaya
Please Log in or Create an account to join the conversation.
Time to create page: 0.179 seconds