web-publisher icon indicating copy to clipboard operation
web-publisher copied to clipboard

Documentation - theme

Open trondhuso opened this issue 4 years ago • 0 comments

It is not quite obvious how to install a theme based on the documentation.

I cloned two repos, put them in separate folders outside superdesk-web-publisher. I then ran the following commands.

php bin/console swp:theme:install tenant-code /var/www/theme-magazine/

Resulted in the following output:

Theme could not be installed, files are reverted to previous version! Error message: An exception occurred while executing 'INSERT INTO swp_route (host, schemes, methods, defaults, requirements, options, condition_expr, variable_pattern, staticPrefix, template_name, articles_template_name, type, cache_time_in_seconds, name, description, slug, position, lft, rgt, level, articles_updated_at, tenant_code, paywall_secured, parent_id, route_content_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["", "a:0:{}", "a:0:{}", "a:1:{s:4:"slug";N;}", "a:1:{s:4:"slug";s:16:"[a-zA-Z0-9*\-_]+";}", "a:0:{}", "", "/{slug}", "/business", null, null, "collection", 0, "Business", null, "business", 7, 0, 0, 0, null, "2v76qc", 0, null, null]:

SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "prefix_idx" DETAIL: Key (staticprefix, tenant_code)=(/business, tenant-code) already exists.

Any feedback welcome.

trondhuso avatar Oct 22 '20 09:10 trondhuso