productmarket/tmpl/form_image_entry.php 1.1.4 BUG

  • Posts: 634
  • Thank you received: 16
  • Hikashop Business
10 years 10 months ago #107670

When uploading pictures with any method (drag or window select) with last version 1.4.4 it is not working. The upload process fails and a blank dialog box pops up.

I overrided the file with the 1.1.3 and I got back the possibility for upload although the Popup windows are still popping.

At a certain point I got this message:

Fatal error: Call to a member function display() on a non-object in /home/acticar/public_html/components/com_hikamarket/views/productmarket/tmpl/form_image_entry.php on line 15


Tested in both a local and an online site.

THE PROBLEM HAPPENS ALSO FOR FILE Loading, so maybe the problem is some common library. I have maximum error reporting activated but only got the message above in my testing.


Attachments:

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 10 months ago #107684

Hi,

Which version of HikaShop are you using ?
If you do not have the "display" function in the imageHelper, it looks like your HikaShop version is too old for HikaMarket.
You can see the minimum HikaShop version required for each HikaMarket version:
www.hikashop.com/en/hikashop/147-hikamarket-change-log.html

Regards,

PS: Please use the right section in the forum for your HikaMarket questions.


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: 61
  • Thank you received: 2
10 years 9 months ago #110980

I am having all the same issues, I can't upload a doc or img file without failing. Bith versions are up to date. Using Joomla 2.511

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #111023

Hi,

Please edit the file "components/com_hikamarket/views/productmarket/view.html.php" and replace the code

	public function form_image_entry() {
		$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);
		}
		$imageHelper = hikamarket::get('shop.helper.image');
		$this->assignRef('imageHelper', $imageHelper);
	}
This patch will be in the next release (which should be publish end of the next week).

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: 61
  • Thank you received: 2
10 years 9 months ago #111057

Worked well for the image, now the file is giving a blank screen on attempt of upload

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #111060

Hi,

You can add the same 4 lines in the function "form_file_entry" just below the function "form_image_entry".
Replacing:

		$vendor = hikamarket::loadVendor(true);
		$this->assignRef('vendor', $vendor);
By:
		$vendor = hikamarket::loadVendor(true);
		$this->assignRef('vendor', $vendor);

		if(empty($this->popup)) {
			$popup = hikamarket::get('shop.helper.popup');
			$this->assignRef('popup', $popup);
		}
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: 61
  • Thank you received: 2
10 years 9 months ago #111066

That one is still throwing as failed.

Still receiving the error "components/com_hikamarket/views/productmarket/tmpl/form.php on line 237" on the page if that helps at all

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #111098

Hi,

Not really.
I don't see the link between the upload and the view "form".
After that, in the HikaMarket 1.1.4, the line 237 of that view is for displaying the MSRP price.

If you have an error here, you shouldn't see the product page edition at all.
Which versions of HikaShop and HikaMarket are you using ?
Could you give me more information about the error and the line in this view ?

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: 61
  • Thank you received: 2
10 years 9 months ago #111212


Hikamarket: You have the latest stable version : 1.1.4

Hikashop: You have the latest stable version : 2.1.3

Uploading a file is the most important function that i need out of this whole thing.

I have attached a jpg image of the error.

Attachments:
Last edit: 10 years 9 months ago by xsbucks.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #111252

Hi,

There is no link between the upload and the retail price.
The notices you see is because the default currency is not published.
Just after the "retrail price" input box, you should see the currency name and currency code. But because there is an error in your HikaShop configuration, HikaMarket can't load the currency.

The upload problem has been fixed.

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: 61
  • Thank you received: 2
10 years 9 months ago #111335

Okay rebuilt for the 3rd time on a separate system, Seems to work fine with the updates you gave. I am however receiving an invalid token error on the popup.

Flow.
1) Click on Popup to upload
2) Find upload and hit enter
3) File loads in Background
a)File loads in background successfully
b) Popup screen shows invalid token.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #111396

Hi,

Which browser are you using ? Which Joomla version ?
I think that the popup you see is not logical and we made some fixes in HikaShop for the popup system.

When clicking on the "upload" button, if you have a good browser and no javascript error, you will just see the file selection, without any upload popup.
The upload popup is just a security if you have an old browser.

After that, the popup contains a token and the ajax uploader too. So I don't understand your error message and what you are doing to see it.

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.

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