-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Error if some entry types in section not supporting SEO but others are #262
Comments
I have the same problem in a section having 2 entry types, both of them having SEO fields but these 2 fields don't have the same name :
|
I'm having a similar issue. Channel section with 2 entry types. Both have the same SEO field assigned. I'm attempting to change the entry type of an existing entry from one to the other, and getting this error. Applying this fix helps, although don't like having a manual change that can be overwritten with an upgrade. Any chance of this being applied to an update for the plugin? |
Same problem here! Getting an "Trying to get property 'titleAsTokens' of non-object" error when switching between Entry types. Please fix this. Additional info |
Would you merge a pull request to fix this issue? Since you properly set all parameters in your controller you basically only need to check if the entry type has the field in it's layout https://github.com/ethercreative/seo/blob/v5-dev/src/controllers/SeoController.php#L86 |
Description
Have an issue where if I have a section (in this case a structure) and some of the entry types have an SEO field (eg the default entry type) but others do not then if I change the entry type to the latter I get an
Unknown Error occurred.
flash error.Steps to reproduce
A simple solution can be made in checking the SeoController to i. check if
$element
is an object and ii. theseoHandle
property exists, for example:Was:
Fix:
Source: src/controllers/SeoController.php: 81
Additional info
The text was updated successfully, but these errors were encountered: