Skip to main content

Notice on Payment methods page

More
12 years 8 months ago #138800 by ilan.power
-- 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.

More
12 years 8 months ago #138829 by Jerome
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.

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

More
12 years 8 months ago #138839 by ilan.power
which information should i provide you with?

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

More
12 years 8 months ago #138843 by ilan.power
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.

More
12 years 3 months ago #158597 by Bobwales
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.

More
12 years 3 months ago #158605 by Mohamed Thelji
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.

More
12 years 3 months ago #158767 by Bobwales
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.

More
12 years 3 months ago #158818 by Bobwales
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).

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

More
12 years 3 months ago #159233 by Mohamed Thelji
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.

More
12 years 3 months ago - 12 years 3 months ago #159247 by Bobwales
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: 12 years 3 months ago by Bobwales.

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

More
12 years 3 months ago #159286 by nicolas
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.

More
12 years 3 months ago #160411 by Bobwales
Perfect, Thank you Nicolas!

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

Time to create page: 0.280 seconds
Powered by Kunena Forum