OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Warning : nl2br() expects parameter 1 to be string, array given in

This topic contains 4 replies, has 2 voices, and was last updated by  ismet.sener 6 years, 7 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #32041

    ismet.sener
    Participant

    Hi I get the next message in front side:

    Warning : nl2br() expects parameter 1 to be string, array given in
    /srv/www/orocommerce/app/cache/prod/twig/ce/ceb7fc11dccaf77cd15c9ef902677cca37496976ea6be1742e801969b48630ea.php
    on line 237

    I get this message with Configurated Product and not with Simple Product

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #32042

    msulima
    Moderator

    Hi, ismet.sener.

    Please provide version of application that you use and some steps to reproduce that issue.

    Thank you.


    #32043

    ismet.sener
    Participant

    Orocommerce 1.3

    I got this message also with SImple Product
    with Product Atttribute
    all of teh product attributes are SELECT one is BOOLEAN
    This error happens with the Product Family’ which I created: “Paper Bags”

    This does not happen with a product with the “Default_family”

    So something is wrong with the Product_Family which I created (Paper Bags)

    #32044

    ismet.sener
    Participant

    237 echo nl2br(twig_escape_filter($this->env, ($context[“value”] ?? null), “html”, null, true));

    #32045

    ismet.sener
    Participant

    Problem SOLVED :)

    In the new Product Family which I created “Paper bags” there was also general part (default_family)
    I made it invisible

    now I do get the error message

    I do not know if this is a work-around, but we will see in future

Viewing 4 replies - 1 through 4 (of 4 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top