Error in PayPal payment module

  • Posts: 1
  • Thank you received: 0
11 years 3 months ago #118112

-- url of the page with the problem -- : plugins\hikashoppayment\paypal\paypal.php
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 2.5.11
-- PHP version -- : 5.4.16
-- Browser(s) name and version -- : unimportant
-- Error-message(debug-mod must be tuned on) -- : Error_message

in paypal.php in PayPal payment module there is undefined variable on line 355:

$email->body = str_replace('<br/>',"\r\n",JText::sprintf('PAYMENT_NOTIFICATION_STATUS','Paypal',$vars['payment_status'])).' '.JText::sprintf('ORDER_STATUS_CHANGED',$order->mail_status)."\r\n\r\n".$order_text;


specifically variable $order is not defined in current function thus errors appears in log:
Notice:  Undefined variable: order in C:\app\xampp\htdocs\joomla25\plugins\hikashoppayment\paypal\paypal.php on line 355
Notice:  Trying to get property of non-object in <b>C:\app\xampp\htdocs\joomla25\plugins\hikashoppayment\paypal\paypal.php on line 355

It seems that $order should be changed with $dbOrder

Last edit: 11 years 3 months ago by dtyger. Reason: line ordering

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #118128

Thanks for the feedback.
$order->mail_status should actually be changed to $order_status

I've changed that on our end.

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

  • Posts: 21
  • Thank you received: 0
11 years 3 months ago #120275

Hello, has this been uploaded to the package yet?

I'm wondering if this is the cause of continual "Undefined" errors in my Cart??

do I need to change something manually myself?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #120277

That has not been included yet in the publicly available package. It will be in HikaShop 2.2.1 when we release it.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum