craftcms / craftcms/cms

Preview Targets are empty upgrading Craft Solo to Craft Pro

Open
#5,844 26 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug severity:minor
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

When upgrading Craft from Solo to Pro, preview mode stops working everywhere because Preview Targets across all sections are empty:

empty-preview-targets

I’ve been able to manually revisit each section and create a new Preview Target, copying the Section’s URI setting into the Preview Target’s URL Format field.

I would have expected the edition upgrade to automatically set an equivalent Preview Target so that entry previews continue to work without any need for intervention.

Reactivating Solo restores preview functionality.

Steps to reproduce
  1. Set up Craft Solo and add any kind of section with a working template.
  2. Visit a section entry and observe that preview works as expected.
  3. Upgrade Craft Solo to Craft Pro.
  4. Revisit the entry from step 2 and observe that preview no longer works.
  5. Visit that section’s settings and observe that the Preview Targets table has no rows.
Additional info

Craft version: 3.4.10.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Solo-to-Pro upgrade using the listed Craft 3.4.10.1 steps, then inspect the section settings and Preview Targets behavior before and after the edition change. Done means existing section URI settings produce equivalent Preview Targets after upgrading, and entry previews continue to work without manually recreating targets.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.