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

resave entry job fails when disabling primary site for a section #5489

Closed
vnali opened this issue Jan 23, 2020 · 1 comment
Closed

resave entry job fails when disabling primary site for a section #5489

vnali opened this issue Jan 23, 2020 · 1 comment
Labels
bug severity:normal Bugs that affect typical usage

Comments

@vnali
Copy link
Contributor

vnali commented Jan 23, 2020

Steps to reproduce

  1. enable a channel section with 3 enabled sites including primary site and set propagation method to propagate to all sites
  2. create a new entry
  3. disable section for primary site // in my case site id 1
  4. there is a failed job
  5. thanks to queue manager in 3.4:
    error:
    The section 'test' is not enabled for the site '1'
    job data:
    {
    "elementType": "craft\elements\Entry",
    "criteria": {
    "sectionId": 1,
    "siteId": "*",
    "unique": true,
    "status": null,
    "enabledForSite": false
    },
    "description": "Resaving test entries"
    }

Additional info
it seems there are some open issues like mine
#3767 //some comments say they have errors on deleting site id 1
#3725

  • Craft version: 3.4 RC3 //also on 3.3
  • PHP version: 7.2
@vnali vnali changed the title resave entry job fails when disbaling default site for a section resave entry job fails when disabling default site for a section Jan 23, 2020
@brandonkelly
Copy link
Member

Thanks for reporting that! It’s now fixed for the next 3.4 release.

To get the fix early, change your craftcms/cms requirement in composer.json to:

"require": {
  "craftcms/cms": "3.4.x-dev#e8d9d726988feec9b620bb7a234a2752039d46ad as 3.4.0-RC3",
  "...": "..."
}

Then run composer update.

@brandonkelly brandonkelly added bug severity:normal Bugs that affect typical usage labels Jan 23, 2020
@brandonkelly brandonkelly added this to the 3.4 milestone Jan 23, 2020
@vnali vnali changed the title resave entry job fails when disabling default site for a section resave entry job fails when disabling primary site for a section Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug severity:normal Bugs that affect typical usage
Projects
None yet
Development

No branches or pull requests

2 participants