Giter VIP home page Giter VIP logo

cakephpautocacheplugin's People

Contributors

ndejong avatar tomwoods avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cakephpautocacheplugin's Issues

strict errors

After upgrading to PHP 5.4 errors due to stricter settings like this appear.

Declaration of AutocacheBehavior::afterFind() should be compatible with ModelBehavior::afterFind(Model $model, $results, $primary = false) [APP\Plugin\Autocache\Model\Behavior\AutocacheBehavior.php, line 16

Note: Undefined Index

I'm getting an undefined index:
Notice (8): Undefined index: database [CORE/Cake/Model/Datasource/DataSource.php, line 102]

This happens once the cache has been charged. I don't see it when the item is NOT in the cache.

Code Context

DataSource::listSources() - CORE/Cake/Model/Datasource/DataSource.php, line 102
Model::setSource() - CORE/Cake/Model/Model.php, line 1028
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3238
Model::find() - CORE/Cake/Model/Model.php, line 2460
CoachesController::view() - APP/Controller/CoachesController.php, line 13
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 473
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 107
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - ROOT/index.php, line 98

Incompatibilities with Translate Behavior

Hi,
Im working on CakePHP Version 2.2.3

I got this with models having translate behavior :

Fatal error: Call to undefined method AutocacheSource::name() in /var/www/ewibox/dev/lib/Cake/Model/Model.php on line 3068

And sometimes this :

Fatal error: Call to undefined method AutocacheSource::identifier() in /var/www/ewibox/dev/lib/Cake/Model/Behavior/TranslateBehavior.php on line 259

Doesn't work in CakePHP v. 2.5.6

I'have tried to install this plugin into 2.5.6 but the Test unit give me always errors. It is incompatiility with this version of cake? The class AutocacheBehavior and AutocachePluginTest give me several errors...

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.