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

#   Fatal error: Cannot access empty property

##

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 5 months ago [\#17905](#17905) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  *[Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#17905 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")* was created by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")*

Fatal error: Cannot access empty property in /home/.../administrator/components/com_hikashop/classes/field.php on line 127

125 }
126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){
127 $data-&gt;$namekey = $field-&gt;field_default;
128 }

What do you think it might be?

all i am trying to is create a link to the registration page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNzkwNS1mYXRhbC1lcnJvci1jYW5ub3QtYWNjZXNzLWVtcHR5LXByb3BlcnR5P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 5 months ago [\#17918](#17918) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#17918 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")*

That happens because the $namekey variable is empty. That should not happen as hikashop checks that the namekey is not empty when you create a custom field. However, this might be a bug.
I'm seeing that it could come from a custom field of the type "custom text". If you created one please unpublish it and try again.

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 5 months ago [\#17928](#17928) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#17928 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")*

That was exactly what it was. your good nicolas! but know how i put the text i need in there? oh man..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNzkwNS1mYXRhbC1lcnJvci1jYW5ub3QtYWNjZXNzLWVtcHR5LXByb3BlcnR5P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 5 months ago [\#17929](#17929) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#17929 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")*

Please download again HikaShop and install it over your current version. That should fix the problem.

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 5 months ago [\#17932](#17932) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#17932 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")*

downloaded, installed , clear cache , and global check in, still getting

"
Fatal error: Cannot access empty property in /home/..../administrator/components/com_hikashop/classes/field.php on line 127
"

![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNzkwNS1mYXRhbC1lcnJvci1jYW5ub3QtYWNjZXNzLWVtcHR5LXByb3BlcnR5P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 5 months ago [\#17935](#17935) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#17935 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")*

Did you create a new custom field of the type "custom text" ? You previous custom field needs to be deleted.

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 5 months ago [\#17939](#17939) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#17939 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")*

Perfect!!

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

- **[Ducnb](/forum/user/34054-ducnb "View Ducnb's Profile")**
- [![Ducnb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34054-ducnb "View Ducnb's Profile")
- [ Offline](/forum/user/34054-ducnb)

Less More

- Posts: 6
- Thank you received: 0
-
-

12 years 2 months ago [\#170225](#170225) by [Ducnb](/forum/user/34054-ducnb "View Ducnb's Profile")  Replied by *[Ducnb](/forum/user/34054-ducnb "View Ducnb's Profile")* on topic *[Re: Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#170225 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")*

Hi Sir.
current I'm using Hkashop v2.3.0 same error on other line
Fatal error: Cannot access empty property in : **administrator/components/com\_hikashop/classes/field.php on line 292**Code:

if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ if($data == null &#124;&#124; empty($data)) $data = new stdClass(); if(empty($fields[$namekey]-&gt;field_options['pleaseselect'])){ $data-&gt;$namekey = $field-&gt;field_default; }else{ $data-&gt;$namekey = ''; } }

Please let me know.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNzkwNS1mYXRhbC1lcnJvci1jYW5ub3QtYWNjZXNzLWVtcHR5LXByb3BlcnR5P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

12 years 2 months ago [\#170235](#170235) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#170235 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")*

Hi,

Change the line:
if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){

to:
if(empty($data-&gt;$id) &amp;&amp; !empty($namekey) &amp;&amp; empty($data-&gt;$namekey)){

and that should avoid the error.

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

- **[Ducnb](/forum/user/34054-ducnb "View Ducnb's Profile")**
- [![Ducnb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34054-ducnb "View Ducnb's Profile")
- [ Offline](/forum/user/34054-ducnb)

Less More

- Posts: 6
- Thank you received: 0
-
-

12 years 2 months ago [\#170678](#170678) by [Ducnb](/forum/user/34054-ducnb "View Ducnb's Profile")  Replied by *[Ducnb](/forum/user/34054-ducnb "View Ducnb's Profile")* on topic *[Re: Fatal error: Cannot access empty property](/forum/3-bug-report/17905-fatal-error-cannot-access-empty-property#170678 "Fatal error: Cannot access empty property in /home/.../administrator/components/com&#95;hikashop/classes/field.php on line 127  125 } 126 if(empty($data-&gt;$id) &amp;&amp; empty($data-&gt;$namekey)){ 127 $data-&gt;$namekey = $field-&gt;field&#95;default; 128 }  What do you think it might be?  all i am trying to is create a link to the registration page.")*

Thank you.
It's work with me

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNzkwNS1mYXRhbC1lcnJvci1jYW5ub3QtYWNjZXNzLWVtcHR5LXByb3BlcnR5P3RtcGw9bWFya2Rvd24=) 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.062 seconds

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