Skip to main content

404 error when add product from vendor frontend

4 years 5 months ago #341902 by thefbi
-- 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.

4 years 5 months ago #341926 by Jerome
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.

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

4 years 5 months ago #341947 by thefbi
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

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

4 years 5 months ago - 4 years 5 months ago #341971 by Jerome
Hello,

There is bit more, we can see an error message
Code:
#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.
Last edit: 4 years 5 months ago by Jerome.

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

4 years 5 months ago #341978 by thefbi
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.

4 years 5 months ago #341987 by Jerome
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.

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

4 years 5 months ago #341992 by thefbi
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.

4 years 5 months ago #342009 by Jerome
Hello,

Can you please confirm that line 3079 in the mentioned file is:
Code:
if($field->field_type == 'zone' && $field->field_options['zone_type'] == 'state') {
Regards,

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

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

4 years 5 months ago #342021 by thefbi
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.

4 years 5 months ago #342025 by Jerome
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
Code:
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.

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

4 years 5 months ago - 4 years 5 months ago #342040 by thefbi
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: 4 years 5 months ago by thefbi.

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

4 years 5 months ago - 4 years 5 months ago #342042 by thefbi
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: 4 years 5 months ago by thefbi.

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

4 years 5 months ago #342051 by Jerome
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.
The following user(s) said Thank You: thefbi

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

4 years 5 months ago #342058 by thefbi
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.103 seconds
Powered by Kunena Forum