Home Forums WoodMart support forum 3d viewer error

3d viewer error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #502694

    osman.aysakar
    Participant

    I am getting an error like this, how can I fix it?

    ” Warning: Undefined array key “image_custom_dimension” in /home/aysakarc/public_html/vitaglobal.com.tr/wp-content/themes/woodmart/inc/integrations/elementor/elements/class-3d-view.php on line 146

    Warning: Undefined array key “image_size” in /home/aysakarc/public_html/vitaglobal.com.tr/wp-content/themes/woodmart/inc/integrations/elementor/elements/class-3d-view.php on line 145 ”

    I get this error on every page with products. It shows error before 3d viewer.

    Attachments:
    You must be logged in to view attached files.
    #502713

    osman.aysakar
    Participant

    I edited the code and it worked fine

    this code:

    foreach ( $settings[‘images’] as $key => $image ) {
    $args[‘images’][] = woodmart_otf_get_image_url(
    $image[‘id’],
    $settings[‘image_size’],
    $settings[‘image_custom_dimension’]
    );
    }

    I edited it this way;

    foreach ( $settings[‘images’] as $key => $image ) {
    $args[‘images’][] = woodmart_otf_get_image_url(
    $image[‘id’],
    $settings[‘images_size’],
    $settings[‘images_custom_dimension’]
    );
    }

    thank you

    #502746

    Luke Nielsen
    Keymaster

    Hello,

    Glad that you found a solution.

    So is the issue resolved?

    If you’d like to contact us, we are here for whatever questions you may have.

    Kind Regards

Viewing 3 posts - 1 through 3 (of 3 total)