newism / craft3-fields

Address, telephone, email, embed and gender fields for CraftCMS 3.x
Other
54 stars 16 forks source link

Argument 1 passed to craft\web\twig\Extension::translateFilter() must be of the type string, null given #5

Closed S1lentium closed 7 years ago

S1lentium commented 7 years ago

This occurs when matrix field was created, and go to the add entry page...

Argument 1 passed to craft\web\twig\Extension::translateFilter() must be of the type string, null given, called in /home/cms/storage/runtime/compiled_templates/b7/b765c44747b0a75dc0c5cd360b900c9e25b550b74c2ee5225d2d09be6f92d8ea.php on line 29

23242526272829303132333435        // line 3
        $context["config"] = array("id" =>         // line 4
(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new Twig_Error_Runtime('Variable "name" does not exist.', 4, $this->getSourceContext()); })()), "name" =>         // line 5
(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new Twig_Error_Runtime('Variable "name" does not exist.', 5, $this->getSourceContext()); })()), "value" =>         // line 6
(isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new Twig_Error_Runtime('Variable "value" does not exist.', 6, $this->getSourceContext()); })()), "class" => "nicetext", "maxlength" => craft\helpers\Template::attribute($this->env, $this->getSourceContext(),         // line 8
(isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new Twig_Error_Runtime('Variable "field" does not exist.', 8, $this->getSourceContext()); })()), "charLimit", array()), "showCharsLeft" => true, "placeholder" => $this->env->getExtension('craft\web\twig\Extension')->translateFilter(craft\helpers\Template::attribute($this->env, $this->getSourceContext(),         // line 10
(isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new Twig_Error_Runtime('Variable "field" does not exist.', 10, $this->getSourceContext()); })()), "placeholder", array()), "site"), "rows" => craft\helpers\Template::attribute($this->env, $this->getSourceContext(),         // line 11
(isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new Twig_Error_Runtime('Variable "field" does not exist.', 11, $this->getSourceContext()); })()), "initialRows", array()));
        // line 13
        echo "
";
        // line 14
        if (craft\helpers\Template::attribute($this->env, $this->getSourceContext(), (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new Twig_Error_Runtime('Variable "field" does not exist.', 14, $this->getSourceContext()); })()), "multiline", array())) {
leevigraham commented 7 years ago

@S1lentium, 5030a69 should fix this issue. However there's still some JS work that needs to b done in regards to validation and adding new rows