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

#   Trying to add product gives Fatal Error

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

15 years 9 months ago [\#5937](#5937) by [Super000](/forum/user/853-super000 "View Super000's Profile")  *[Trying to add product gives Fatal Error](/forum/3-bug-report/5937-trying-to-add-product-gives-fatal-error#5937 "Hello, I am running Joomla 1.5.21 with the latest version of HikaShop as of 1/24/2011. I am in testing phases and everything appeared to work until the minute I tried to add a product. It doesn't matter what I do (or don't do) on the add new product page, as soon as I hit apply I get the following error:  Fatal error: Only variables can be passed by reference in /hsphere/local/home/user/company.com/sites/x1/administrator/components/com&#95;hikashop/classes/field.php on line 205  I have searched the web and these forums to which I cannot find a similar issue. The only thing I can think of is that I am running on an older version of PHP (currently PHP 4.4.9). I can upgrade my PHP to the latest and greatest, but before I do that, will that even fix this issue or is there something else that I can do to remedy this issue.  Keep in mind I can add categories all day long and upload pics with them, just adding new products spits out that error above.  Any clues to what the hell I'm not doing right would be very helpful. I'd be glad to recieve my &quot;dumbass&quot; card if someone can help me resolve this.  Thanks in advance.")* was created by *[Super000](/forum/user/853-super000 "View Super000's Profile")*

Hello,
I am running Joomla 1.5.21 with the latest version of HikaShop as of 1/24/2011. I am in testing phases and everything appeared to work until the minute I tried to add a product. It doesn't matter what I do (or don't do) on the add new product page, as soon as I hit apply I get the following error:

Fatal error: Only variables can be passed by reference in /hsphere/local/home/user/company.com/sites/x1/administrator/components/com_hikashop/classes/field.php on line 205

I have searched the web and these forums to which I cannot find a similar issue. The only thing I can think of is that I am running on an older version of PHP (currently PHP 4.4.9). I can upgrade my PHP to the latest and greatest, but before I do that, will that even fix this issue or is there something else that I can do to remedy this issue.

Keep in mind I can add categories all day long and upload pics with them, just adding new products spits out that error above.

Any clues to what the hell I'm not doing right would be very helpful. I'd be glad to recieve my "dumbass" card if someone can help me resolve this.

Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTM3LXRyeWluZy10by1hZGQtcHJvZHVjdC1naXZlcy1mYXRhbC1lcnJvcj90bXBsPW1hcmtkb3du) 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 9 months ago [\#5943](#5943) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Trying to add product gives Fatal Error](/forum/3-bug-report/5937-trying-to-add-product-gives-fatal-error#5943 "Hello, I am running Joomla 1.5.21 with the latest version of HikaShop as of 1/24/2011. I am in testing phases and everything appeared to work until the minute I tried to add a product. It doesn't matter what I do (or don't do) on the add new product page, as soon as I hit apply I get the following error:  Fatal error: Only variables can be passed by reference in /hsphere/local/home/user/company.com/sites/x1/administrator/components/com&#95;hikashop/classes/field.php on line 205  I have searched the web and these forums to which I cannot find a similar issue. The only thing I can think of is that I am running on an older version of PHP (currently PHP 4.4.9). I can upgrade my PHP to the latest and greatest, but before I do that, will that even fix this issue or is there something else that I can do to remedy this issue.  Keep in mind I can add categories all day long and upload pics with them, just adding new products spits out that error above.  Any clues to what the hell I'm not doing right would be very helpful. I'd be glad to recieve my &quot;dumbass&quot; card if someone can help me resolve this.  Thanks in advance.")*

Hi,

That's indeed a new problem to us. I couldn't reproduce it on our end.

Could you edit the file administrator/components/com_hikashop/classes/field.php and try to replace the code: Code:

$ok = $this-&gt;_checkOneInput($fields,@$formData[$type],$data,$type,$oldData);

by the code: Code:

if(!isset($formData[$type])){ $formData[$type]=''; } $ok = $this-&gt;_checkOneInput($fields,$formData[$type],$data,$type,$oldData);

and try again ?

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

15 years 8 months ago -  15 years 8 months ago [\#8560](#8560) by [Super000](/forum/user/853-super000 "View Super000's Profile")  Replied by *[Super000](/forum/user/853-super000 "View Super000's Profile")* on topic *[Re: Trying to add product gives Fatal Error](/forum/3-bug-report/5937-trying-to-add-product-gives-fatal-error#8560 "Hello, I am running Joomla 1.5.21 with the latest version of HikaShop as of 1/24/2011. I am in testing phases and everything appeared to work until the minute I tried to add a product. It doesn't matter what I do (or don't do) on the add new product page, as soon as I hit apply I get the following error:  Fatal error: Only variables can be passed by reference in /hsphere/local/home/user/company.com/sites/x1/administrator/components/com&#95;hikashop/classes/field.php on line 205  I have searched the web and these forums to which I cannot find a similar issue. The only thing I can think of is that I am running on an older version of PHP (currently PHP 4.4.9). I can upgrade my PHP to the latest and greatest, but before I do that, will that even fix this issue or is there something else that I can do to remedy this issue.  Keep in mind I can add categories all day long and upload pics with them, just adding new products spits out that error above.  Any clues to what the hell I'm not doing right would be very helpful. I'd be glad to recieve my &quot;dumbass&quot; card if someone can help me resolve this.  Thanks in advance.")*

Ok sorry for such a long time responding. After I added that to the file, it appears that on the backend, it lets me add it now without fatal error, but now when I go to the site and follow the links to the category I put it under, it does not display. For example on the back side I tell it for catgories to Products -&gt; Category 1 and my product shows everything right, but on the site it self it should show up when I navigate to the same location.....but it does not. Can you please help me figure out why this is?

Thanks

Last edit: 15 years 8 months ago by [Super000](/forum/user/853-super000 "View Super000's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTM3LXRyeWluZy10by1hZGQtcHJvZHVjdC1naXZlcy1mYXRhbC1lcnJvcj90bXBsPW1hcmtkb3du) 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 8 months ago [\#8562](#8562) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Trying to add product gives Fatal Error](/forum/3-bug-report/5937-trying-to-add-product-gives-fatal-error#8562 "Hello, I am running Joomla 1.5.21 with the latest version of HikaShop as of 1/24/2011. I am in testing phases and everything appeared to work until the minute I tried to add a product. It doesn't matter what I do (or don't do) on the add new product page, as soon as I hit apply I get the following error:  Fatal error: Only variables can be passed by reference in /hsphere/local/home/user/company.com/sites/x1/administrator/components/com&#95;hikashop/classes/field.php on line 205  I have searched the web and these forums to which I cannot find a similar issue. The only thing I can think of is that I am running on an older version of PHP (currently PHP 4.4.9). I can upgrade my PHP to the latest and greatest, but before I do that, will that even fix this issue or is there something else that I can do to remedy this issue.  Keep in mind I can add categories all day long and upload pics with them, just adding new products spits out that error above.  Any clues to what the hell I'm not doing right would be very helpful. I'd be glad to recieve my &quot;dumbass&quot; card if someone can help me resolve this.  Thanks in advance.")*

That's because you use an old version of HikaShop and you need to create an associated module for your menu. The easiest for you will be to update to the latest version and recreate your menu after that.

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

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