Hi Bat,
I did a fresh install of the last bat with composer.
Cache clearing and update.php results in a fatal error :
Fatal error: Class 'Drupal\ctools\Plugin\Deriver\EntityDeriverBase' not found in /home/webmaster/public_html/idnautic/modules/contrib/services/src/Plugin/Deriver/EntityDelete.php on line 11
Googled that error but I didn't find anything related.

Comments

cassien created an issue. See original summary.

acrollet’s picture

Status: Active » Postponed (maintainer needs more info)

Hi Cassien,

thanks for the report! Can you clarify a couple of things?

* Is it a fresh site install, or just a fresh install of bat on an existing site?
* What version of ctools is in use?

cassien’s picture

This is a pleasure to report bugs with bat, you always answer really fast :D

Sorry for the bad explanation. This is not a fresh install of drupal. Couple of modules were already installed, but no problem before the installation of BAT. I used composer. If I remember, I started with the activation of BAT API and had the first 500 error (no error reporting activated at that moment).

Ctools version is the 8.x-3.0.

acrollet’s picture

@cassien if you disable BAT/bat_api, does the error go away? thanks!

cassien’s picture

Well seen. The error still occured, so i reinstalled a backup and started with the ctools installation that fails.

Note to myself: always remember dependencies.

Thank you again.

cassien’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)
cassien’s picture

Status: Closed (works as designed) » Postponed (maintainer needs more info)

Talked too fast.

Installed and activated the dev version of Ctools 8.x-3.x-dev > no error

Reactivated Bat api > error on services 8.x-4.0-beta4

Backup restore

Installed and activated Services 8.x-4.x-dev > no error

Re activated Ctools > no error

Activated all the other bat api dependencies (HAL,Serialization, Services, Chaos tools) > no error

Activated bat > no error

Activated bat api > error, but not the one I previously saw

Fatal error: Call to a member function getContextDefinitions() on boolean in /home/webmaster/public_html/idnautic/modules/contrib/services/src/Routing/ServiceEndpoint.php on line 27

Uninstalled bat api > same error

Uninstall bat > same error

Tried to clear the cache tables without success

Uninstalled services that told me configuration is about to be delete (resource and service endpoint of bat) > no more error

Hope it helps.... i dont understand anything :D

acrollet’s picture

Hi there,

we can't reproduce this unfortunately - can you post complete steps to reproduce from a clean installation?

cassien’s picture

Hi acrollet,

I just did a fresh install of drupal. 3 steps to reproduce.

Drupal 8.4.5, minimal profile

Composer require : Bat, Bat API

Tried to activate Bat and Bat API -> 500 error

The error thrown on cache clearing :
Fatal error: Call to a member function getContextDefinitions() on boolean in /home/webmaster/public_html/dev-eskif/modules/contrib/services/src/Routing/ServiceEndpoint.php on line 27

--

I also tried a Bat install on an 8.5 drupal with just few modules installed. Same problem.

--

Could it be related to php version ? I'm on the 5.6.30-0+deb8u1

acrollet’s picture

Hi there,

I've tried to reproduce with a fresh installation Drupal 8.4.5, PHP 5.6 and BAT, but don't get any errors on activation of bat/bat_api, or cache clear. :-\

rosbiffer’s picture

I'm getting this issue too. Have uninstalled BAT and BEE modules on my install of 8.5.3 and now I cannot flush all caches. I can do them all individually. The error is "Fatal error: Call to a member function getContextDefinitions() on boolean in /var/sites/n/mysite/public_html/modules/services/src/Routing/ServiceEndpoint.php on line 27"

rosbiffer’s picture

Think I found the cause - I had uninstalled all of the modules but, under Structure...Service Endpoint I had not deleted the BAT API. All working fine now.

afagioli’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)