error mail in payment

  • Posts: 120
  • Thank you received: 2
9 years 11 months ago #214718

-- 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?

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

  • Posts: 26266
  • Thank you received: 4044
  • MODERATOR
9 years 11 months ago #214725

Hi,

Please provide your exact HikaShop version number.

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: 120
  • Thank you received: 2
9 years 11 months ago #214789

Hikashop version number is: 2.2.2
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.

  • Posts: 84247
  • Thank you received: 13690
  • MODERATOR
9 years 11 months ago #214804

Hi,

You want to replace the code:

$content = str_replace('{VAR:'.$k.'}', '', $content);
in that file by:
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);
				}
			}
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.

The following user(s) said Thank You: kaya

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

Time to create page: 0.060 seconds
Powered by Kunena Forum