Comments (7)
Which cache backend you're using?
from yii.
Which cache backend you're using?
We use Redis.
I see that this issue is going to be resolve. Thanks
from yii.
There is another problem too - when we use the cache (php8+Yii+Redis), we get this problem
Fatal error: Uncaught CDbException: The table "tablename" for active record class "TablenameRecord" cannot be found in the database. in /srv/www/htdocs/.../framework/db/ar/CActiveRecord.php on lineย 2391 CDbException: The table "tablename" for active record class "TablenameRecord" cannot be found in the database. in /srv/www/htdocs/.../framework/db/ar/CActiveRecord.php on line 2391
When we cancel the use of the cache, the error disappears. Just comment out these lines in main.conf:
'cache'=>array( 'class'=>'CRedisCache', 'hostname'=> 'localhost', 'port'=>6379, 'database'=>1, ),
The table is existed in DB.
Why it happens and what can we do?
Thank you!
from yii.
@alexius We recently had a similar case in #4480 with unserialize(null) which turned out to be a problem in application code, not in framework code. Could you provide a bit more thorough reproducible sample code that demonstrates this issue so we can investigate?
There is another problem too (..)
Please create a new issue for this and fill out the required details.
from yii.
@marcovtwout I did.
from yii.
@wtommyw confirmed this issue is reproducable with CRedis and the correct fix by #4496
from yii.
Fixed by #4496
from yii.
Related Issues (20)
- Limit and Offset not working correctly with MSSQL HOT 12
- strftime function is deprecated in php 8.1 and used in requirements/index.php getServerInfo HOT 1
- Use of undefined constant id / CGridView widget HOT 2
- Fatal error: Uncaught CDbException: The table "tablename" for active record class "TablenameRecord" cannot be found in the database. HOT 3
- oci8 schema adapter returns null for 'KEY' field in column info which causes strpos deprecation error HOT 4
- CI tests failing HOT 1
- PHP 8.2 Compatibility HOT 1
- Argument 2 in number_format does not accept null HOT 1
- PHP 8.1 - setcookie(): Passing null to parameter #2 ($value) of type string is deprecated HOT 5
- Bad escaping caracter for SQL server when use compare HOT 2
- CMssqlColumnSchema - error when default column value is SQL SERVER system functions HOT 1
- Error using UnionTypes in action declarations HOT 2
- Regression with MariaDB 10.5.1+ with old temporal types in CDbColumnSchema $dbType HOT 1
- Call to undefined method ReflectionUnionType::getName() in CConsoleCommand.php HOT 4
- PHAN checks HOT 10
- Deprecated dynamic properties in yii\framework\gii\components\Pear\Text\Diff\Engine\native.php . HOT 6
- CActiveRecord: __construct(): Passing null to parameter #1 ($flags) of type int is deprecated HOT 5
- Upgrading to version 1.1.17+ broke my routes. HOT 1
- PHP 8.3 Compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii.