Skip to main content

Fatal error when upload a new image

More
11 years 2 months ago #207662 by mett
-- 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->config->get('product_edition_image_x', 100);

Thank you

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #207666 by Jerome
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->popup)) { $popup = hikamarket::get('shop.helper.popup'); $this->assignRef('popup', $popup); } $imageHelper = hikamarket::get('shop.helper.image'); $this->assignRef('imageHelper', $imageHelper); }
By
Code:
public function form_image_entry() { if(empty($this->popup)) { $popup = hikamarket::get('shop.helper.popup'); $this->assignRef('popup', $popup); } $config = hikamarket::config(false); $this->assignRef('config', $config); $imageHelper = hikamarket::get('shop.helper.image'); $this->assignRef('imageHelper', $imageHelper); }
It will fix the issue.
I'll see to update the package as soon as possible.

Regards,

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

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #207719 by mett
Thank you, problem solved

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #217452 by artisanwebandprint
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->popup)) {

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

$this->assignRef('popup', $popup);

}

$config = hikamarket::config(false);

$this->assignRef('config', $config);

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

$this->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 or Create an account to join the conversation.

More
10 years 11 months ago #217455 by Jerome
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

Regards,

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

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #217549 by artisanwebandprint
The second release of Hikamarket fixed the issue as outlined here: www.hikashop.com/forum/22-market-bug-rep...ront-end.html#216824

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.175 seconds
Powered by Kunena Forum