Home Forums WoodMart support forum Linked Variations Frontend class doesn’t check for empty attributes

Linked Variations Frontend class doesn’t check for empty attributes

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #468494

    thedigitalorama
    Participant

    Hello,

    An employee set various products in Linked Variations and connected them via one attribute called “Type”, and he was able to do that although he forgot to set that attribute in some of them.

    In that case if we’d visit any of these bundled products at the front-end, their product page would appear broken and with a fatal error as you can see in the attached screenshot.

    It seems that there should be some check in the loop of class-frontend.php starting @ line 296, otherwise null is passed to array_diff_assoc .

    We’ve added the attribute wherever it was missing, but a stronger check in the code would be welcome to prevent
    employee mistakes. A linked product with a missing attribute shouldn’t be shown.

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

    Hello,

    Please deactivate all the plugins except these ones:

    Slider Revolution
    WPBakery Page Builder or Elementor
    Woodmart Core
    Contact Form 7
    MailChimp for WordPress
    WooCommerce
    Safe SVG

    If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.

    In case, the problem remains, even after all the plugins are deactivated, provide your site admin access (insert the site credentials into the Private content block under the message area) and confirm the permission for plugins deactivation, switching to the parent or default theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.

    Best Regards

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

The topic ‘Linked Variations Frontend class doesn’t check for empty attributes’ is closed to new replies.