Error after saving the variant

  • Posts: 428
  • Thank you received: 19
4 years 3 months ago #322520

-- HikaShop version -- : 4.3.0
-- HikaMarket version -- : 3.1.1

Hi, when I add a new variant as a vendor, after saving the variant, I will receive the specified error. Applies only to variants, for creating new products no problem.

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 3 months ago #322563

Hello,

Can you reproduce the issue in our demo website ?
Please provide the details so we can see the problem directly.

You can also activate temporally the debug mode in your Joomla global configuration so you will have more details about the error.

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: 428
  • Thank you received: 19
4 years 3 months ago #322568

The problem has been identified and is caused by the setting: Product edition cancel mode - Current url.


Test
demo.hikashop.com/index.php/en/hikashop/...product/4-brow-shoes
The result

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 3 months ago #322569

Hello,

Sorry but it does not allow us to understand what you did exactly to have that error.

Please provide the details so we can see the problem directly.


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: 428
  • Thank you received: 19
4 years 3 months ago #322579

You can look here: youtu.be/7JWIVM_zaTc

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 3 months ago #322586

Hello,

Since we do not work with videos ; Just to let the context clear for everybody.

1 - You're edit a classical product
2 - You set-up the "vendor" characteristic
3 - You configure the display of the "edit" button for vendor and the "cancel mode" to "current url"
4 - You create a new variant as a vendor, using the button in the product page.
5 - When saving, you have an error

Now these points are defined, we will be able to investigate on the problem.

Off the topic :
Please understand that we are in a support forum and we are working with text explanations and images.
People would will browse the support forum can't watch the videos to understand the thread conversation.
Watch the videos took the time of the video, and it needs for me and other people just few seconds to read the 5 points in my message.
I consider the "video" conversation closed and we can now go back on the bug topic.

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.
The following user(s) said Thank You: neo191987

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

  • Posts: 428
  • Thank you received: 19
4 years 3 months ago #322593

I tried to help you as much as possible. I gave you a link for a test, but your demo restarted and there was no way I could help you. Another time I will try to explain it in words, I thought the video was the best way to show it. But you have rules and I will stick to them.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 3 months ago #322687

Hello,

As temp patch, you can edit the file "components/com_hikamarket/controllers/product.php" and replace

	$cancel_url = urldecode(hikaInput::get()->getString('cancel_url', ''));
	if(!empty($cancel_url) && !hikamarket::disallowUrlRedirect($cancel_url))
		$app->redirect( base64_decode($cancel_url) );
By
	$cancel_url = urldecode(hikaInput::get()->getString('cancel_url', ''));
	if(!empty($cancel_url) && strpos($cancel_url,'http')!==0 && strpos($cancel_url,'/')!==0)
		$cancel_url = base64_decode($cancel_url);
	if(!empty($cancel_url) && !hikamarket::disallowUrlRedirect($cancel_url))
		$app->redirect( $cancel_url );
It will unsure that the the string is in base64 to decode 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.
Last edit: 4 years 2 months ago by Jerome.
The following user(s) said Thank You: neo191987

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

  • Posts: 627
  • Thank you received: 18
  • Hikashop Business
4 years 2 months ago #323519

Thank you for your answer. When you write "temp hack" will it be added to the next release of Hikamarket?

I changed the code and now, I have an error when I click on the edit button. What am I missing? Did I put it in the wrong place?

Thank you again for your precious help.

More information:

The code:



The result:

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 2 months ago #323523

Hello,

When I edited the message 3 weeks ago to clean a bit the code, I introduced a typo (extra parenthesis).
In HikaMarket, a different patch has been added for the next release, the patch is there to fix the problem in the current version.

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: 627
  • Thank you received: 18
  • Hikashop Business
4 years 2 months ago #323535

Thanks for the precision. What about my error after editing the code? I turned off the hack and I receive this alert when we click on the save button. Any idea?

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 2 months ago #323556

Hello,

What is your URL when you got that error ?
(you can remove your domain name)

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: 627
  • Thank you received: 18
  • Hikashop Business
4 years 2 months ago #323560

/component/hikamarket/product

Many thanks!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 2 months ago #323589

Hello,

I'm afraid that I can't explain your issue right now.
The URL you have seems to be a valid and working URL ; even if it's better to have a menu for the HikaMarket vendor panel and not use the common Joomla SEF (when you have an URL starting with "/component/").
If you have an error generated by "com_content", it means that the URL is handled by that Joomla component and not sent to HikaMarket.
But depending the context, you might have some POST data which could override some values.
So, we would need more details to understand what is going on exactly.

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