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

Cache engine default is not available. #12

Open
sakulstra opened this issue Jan 3, 2014 · 10 comments
Open

Cache engine default is not available. #12

sakulstra opened this issue Jan 3, 2014 · 10 comments
Assignees

Comments

@sakulstra
Copy link

hi there, i can't get this plugin to work, even when memcached seems to work.
Here's what i've done:
http://bin.cakephp.org/saved/113597
i don't really know if it's a bug or misconfiguration, so thx for any response ;)
regards

@wa0x6e
Copy link
Owner

wa0x6e commented Jan 3, 2014

What version of CakePHP are you using ?

@wa0x6e
Copy link
Owner

wa0x6e commented Jan 3, 2014

I'm not sure, but I think your issue is coming from the way your setting up the Cache engine in the other engines.

Try not setting $engine = 'Memcached';

@ghost ghost assigned wa0x6e Jan 3, 2014
@sakulstra
Copy link
Author

oh sry forgot to mention that - i'm using cakephp 2.4.4... and i don't understand your second message.
thanks for ur help,
lukas

@wa0x6e
Copy link
Owner

wa0x6e commented Jan 3, 2014

The error Cache engine _cake_core_ is not available is weird, since _cake_core_ is not an engine name.

You are setting $engine = 'Memcached'; somewhere in your code. Leave it to the default setting.

@sakulstra
Copy link
Author

when i let it as default $engine = 'File';
i get an (like mentioned at the bottom of the bin) "Cache engine default is not available." error instead.
thx, for ur help
lukas

@wa0x6e
Copy link
Owner

wa0x6e commented Jan 3, 2014

Did you install CakePHP with composer ? Is the plugin located in app/Plugin/Memcached, or in plugins/Memcached ?

@sakulstra
Copy link
Author

it's locatedn in app/Plugin/Memcached
and i installed cakephp and memcached with composer

@wa0x6e
Copy link
Owner

wa0x6e commented Jan 3, 2014

What's the steps ? You created a composer.json to install Cake, then
created another composer.json inside to install all the plugins ?

@sakulstra
Copy link
Author

yes, i've an /httpdocs/Cakeroot/composer.json for installing cake and than i baked projects to /httpdocs/Someapp with an /httpdocs/Someapp/composer.json where i have my plugins and stuff

i just tried pasting the Memcached Engine directly into the Core and got another Error:
cake_core cache was unable to write 'cake_dev_de-de' to Memcached cache in CakePHP/Cake/Cache/Cache.php on line 325

Uncaught exception 'CacheException' with message ' is not a valid serializer engine for Memcached' in CakePHP/Cake/Cache/Engine/MemcachedEngine.php:140

When i let $engine = 'File'; i don't even get an error, but i'm not sure if it's working

@oanhnn
Copy link

oanhnn commented Jun 12, 2014

I think in bootstrap.php file, you should config:

<?php 
//...
CakePlugin::load('Memcached');
App::uses('MemcachedEngine', 'Memcached.Lib/Cache/Engine');
Cache::config('default', array(
    'engine'    => 'Memcached.Memcached',
    // more options
));
//...

I did config success on my project.
Sorry, my english is not good ^^

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

3 participants