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

Error in _post_update file when updating oe_content_module #619

Open
ansergeyg opened this issue Apr 23, 2024 · 2 comments
Open

Error in _post_update file when updating oe_content_module #619

ansergeyg opened this issue Apr 23, 2024 · 2 comments

Comments

@ansergeyg
Copy link

Hi there,

Some websites may not have
node.oe_social_media_links config file but they can have different config like paragraph.oe_social_media_links

In this case :

$field_storage->get('settings');

will fail because it cannot find the config object.

Source:

Can you please fix it or advise on how to handle breaking update?

Regards

@PaoloScuttiWZ
Copy link

Hi,
the same happens to me, i have to fix the costraint on version 3.1.1.

Would an early return on line 31 be enough?

Regards

@ansergeyg
Copy link
Author

ansergeyg commented Jul 16, 2024

Hi @PaoloScuttiWZ ,
I just did this:
`
$field_storage = \Drupal::entityTypeManager()->getStorage('field_storage_config')->load('node.oe_social_media_links');

if ($field_storage) {
}`
You can do early return, I suppose. I am just not sure what you're supposed to return on void. Doesn't look logical to me.

Regards,

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

2 participants