Notice on Payment methods page

  • Posts: 19
  • Thank you received: 1
10 years 10 months ago #138800

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.2.3
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

i get the following error on the page:
Notice: Undefined index: ,2,78, in /var/www/html/administrator/components/com_hikashop/classes/currency.php on line 1939 Notice: Trying to get property of non-object in /var/www/html/administrator/components/com_hikashop/classes/currency.php on line 1941 Notice: Trying to get property of non-object in /var/www/html/administrator/components/com_hikashop/classes/currency.php on line 1945

what am i doing wrong?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 10 months ago #138829

Hi,

We don't know, we will need more information to understand why such weird data is send to the currency class.

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: 19
  • Thank you received: 1
10 years 10 months ago #138839

which information should i provide you with?

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

  • Posts: 19
  • Thank you received: 1
10 years 10 months ago #138843

After deleting all payment methods and re-configuring them from scratch the problem seems to be solved.

The following user(s) said Thank You: Bobwales

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

  • Posts: 127
  • Thank you received: 6
10 years 5 months ago #158597

Hi
After upgrading to the latest version of HS I too have this same message. Installed only on my local machine for testing first, before going to the live site.
Full message is:

Notice: Undefined index: ,4, in C:\xampp\htdocs\Joomla32\administrator\components\com_hikashop\classes\currency.php on line 1953
Notice: Trying to get property of non-object in C:\xampp\htdocs\Joomla32\administrator\components\com_hikashop\classes\currency.php on line 1955
Notice: Trying to get property of non-object in C:\xampp\htdocs\Joomla32\administrator\components\com_hikashop\classes\currency.php on line 1959
Notice: Undefined index: ,4, in C:\xampp\htdocs\Joomla32\administrator\components\com_hikashop\classes\currency.php on line 1953
Notice: Trying to get property of non-object in C:\xampp\htdocs\Joomla32\administrator\components\com_hikashop\classes\currency.php on line 1955
Notice: Trying to get property of non-object in C:\xampp\htdocs\Joomla32\administrator\components\com_hikashop\classes\currency.php on line 1959

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #158605

Hello,
As Jerome said :

we will need more information to understand why such weird data is send to the currency class.


Did you tried it :

After deleting all payment methods and re-configuring them from scratch the problem seems to be solved.

The following user(s) said Thank You: Bobwales

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

  • Posts: 127
  • Thank you received: 6
10 years 5 months ago #158767

Yep, deleting and re-configuring payment methods solves this issue.
I also tried un-publishing each of the 3 methods I use - didn't solve - and making small changes to each method with a save - again, didn't solve.
Thanks Ilan, Jerome and Mohamed.

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

  • Posts: 127
  • Thank you received: 6
10 years 5 months ago #158818

Ah, spoke too soon. But this is not a critical issue - I can live with the error message, which didn't appear before the update to latest release of Hikashop, so that may offer a clue to one of the Hika Team...

When I re-create one of my payment methods the message returns. (interestfree)

This payment method was written especially for us, to deal with Interest Free Credit that we offer.

Any pointers to the source of the bug gratefully received. Files that make up the plugin are attached.

A long shot, I realise, but the code might help someone looking for a similar plugin (30% down and 6 installments for the rest).

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #159233

Hello,
Are you having an issue when you use an Hikashop payment method like PayPal for example ?

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

  • Posts: 127
  • Thank you received: 6
10 years 5 months ago #159247

Yes Mohamed and thanks for looking.
The plugin that was specially written to process Interest Free Credit Purchases. The files for that plugin are attached in my earlier post. I thought they might give a clue to the bug that is reported since upgrading to the latest version of Hika Shop.

Only that plugin gives the error. The other two payment methods we use are Sage Pay, and Bank Transfer - both original Hika Shop Plugins.

Last edit: 10 years 5 months ago by Bobwales.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 5 months ago #159286

after the line:
function format($number,$currency_id=0,$format_override='') {
add the line:
$currency_id = (int) $currency_id;
in the file administrator\components\com_hikashop\classes\currency.php and that will fix the problem.

The following user(s) said Thank You: Bobwales

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

  • Posts: 127
  • Thank you received: 6
10 years 5 months ago #160411

Perfect, Thank you Nicolas!

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

Time to create page: 0.065 seconds
Powered by Kunena Forum