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.
When I follow instructions from Webprofiler README.md I have:
Fatal error: Class '\Drupal\webprofiler\DependencyInjection\TraceableContainer' not found in /var/www/drupal8.loc/core/lib/Drupal/Core/DrupalKernel.php on line 841
Found that:
$class_loader->addPsr4('Drupal\\webprofiler\\', [ __DIR__ . '/../../modules/contrib/webprofiler/src']);
should be:
$class_loader->addPsr4('Drupal\\webprofiler\\', [ __DIR__ . '/../../modules/contrib/devel/webprofiler/src']);
Seems forget to change after merge Webprofiler to devel.
I see that README.md still in progress, created issue just to not forget ;)
Comment | File | Size | Author |
---|---|---|---|
#2 | devel-webprofiler_README_md_timeline_issue-2625736.patch | 667 bytes | AndrewsizZ |
|
Comments
Comment #2
AndrewsizZ CreditAttribution: AndrewsizZ at Bright Solutions GmbH for Bright Solutions GmbH commentedComment #3
AndrewsizZ CreditAttribution: AndrewsizZ at Bright Solutions GmbH for Bright Solutions GmbH commentedComment #5
lussolucaGood catch, I've committed this to 8.x-1.x-dev and I'll open a new issue for completing the README file
Comment #6
alar CreditAttribution: alar commentedI was working on a new Drupal 8 site that didn't have the custom and contrib directories yet. This caught me:
$class_loader->addPsr4('Drupal\\webprofiler\\', [ __DIR__ . '/../../modules/contrib/devel/webprofiler/src']);
Changed to:
$class_loader->addPsr4('Drupal\\webprofiler\\', [ __DIR__ . '/../../modules/devel/webprofiler/src']);
I suppose I should really just add the custom and contrib directories, but...