Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation - theme #1162

Open
trondhuso opened this issue Oct 22, 2020 · 0 comments
Open

Documentation - theme #1162

trondhuso opened this issue Oct 22, 2020 · 0 comments

Comments

@trondhuso
Copy link

trondhuso commented Oct 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant