Open danystad opened 1 month ago
Hi @danystad,
Sorry for the trouble you're experiencing. I have played around with this now and have been able to duplicate the issue. I've queued it up and we'll try to get a fix for it soon. 🙂
This should now be resolved in Freeform 5.3.5+ 🙂
Hi @kjmartens,
I updated Freeform to 5.3.5, and I'm getting almost the same error, except it now says "site 0" instead of "site 1".
Invalid Configuration – [yii\base\InvalidConfigException](https://www.yiiframework.com/doc-2.0/yii-base-invalidconfigexception.html)
Entry’s section (5) is not enabled for site 0
1. in /var/www/html/vendor/craftcms/cms/src/elements/Entry.phpat line 953
944945946947948949950951952953954955956957958959960961962 /**
* @inheritdoc
* @throws InvalidConfigException if [[siteId]] is not set to a site ID that the entry’s section is enabled for
*/
public function getUriFormat(): ?string
{
$sectionSiteSettings = $this->getSection()->getSiteSettings();
if (!isset($sectionSiteSettings[$this->siteId])) {
throw new InvalidConfigException('Entry’s section (' . $this->sectionId . ') is not enabled for site ' . $this->siteId);
}
return $sectionSiteSettings[$this->siteId]->uriFormat;
}
/**
* @inheritdoc
*/
protected function route(): array|string|null
Please let me know if you need anything else.
Thank you!
Sorry that this continues to be an issue for you @danystad.
Can you create a more detailed step-by-step guide on how we can reproduce this issue reliably? Currently we can't seem to duplicate this issue on our end. 😕
What happened?
On a multisite setup with site 1 and site 2, the second site (site 2) has a form with Elements Integration enabled for an entry type of site B. This entry type is only available on site 2.
When submitting a form, Craft CMS returns an error saying that Entry’s section (5) is not enabled for site 1.
Errors and Stack Trace (if available)
How can we reproduce this?
The above Element Integration was working on site 2 before upgrading from Craft CMS 3.9.13 and Freeform 3.13.37.
Freeform Edition
Pro
Freeform Version
5.3.1
Craft Version
4.9.5
When did this issue start?
After upgrading from older Freeform version
Previous Freeform Version
3.13.37 with Craft CMS 3.9.13