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

ReflectionException: Class Symfony\Component\Templating\Helper\Helper not found #23753

Closed
gharlan opened this issue Aug 1, 2017 · 6 comments
Closed

Comments

@gharlan
Copy link
Contributor

gharlan commented Aug 1, 2017

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3.6

I'm using symfony/flex with sf 3.3.
After upgrading to 3.3.6, I get this exception:

screenshot 2017-08-02 00 15 47

I do not use the templating component.

I guess it is related to #23573 (ping @nicolas-grekas)

@tarlepp
Copy link
Contributor

tarlepp commented Aug 1, 2017

Yep, I'm having same problem. Just updated to 3.3.6 and after that I get the same error...

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Aug 2, 2017

My bad. Should be fixed by #23755.
This should be triggered indirectly by calls to $container->getReflectionClass($class, false) (false as second arg is the important thing.)
I think that for now, you can opt-out from autowiring and autoconfiguration for the services that need the missing classes. Can you confirm (both the fix and that the config change works if possible?)

ogizanagi added a commit that referenced this issue Aug 2, 2017
…rekas)

This PR was merged into the 3.3 branch.

Discussion
----------

[Config] Fix checking class existence freshness

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23753
| License       | MIT
| Doc PR        | -

Commits
-------

a63ab77 [Config] Fix checking class existence freshness
@xabbuh xabbuh closed this as completed Aug 2, 2017
@Perf
Copy link

Perf commented Aug 18, 2017

Having this problem.

Executing script assets:install --symlink --relative public [KO]
 [KO]
Script assets:install --symlink --relative %PUBLIC_DIR% returned with error code 255
!!
!!  Fatal error: Uncaught ReflectionException: Class Symfony\Component\Templating\Helper\Helper not found in /home/vagrant/Code/vendor/symfony/security-bundle/Templating/Helper/LogoutUrlHelper.php:23

composer.json

"require": {
        "php": "^7.1.3",
        "api-platform/api-pack": "^2.1@dev",
        "api-platform/core": "^2.1@dev",
        "doctrine/doctrine-migrations-bundle": "^1.2",
        "javiereguiluz/easyadmin-bundle": "^1.16",
        "symfony/console": "^3.3",
        "symfony/flex": "^1.0",
        "symfony/framework-bundle": "^3.3@dev",
        "symfony/yaml": "^3.3"
    },

symfony/framework-bundle (3.3.x-dev 25bc5e5)

So, issue seems not to be fixed yet. Or I'm doing something wrong.

@jvasseur
Copy link
Contributor

@Perf the issue was in the dependency injection component not the framework bundle.

@chalasr
Copy link
Member

chalasr commented Aug 18, 2017

In the config component in fact.

@Perf
Copy link

Perf commented Aug 18, 2017

Thank you guys!
Btw, it was fixed by composer req config:^3.3@dev, got it from #23913

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants