- Posts: 19
- Thank you received: 1
Notice on Payment methods page
- ilan.power
-
Topic Author
- Offline
-- 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.
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.
- ilan.power
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- ilan.power
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 1
Please Log in or Create an account to join the conversation.
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
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.
Please Log in or Create an account to join the conversation.
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.
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.
- Posts: 12953
- Thank you received: 1778
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.
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.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.