Not sure if this is a Ctools issue, or a Core issue, so posting here first.
I just finished building a site in D8 and everything is running fine in my local dev.
I committed to git, and pushed everything to my remote shared repo, and then pulled it down to my staging, and attempted to set everything up as I usually do. I now get an error to the screen
Fatal error: Class 'Drupal\ctools\EventSubscriber\WizardControllerSubscriber' not found in /home/xxx/public_html/wp/core/lib/Drupal/Component/DependencyInjection/Container.php on line 264
I don't see that git missed anything important on the commit. My remote staging is not yet set up for working remotely with Drush for a D8 site, so I am committing the vendor/ directory to git as well, but I have done that before with good results. I ran all updates with composer before I committed and pushed, and but I can't see why it would not be working on my remote but working just fine on my dev. Why would the class not be found?
I also see an error in my error log on remote as follows
PHP Fatal error: Class 'Drupal\Core\StringTranslation\PluralTranslatableMarkup' not found in /home/xxx/public_html/wp/core/includes/common.inc on line 133
My local dev is in php 5.5.9, my remote staging is php 5.5.31
Does anyone have any sense of what is going on? I searched and did not find anything in the issue queue.
Comments
Comment #2
RKopacz commentedComment #3
hkirsman commentedSame here. Worked locallay.
Comment #4
hkirsman commentedFor now I did
and it's working again so must be something in 8.3.0-alpha27
Comment #5
RKopacz commentedThanks @hkirsman, I'll try that. But I still don't understand why it works locally but not on the remote staging.
Comment #6
andrej galuf commentedThe Container is looking for the old EventSubscriber class, but it was converted to a newer version (RouteEnhancer), which causes an error. Rebuilding the cache should solve this problem.
Comment #7
RKopacz commented@Andrej Galuf Thank you, that did the trick! Since I do not have a D8 compatible drush properly working yet on my remote, I cleared the cache on my local, then updated the remote database with the new dump, and it worked. Kind thanks!
Comment #8
fomenkoandrey commentedhave the same error, when updating the module.
now site doesnt work at all.
Comment #9
RKopacz commented@fomenkoandrey try clearing the cache, it worked for me.
Comment #10
fomenkoandrey commentedI replaced the extension files alpha27 from the archive with alpha26 files.
now site works, but update or clearing the cache - does not work, only white screen.
/admin/config/development/performance - clear cache - white screen.
/update.php - white screeen
UPD:
after attempting to clear the cache - site stopped working, all the pages - white screen (((
what to do?
UPD2: i try clear tables cache_dynamic_page_cache, cache_data, cache_render through PHPmyadmin - the same, all - white screen.
Comment #11
fomenkoandrey commentedlook like the problem with metatag beta10
with metatag beta9 - no errors.
Comment #12
hkirsman commentedI guess we need update function witch clear cache? In d7 I found clear cache functionality from module enable/disable function.
Comment #13
xmacinfoI got bite twice! On local update and on production.
The fix was to issue a drush cache-rebuild command.
Usually drush already does that when doing a drush up module-name. So I do not know why we need to fire up again cache-rebuild.
Comment #14
stewestI'm also drush cr'd and still get the White screen with the error.
I rolled back to 8.x-3.0-alpha26 and still get the error. My site is down.
I then rolled back Meta tag as well to with metatag beta9 - and site still down.
Comment #15
danny englanderI just ran into the same error, entire site WSOD. Reverting back to the previous version with Git "fixed" it for me.
Comment #16
stewestI had to go to CTools Dev, and remove Metatag totally.
Comment #17
tobias.streefkerk commentedSame here, got the problem after updating tot beta27. Reverting and checking out beta26 fixed the problem for me, for now.
Comment #18
dadangnh commentedMine got this problem fixed after I use drush cache-rebuild command.
Comment #19
DeluxeSeika commentedSame as #18, a drush cr all fixed this for me
Comment #20
TolliSysDev commented#13 & #18 (drush cache-rebuild) did the trick for me as well.
Comment #21
chegor commentedI got this error and WSOD after update to 8.x-3.0-alpha27 from previous alpha. I cleared cache and all is ok now.
Comment #22
japerryI didn't mark it fixed yet, just in case others ran into this issue, but it seems like clearing the cache is good enough.
Comment #23
damienmckennaComment #24
damienmckennaSeems like this is a documentation thing?
Comment #25
damienmckennaActually going to mark this a "works as designed" thing, config and code deployments should always be accompanied by a cache clear.