[Skip to main content](#vessel-content)

#   0 Call to a member function getFieldName() on null

##

- **[Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")**
- [![Wrosch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49628-wrosch "View Wrosch's Profile") Topic Author
- [ Offline](/forum/user/49628-wrosch)

Less More

- Posts: 54
- Thank you received: 0
-
-

9 years 6 months ago -  9 years 6 months ago [\#270494](#270494) by [Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")  *[0 Call to a member function getFieldName() on null](/forum/27-checkout/890431-0-call-to-a-member-function-getfieldname-on-null#270494 "-- 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.")* was created by *[Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")*

-- 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.

- [ ![error.jpg](/forum/attachment/38357) ](/forum/attachment/38357 "error.jpg") [ ](/forum/attachment/38357?download=1 "error.jpg")
- [ ![error1.jpg](/forum/attachment/38358) ](/forum/attachment/38358 "error1.jpg") [ ](/forum/attachment/38358?download=1 "error1.jpg")

Last edit: 9 years 6 months ago by [Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDQzMS0wLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZ2V0ZmllbGRuYW1lLW9uLW51bGw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 6 months ago [\#270498](#270498) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[0 Call to a member function getFieldName() on null](/forum/27-checkout/890431-0-call-to-a-member-function-getfieldname-on-null#270498 "-- 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.")*

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,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDQzMS0wLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZ2V0ZmllbGRuYW1lLW9uLW51bGw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")**
- [![Wrosch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49628-wrosch "View Wrosch's Profile") Topic Author
- [ Offline](/forum/user/49628-wrosch)

Less More

- Posts: 54
- Thank you received: 0
-
-

9 years 6 months ago -  9 years 6 months ago [\#270522](#270522) by [Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")  Replied by *[Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")* on topic *[0 Call to a member function getFieldName() on null](/forum/27-checkout/890431-0-call-to-a-member-function-getfieldname-on-null#270522 "-- 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.")*

Screens from debug mode.
Checkout workflow is also default.

- [ ![debugmode.jpg](/forum/attachment/38363) ](/forum/attachment/38363 "debugmode.jpg") [ ](/forum/attachment/38363?download=1 "debugmode.jpg")
- [ ![debugmode1.jpg](/forum/attachment/38364) ](/forum/attachment/38364 "debugmode1.jpg") [ ](/forum/attachment/38364?download=1 "debugmode1.jpg")
- [ ![checkoutworflow.jpg](/forum/attachment/38365) ](/forum/attachment/38365 "...outworflow.jpg") [ ](/forum/attachment/38365?download=1 "...outworflow.jpg")

Last edit: 9 years 6 months ago by [Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDQzMS0wLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZ2V0ZmllbGRuYW1lLW9uLW51bGw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 6 months ago [\#270525](#270525) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[0 Call to a member function getFieldName() on null](/forum/27-checkout/890431-0-call-to-a-member-function-getfieldname-on-null#270525 "-- 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.")*

Hello,

In the file "administrator/components/com_hikashop/classes/field.php" please replace Code:

if(!class_exists($classType)) return false;

By Code:

if(!class_exists($classType)) return new hikashopFieldItem($this);

It should avoid the error when you're using a custom field which do not have a dedicated class.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDQzMS0wLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZ2V0ZmllbGRuYW1lLW9uLW51bGw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")**
- [![Wrosch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49628-wrosch "View Wrosch's Profile") Topic Author
- [ Offline](/forum/user/49628-wrosch)

Less More

- Posts: 54
- Thank you received: 0
-
-

9 years 6 months ago -  9 years 6 months ago [\#270577](#270577) by [Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")  Replied by *[Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")* on topic *[0 Call to a member function getFieldName() on null](/forum/27-checkout/890431-0-call-to-a-member-function-getfieldname-on-null#270577 "-- 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.")*

Hi.
Maybe i'm blind ![B)](/media/kunena/emoticons/9.png "B)"), but in which line should be this code, because after searching the file 3 times I did not find such code.

Last edit: 9 years 6 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDQzMS0wLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZ2V0ZmllbGRuYW1lLW9uLW51bGw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 6 months ago [\#270579](#270579) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[0 Call to a member function getFieldName() on null](/forum/27-checkout/890431-0-call-to-a-member-function-getfieldname-on-null#270579 "-- 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.")*

Hi,

Right. The code to replace is: Code:

if(!class_exists($classType)) return $value;

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.

The following user(s) said Thank You: [Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDQzMS0wLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZ2V0ZmllbGRuYW1lLW9uLW51bGw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")**
- [![Wrosch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49628-wrosch "View Wrosch's Profile") Topic Author
- [ Offline](/forum/user/49628-wrosch)

Less More

- Posts: 54
- Thank you received: 0
-
-

9 years 6 months ago [\#270583](#270583) by [Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")  Replied by *[Wrosch](/forum/user/49628-wrosch "View Wrosch's Profile")* on topic *[0 Call to a member function getFieldName() on null](/forum/27-checkout/890431-0-call-to-a-member-function-getfieldname-on-null#270583 "-- 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.")*

Yes. Now works perfectly. Thanks a lot.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDQzMS0wLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZ2V0ZmllbGRuYW1lLW9uLW51bGw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 6 months ago [\#270584](#270584) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[0 Call to a member function getFieldName() on null](/forum/27-checkout/890431-0-call-to-a-member-function-getfieldname-on-null#270584 "-- 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.")*

Thanks. We'll include the fix on our end.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDQzMS0wLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZ2V0ZmllbGRuYW1lLW9uLW51bGw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.070 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
