Fatal error when upload a new image

  • Posts: 126
  • Thank you received: 2
9 years 4 months ago #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:\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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 4 months ago #207666

Hi,

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

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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 126
  • Thank you received: 2
9 years 4 months ago #207719

Thank you, problem solved

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

  • Posts: 158
  • Thank you received: 6
9 years 1 month ago #217452

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 1 month ago #217455

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 158
  • Thank you received: 6
9 years 1 month ago #217549

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.078 seconds
Powered by Kunena Forum