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

Preview of new translation leads to error #127

Closed
homarx opened this issue Apr 23, 2021 · 1 comment
Closed

Preview of new translation leads to error #127

homarx opened this issue Apr 23, 2021 · 1 comment

Comments

@homarx
Copy link
Contributor

homarx commented Apr 23, 2021

ezsystems/ezpublish-kernel v7.5.16
novactive/ezseobundle 4.2.0

When creating a new translation of content with seometas-field preview shows error.
When navigating back this message appears:

An exception has been thrown during the rendering of a template ("Could not find 'Content' with identifier 'array ( 'id' => 426, 'languages' => array ( 0 => 'eng-GB', ), 'versionNo' => NULL, )'") in "NovaeZSEOBundle:fields:novaseometas.html.twig". [in vendor/twig/twig/src/Template.php:196]

I think content can't be loaded in function computeMetas of bundle/Twig/NovaeZSEOExtension.php.

Could fix it by changing code to:

       try{
            $content      = $this->eZRepository->getContentService()->loadContentByContentInfo($contentInfo, $languages);
        } catch(NotFoundException | UnauthorizedException $e){
            return '';
        }
@github-actions
Copy link

Thanks for reporting an issue! We love feedback.

However, this repository is what we call a "subtree split": a read-only copy of one directory of the main repository. It is used by Composer to allow developers to depend on specific bundles.

If you want to report or contribute, you should instead open your issue on the main repository:

https://github.com/Novactive/Nova-eZPlatform-Bundles

Thank you for your contribution!

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

1 participant