hi need help. I can’t understand why this error occurs. There is a script for importing from ips4 after launching it gives just such an error.
Сводка
Loading existing groups…
Loading existing users…
Loading existing categories…
Loading existing posts…
Loading existing topics…
creating users
importing categories…
13 / 41 ( 31.7%) [189062 items/min] Traceback (most recent call last):
7: from script/import_scripts/ipb4.rb:432:in <main>' 6: from /var/www/discourse/script/import_scripts/base.rb:47:in
perform’
5: from script/import_scripts/ipb4.rb:43:in execute' 4: from script/import_scripts/ipb4.rb:171:in
import_categories’
3: from /var/www/discourse/script/import_scripts/base.rb:416:in create_categories' 2: from /var/www/discourse/script/import_scripts/base.rb:416:in
each’
1: from /var/www/discourse/script/import_scripts/base.rb:425:in block in create_categories' /var/www/discourse/script/import_scripts/base.rb:425:in
strip!': can’t modify frozen String: “Blank” (FrozenError)
root@ff-perm-app:/var/www/discourse# vi /var/www/discourse/script/import_scripts/ipb4.rb
Сводка
{
id: category['id'],
name: CGI.unescapeHTML(category['name_seo']).gsub('-', ' ').capitalize,
description: ''
}