Concrete CMS - The length of any one label is limited to between 1 and 63 octets

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

Concrete CMS - The length of any one label is limited to between 1 and 63 octets

Ошибка

The length of any one label is limited to between 1 and 63 octets

возникает из-за длинного домена.
Решение - в файле

concrete/vendor/true/punycode/src/Punycode.php"

поменять

            if ($length > 63 || $length < 1) {
               throw new LabelOutOfBoundsException(sprintf('The length of any one label is limited to between 1 and 63 octets, but %s given.', $length));
           }

на

            if ($length > 100 || $length < 1) {
               throw new LabelOutOfBoundsException(sprintf('The length of any one label is limited to between 1 and 63 octets, but %s given.', $length));
           }