Comments (9)
This leads to a fatal error...
How do those fatal errors come up? Which version of this library are you using with which version of CakePHP?
from elastic-search.
Sorry, I should've added that information right way:
CakePHP version: 3.9.6
Elasticsearch library: 6.7.2
But... now that I try to reproduce the error, it does not appear anymore (I was running CakePHP 3.6.*, I'm not sure anymore if the issue happend before or after upgrading).
from elastic-search.
Ok. If you're not able to reproduce anymore. We can close this issue until the problem comes up again.
from elastic-search.
I'm back, I reproduced it by simply browsing to the web interface of the CakePHP application (have been working in the CLI for a while because of back-end processes):
Error: Class Cake\ElasticSearch\Datasource\Connection contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Cake\Datasource\ConnectionInterface::logQueries, Cake\Datasource\ConnectionInterface::logger) File /var/www/html/vendor/cakephp/elastic-search/src/Datasource/Connection.php Line: 31
from elastic-search.
Can you give us the callstack?
from elastic-search.
2021-02-15 12:35:01 Error: Fatal Error (1): Class Cake\ElasticSearch\Datasource\Connection contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Cake\Datasource\ConnectionInterface::logQueries, Cake\Datasource\ConnectionInterface::logger) in [/var/www/html/vendor/cakephp/elastic-search/src/Datasource/Connection.php, line 31]
Trace:
Cake\Error\BaseErrorHandler::handleFatalError() - CORE/src/Error/BaseErrorHandler.php, line 238
Cake\Error\BaseErrorHandler::Cake\Error\{closure}() - CORE/src/Error/BaseErrorHandler.php, line 108
[main] - [internal], line ??
2021-02-15 12:35:01 Error: [Cake\Error\FatalErrorException] Class Cake\ElasticSearch\Datasource\Connection contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Cake\Datasource\ConnectionInterface::logQueries, Cake\Datasource\ConnectionInterface::logger) in /var/www/html/vendor/cakephp/elastic-search/src/Datasource/Connection.php on line 31
Stack Trace:
#0 /var/www/html/vendor/cakephp/cakephp/src/Error/BaseErrorHandler.php(108): Cake\Error\BaseErrorHandler->handleFatalError(1, 'Class Cake\\Elas...', '/var/www/html/v...', 31)
#1 [internal function]: Cake\Error\BaseErrorHandler->Cake\Error\{closure}()
#2 {main}
from elastic-search.
What version of cakephp/elastic-search
are you using? 2.x
or 3.x
?
3.x
is for CakePHP 4, but there is no composer.json
constraint to prevent incompatible version to be installed.
from elastic-search.
So that might be the issue, since I'm using "cakephp/elastic-search": "^3.0"
from elastic-search.
Yeah, that seems to be it, by downgrading cakephp/elastic-search to 2.0 the issue appears to be fixed...
from elastic-search.
Related Issues (20)
- Pagination HOT 1
- [2.x] Date fields aren't converted to object HOT 6
- How doc/book works? HOT 3
- Call to undefined method Elastica\Index::getType() HOT 1
- no such index [index: products] HOT 4
- Aggregation sample HOT 1
- Php 8 compatibility error HOT 7
- Https with self-signed certificates HOT 1
- null HOT 3
- Uncaught Elastica\Exception\ClientException: No enabled connection HOT 2
- BeforeFind event not triggered HOT 3
- CakePHP 4, AWS Elasticsearch 7 - The security token included in the request is invalid HOT 2
- ElasticSearch Connection does not implement DriverInterface HOT 2
- Update query options failed after executing query HOT 3
- This plugin is not compatible with PHP 8.1 HOT 1
- 'Refresh' behavior HOT 3
- get total index records for datatables HOT 5
- Use LocatorInterface
- Cake4.4: Using a callable as a locator has been deprecated. 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 elastic-search.