404 error when add product from vendor frontend

  • Posts: 353
  • Thank you received: 28
  • Hikamarket Multivendor Hikashop Business Hikashop Multisite
1 year 10 months ago #341902

-- HikaShop version -- : 4.5.1
-- HikaMarket version -- : 4.1.0
-- Joomla version -- : 4.1.3
-- PHP version -- : 8.0

Hi,
I cant add products from vendor frontend.
When i click on add button, i have a 404 error...


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
1 year 10 months ago #341926

Hello,

Can you please send us a screenshot of the page.
I do have the feeling that there is a PHP error which is translated into a 404 page in your website.

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: 353
  • Thank you received: 28
  • Hikamarket Multivendor Hikashop Business Hikashop Multisite
1 year 10 months ago #341947

Hi,
OK, here it is, but it is just a 404 message...


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde
Attachments:

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
1 year 10 months ago #341971

Hello,

There is bit more, we can see an error message

#0 CANNOT ACCESS OFFSET OF TYPE STRING ON STRING
But it looks like you need to activate temporally the debug mode in the Joomla global configuration, in order to get more details about the issue (the file, the function name and the line).
Unfortunately, I cannot reproduce your issue in my Joomla 4 test website.

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: 1 year 10 months ago by Jerome.

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

  • Posts: 353
  • Thank you received: 28
  • Hikamarket Multivendor Hikashop Business Hikashop Multisite
1 year 10 months ago #341978

Hi,
Here is the error message with debug max :

This message contains confidential information


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
1 year 10 months ago #341987

Hello,

The issue looks related to the HikaShop core (field class).
I sent an email to the rest of the HikaShop team in order to understand the nature of your issue, that I can't reproduce for the moment.

Do you have product custom field configured ?
Maybe a "zone" product custom field ?

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: 353
  • Thank you received: 28
  • Hikamarket Multivendor Hikashop Business Hikashop Multisite
1 year 10 months ago #341992

No, i have no product custom fields named Zone.
Only a custom characteristic for color in test.


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
1 year 10 months ago #342009

Hello,

Can you please confirm that line 3079 in the mentioned file is:

if($field->field_type == 'zone' && $field->field_options['zone_type'] == 'state') {
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: 353
  • Thank you received: 28
  • Hikamarket Multivendor Hikashop Business Hikashop Multisite
1 year 10 months ago #342021

Yes. Correct.


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
1 year 9 months ago #342025

Hello,

So that line can just be processed when a ZONE custom field is being checked.
In order to skip the issue, you can replace the line with

if($field->field_type == 'zone' && is_array($field->field_options) && $field->field_options['zone_type'] == 'state') {

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: 353
  • Thank you received: 28
  • Hikamarket Multivendor Hikashop Business Hikashop Multisite
1 year 9 months ago #342040

It is ok with this code.


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde
Last edit: 1 year 9 months ago by thefbi.

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

  • Posts: 353
  • Thank you received: 28
  • Hikamarket Multivendor Hikashop Business Hikashop Multisite
1 year 9 months ago #342042

But if i update the component, it will be overwrite no ?


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde
Last edit: 1 year 9 months ago by thefbi.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
1 year 9 months ago #342051

Hello,

Next HikaShop release will include patchs for that kind of issue.
Nicolas worked on 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.
The following user(s) said Thank You: thefbi

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

  • Posts: 353
  • Thank you received: 28
  • Hikamarket Multivendor Hikashop Business Hikashop Multisite
1 year 9 months ago #342058

Perfect, thank you.


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde

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

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