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

#   Fatal error when upload a new image

##

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

Less More

- Posts: 126
- Thank you received: 2
-
-

11 years 3 months ago [\#207662](#207662) by [mett](/forum/user/1080-mett "View mett's Profile")  *[Fatal error when upload a new image](/forum/22-market-bug-report/878029-fatal-error-when-upload-a-new-image#207662 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome 43 -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  Hello,  I see this error message in the PHP log when i try to upload a new image in HikaMarket (work fine for Hikashop), the upload form color became red instead of green and no image is uploaded.  PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  line 15 is: $size&#95;x = (int)$this-&gt;config-&gt;get('product&#95;edition&#95;image&#95;x', 100);  Thank you")* was created by *[mett](/forum/user/1080-mett "View mett's Profile")*

-- HikaShop version -- : 2.5.0
-- HikaMarket version -- : 1.6.4
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Browser(s) name and version -- : Chrome 43
-- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on a non-object in C:\wamp\www\components\com_hikamarket\views\productmarket\tmpl\form_image_entry.php on line 15

Hello,

I see this error message in the PHP log when i try to upload a new image in HikaMarket (work fine for Hikashop), the upload form color became red instead of green and no image is uploaded.

PHP Fatal error: Call to a member function get() on a non-object in C:\wamp\www\components\com_hikamarket\views\productmarket\tmpl\form_image_entry.php on line 15

line 15 is:
$size_x = (int)$this-&gt;config-&gt;get('product_edition_image_x', 100);

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3ODAyOS1mYXRhbC1lcnJvci13aGVuLXVwbG9hZC1hLW5ldy1pbWFnZT90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#207666](#207666) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Fatal error when upload a new image](/forum/22-market-bug-report/878029-fatal-error-when-upload-a-new-image#207666 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome 43 -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  Hello,  I see this error message in the PHP log when i try to upload a new image in HikaMarket (work fine for Hikashop), the upload form color became red instead of green and no image is uploaded.  PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  line 15 is: $size&#95;x = (int)$this-&gt;config-&gt;get('product&#95;edition&#95;image&#95;x', 100);  Thank you")*

Hi,

Thanks for the report.
Please edit the file "component/com_hikamarket/views/productmarket/view.html.php" and replace the function Code:

public function form_image_entry() { if(empty($this-&gt;popup)) { $popup = hikamarket::get('shop.helper.popup'); $this-&gt;assignRef('popup', $popup); } $imageHelper = hikamarket::get('shop.helper.image'); $this-&gt;assignRef('imageHelper', $imageHelper); }

By Code:

public function form_image_entry() { if(empty($this-&gt;popup)) { $popup = hikamarket::get('shop.helper.popup'); $this-&gt;assignRef('popup', $popup); } $config = hikamarket::config(false); $this-&gt;assignRef('config', $config); $imageHelper = hikamarket::get('shop.helper.image'); $this-&gt;assignRef('imageHelper', $imageHelper); }

It will fix the issue.
I'll see to update the package as soon as possible.

Regards,

---

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

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

11 years 3 months ago [\#207719](#207719) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Fatal error when upload a new image](/forum/22-market-bug-report/878029-fatal-error-when-upload-a-new-image#207719 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome 43 -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  Hello,  I see this error message in the PHP log when i try to upload a new image in HikaMarket (work fine for Hikashop), the upload form color became red instead of green and no image is uploaded.  PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  line 15 is: $size&#95;x = (int)$this-&gt;config-&gt;get('product&#95;edition&#95;image&#95;x', 100);  Thank you")*

Thank you, problem solved

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

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

Less More

- Posts: 158
- Thank you received: 6
-
-

11 years 1 week ago [\#217452](#217452) by [artisanwebandprint](/forum/user/6555-artisanwebandprint "View artisanwebandprint's Profile")  Replied by *[artisanwebandprint](/forum/user/6555-artisanwebandprint "View artisanwebandprint's Profile")* on topic *[Fatal error when upload a new image](/forum/22-market-bug-report/878029-fatal-error-when-upload-a-new-image#217452 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome 43 -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  Hello,  I see this error message in the PHP log when i try to upload a new image in HikaMarket (work fine for Hikashop), the upload form color became red instead of green and no image is uploaded.  PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  line 15 is: $size&#95;x = (int)$this-&gt;config-&gt;get('product&#95;edition&#95;image&#95;x', 100);  Thank you")*

Hello,

This solution is not working in my installation of Hikamarket multi-vendor with Hikashop (newest versions installed).

I just checked the file: component/com_hikamarket/views/productmarket/view.html.php

and the new code is already there as I have the newest version:
public function form_image_entry() {

if(empty($this-&gt;popup)) {

$popup = hikamarket::get('shop.helper.popup');

$this-&gt;assignRef('popup', $popup);

}

$config = hikamarket::config(false);

$this-&gt;assignRef('config', $config);

$imageHelper = hikamarket::get('shop.helper.image');

$this-&gt;assignRef('imageHelper', $imageHelper);

}

However, I cannot upload from the front end or the administrator panel. Please advise as we are running a vendor campaign this week.

Thanks,

Dawn

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3ODAyOS1mYXRhbC1lcnJvci13aGVuLXVwbG9hZC1hLW5ldy1pbWFnZT90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 week ago [\#217455](#217455) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Fatal error when upload a new image](/forum/22-market-bug-report/878029-fatal-error-when-upload-a-new-image#217455 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome 43 -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  Hello,  I see this error message in the PHP log when i try to upload a new image in HikaMarket (work fine for Hikashop), the upload form color became red instead of green and no image is uploaded.  PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  line 15 is: $size&#95;x = (int)$this-&gt;config-&gt;get('product&#95;edition&#95;image&#95;x', 100);  Thank you")*

Hi,

You're using HikaMarket 1.6.6 and that thread was for HikaMarket 1.6.4 ; so you can be sure that your issue is not the same and that you already have the patch in the last HikaMarket version.
Please re-download HikaShop 2.6.0 and HikaMarket 1.6.6 in order to be sure to have the latest fixes and if the problem persist ; you can take a look at more recent threads :
[ www.hikashop.com/forum/22-market-bug-rep...ad-on-front-end.html](http://www.hikashop.com/forum/22-market-bug-report/879764-no-images-upload-on-front-end.html)

Regards,

---

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

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

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

Less More

- Posts: 158
- Thank you received: 6
-
-

11 years 1 week ago [\#217549](#217549) by [artisanwebandprint](/forum/user/6555-artisanwebandprint "View artisanwebandprint's Profile")  Replied by *[artisanwebandprint](/forum/user/6555-artisanwebandprint "View artisanwebandprint's Profile")* on topic *[Fatal error when upload a new image](/forum/22-market-bug-report/878029-fatal-error-when-upload-a-new-image#217549 "-- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome 43 -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  Hello,  I see this error message in the PHP log when i try to upload a new image in HikaMarket (work fine for Hikashop), the upload form color became red instead of green and no image is uploaded.  PHP Fatal error: Call to a member function get() on a non-object in C:&#92;wamp&#92;www&#92;components&#92;com&#95;hikamarket&#92;views&#92;productmarket&#92;tmpl&#92;form&#95;image&#95;entry.php on line 15  line 15 is: $size&#95;x = (int)$this-&gt;config-&gt;get('product&#95;edition&#95;image&#95;x', 100);  Thank you")*

The second release of Hikamarket fixed the issue as outlined here: [ www.hikashop.com/forum/22-market-bug-rep...ront-end.html#216824](http://www.hikashop.com/forum/22-market-bug-report/879764-no-images-upload-on-front-end.html#216824)

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.231 seconds

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

[](#top)
