- Posts: 54
- Thank you received: 0
0 Call to a member function getFieldName() on null
9 years 6 months ago - 9 years 6 months ago #270494
by Wrosch
0 Call to a member function getFieldName() on null was created by Wrosch
-- url of the page with the problem -- : localhost
-- HikaShop version -- : 3.1.0
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0.13
-- Browser(s) name and version -- : firefox 53
-- Error-message(debug-mod must be tuned on) -- : 0 Call to a member function getFieldName() on null
Hi.
I downloaded the last version of hikashop and installed it with default sample data on a clean joomla. After clicking add to cart I receive an error message and the entire order form takes up the whole screen. In version 3.0.1 I had no such problems.
-- HikaShop version -- : 3.1.0
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0.13
-- Browser(s) name and version -- : firefox 53
-- Error-message(debug-mod must be tuned on) -- : 0 Call to a member function getFieldName() on null
Hi.
I downloaded the last version of hikashop and installed it with default sample data on a clean joomla. After clicking add to cart I receive an error message and the entire order form takes up the whole screen. In version 3.0.1 I had no such problems.
Last edit: 9 years 6 months ago by Wrosch.
Please Log in or Create an account to join the conversation.
9 years 6 months ago #270498
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic 0 Call to a member function getFieldName() on null
Hello,
Can you please activate your debug mode in order to get the call stack ?
Thanks to that, we will be able to know from where the problem is coming from ; like that we can't know which file is incriminated and that function is used in a lot of views !
If you can also provide us your checkout workflow, it will be useful.
Regards,
Can you please activate your debug mode in order to get the call stack ?
Thanks to that, we will be able to know from where the problem is coming from ; like that we can't know which file is incriminated and that function is used in a lot of views !
If you can also provide us your checkout workflow, it will be useful.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
9 years 6 months ago - 9 years 6 months ago #270522
by Wrosch
Replied by Wrosch on topic 0 Call to a member function getFieldName() on null
Screens from debug mode.
Checkout workflow is also default.
Checkout workflow is also default.
Last edit: 9 years 6 months ago by Wrosch.
Please Log in or Create an account to join the conversation.
9 years 6 months ago #270525
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic 0 Call to a member function getFieldName() on null
Hello,
In the file "administrator/components/com_hikashop/classes/field.php" please replace
By
It should avoid the error when you're using a custom field which do not have a dedicated class.
Regards,
In the file "administrator/components/com_hikashop/classes/field.php" please replace
Code:
if(!class_exists($classType))
return false;
Code:
if(!class_exists($classType))
return new hikashopFieldItem($this);
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: Wrosch
Please Log in or Create an account to join the conversation.
9 years 6 months ago - 9 years 6 months ago #270577
by Wrosch
Replied by Wrosch on topic 0 Call to a member function getFieldName() on null
Hi.
Maybe i'm blind
, but in which line should be this code, because after searching the file 3 times I did not find such code.
Maybe i'm blind
Last edit: 9 years 6 months ago by Jerome.
Please Log in or Create an account to join the conversation.
9 years 6 months ago #270579
by nicolas
Replied by nicolas on topic 0 Call to a member function getFieldName() on null
Hi,
Right. The code to replace is:
You can find it on line 1579 of your file.
Let us know how it goes so that we can include the modification on our end.
Right. The code to replace is:
Code:
if(!class_exists($classType))
return $value;
Let us know how it goes so that we can include the modification on our end.
The following user(s) said Thank You: Wrosch
Please Log in or Create an account to join the conversation.
9 years 6 months ago #270583
by Wrosch
Replied by Wrosch on topic 0 Call to a member function getFieldName() on null
Yes. Now works perfectly. Thanks a lot.
Please Log in or Create an account to join the conversation.
9 years 6 months ago #270584
by nicolas
Replied by nicolas on topic 0 Call to a member function getFieldName() on null
Thanks. We'll include the fix on our end.
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds