Giter VIP home page Giter VIP logo

Comments (9)

markstory avatar markstory commented on May 23, 2024

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.

SparkyRih avatar SparkyRih commented on May 23, 2024

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.

markstory avatar markstory commented on May 23, 2024

Ok. If you're not able to reproduce anymore. We can close this issue until the problem comes up again.

from elastic-search.

SparkyRih avatar SparkyRih commented on May 23, 2024

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.

othercorey avatar othercorey commented on May 23, 2024

Can you give us the callstack?

from elastic-search.

SparkyRih avatar SparkyRih commented on May 23, 2024
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.

garas avatar garas commented on May 23, 2024

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.

SparkyRih avatar SparkyRih commented on May 23, 2024

So that might be the issue, since I'm using "cakephp/elastic-search": "^3.0"

from elastic-search.

SparkyRih avatar SparkyRih commented on May 23, 2024

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)

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.