Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
acrollet CreditAttribution: acrollet commentedHi 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?
Comment #3
cassien CreditAttribution: cassien commentedThis 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.
Comment #4
acrollet CreditAttribution: acrollet commented@cassien if you disable BAT/bat_api, does the error go away? thanks!
Comment #5
cassien CreditAttribution: cassien commentedWell 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.
Comment #6
cassien CreditAttribution: cassien commentedComment #7
cassien CreditAttribution: cassien commentedTalked 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
Comment #8
acrollet CreditAttribution: acrollet commentedHi there,
we can't reproduce this unfortunately - can you post complete steps to reproduce from a clean installation?
Comment #9
cassien CreditAttribution: cassien commentedHi 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
Comment #10
acrollet CreditAttribution: acrollet commentedHi 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. :-\
Comment #11
rosbiffer CreditAttribution: rosbiffer commentedI'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"
Comment #12
rosbiffer CreditAttribution: rosbiffer commentedThink 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.
Comment #13
afagioli