Skip to content

Memcached Error since 3.4.0 BETA 4 #25036

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

Closed
shyim opened this issue Nov 19, 2017 · 1 comment
Closed

Memcached Error since 3.4.0 BETA 4 #25036

shyim opened this issue Nov 19, 2017 · 1 comment

Comments

@shyim
Copy link
Contributor

shyim commented Nov 19, 2017

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.4.0-BETA4

Since i upgraded from 3.4.0-BETA3 to 3.4.0-BETA4 i got the error message:

Fatal error: Uncaught ErrorException: constant(): Couldn't find constant Memcached::OPT_LAZY in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Cache/Traits/MemcachedTrait.php:147
Stack trace: #0 [internal function]: Symfony\Component\Cache\Adapter\MemcachedAdapter::Symfony\Component\Cache\Traits\{closure}(2, 'constant(): Cou...', '/var/www/html/v...', 147, Array) 
#1 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Cache/Traits/MemcachedTrait.php(147): constant('Memcached::OPT_...') 
#2 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php(138): Symfony\Component\Cache\Adapter\MemcachedAdapter::createConnection(Array, Array) 
#3 /var/www/html/var/cache/dev/ContainerFgwxh3x/appDevDebugProjectContainer.php(667): Symfony\Component\Cache\Adapter\AbstractAdapter::createConnection('memcached://cac...', Array) 
#4 /var/www/html/var/cache/dev/ContainerFgwxh3x/appDevDebugProjectContainer.php(748): ContainerFgwxh3x\appDevDebugProjectContainer->getCache_AppService() 
#5 /var/ww in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Cache/Traits/MemcachedTrait.php on line 147

I found out its the cache pool definition in config.yml

framework:
    #esi:             ~
    #translator:      { fallbacks: ["%locale%"] }
    secret:          "%secret%"
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: ~
    form:            ~
    csrf_protection: ~
    validation:      { enable_annotations: true }
    #serializer:      { enable_annotations: true }
    templating:
        engines: ['twig']
    default_locale:  "%locale%"
    trusted_hosts:   ~
    session:
        # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
        handler_id:  session.handler.native_file
        save_path:   "%kernel.root_dir%/../var/sessions/%kernel.environment%"
    fragments:       ~
    http_method_override: true
    assets:
        packages:
            static:
                version: "%revision%"
    php_errors:
        log: true
    web_link:
        enabled: true
    cache:
        app: cache.adapter.memcached
        default_memcached_provider: "memcached://%memcached_server%"

I could't found where the lazy option is set, but when i downgrade to BETA 3 its working. So i guess there is a issue with the beta4.

@nicolas-grekas
Copy link
Member

should be fixed in #25038

nicolas-grekas added a commit that referenced this issue Nov 19, 2017
…ekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[Cache] Memcached options should ignore "lazy"

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

Commits
-------

de5f41d [Cache] Memcached options should ignore "lazy"
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