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.
Access denied backtrace use to work very well on my site, but now when I look at it, there is nothing in the Backtrace field.
I use Workbench and Nodeaccess to control who can edit various pages. Is there some compatibility issue with one of those that might be causing this problem?
Comments
Comment #1
thim CreditAttribution: thim commentedSame issue.
New Drupal 7 setup, with ADB enable and configured but no backtrace in the access denied logs
Comment #2
rar CreditAttribution: rar commentedGot the same issue -
Code looks for $log_entry['type'] = "access denied" but Drupal 7 generates
$log_entry['type'] => page not found
Look in function adb_watchdog($log_entry) to change
Comment #3
bendiy CreditAttribution: bendiy commentedThe documentation is outdated. You cannot see this from '/admin/reports/dblog'. It's now at: '/admin/reports/access-denied/backtrace'.
Comment #4
ikeigenwijs CreditAttribution: ikeigenwijs commentedStill no dat ain the backtrace.not on
/admin/reports/access-denied/backtrace
or in the reports
Comment #5
drupalmoff CreditAttribution: drupalmoff commentedThe link to the backtrace is actually there, just has no text between the a tags to let the user click on it. If you inspect the table within your browser, you can get to the link.
EDIT: I don't have much time to discuss this, but the problem lies within _ddebug_backtrace not returning anything, as
seems to always be false. A quick solution for me was to return $backtrace just before the function closes.
I also believe that
should be
although I could be wrong. Just my quick thoughts.
Comment #6
msypes CreditAttribution: msypes commentedThanks bendiy & drupalmoff!
That worked. Knowing where the info should be was helpful of course.
I don't have "error_level" in my database, at least not on dev, so it's no wonder that conditional returned false. I just removed the
if
altogether.Comment #7
truyenle CreditAttribution: truyenle commentedDid you commit it. I still see no access denied backtrace stuff.
Comment #8
unqunq CreditAttribution: unqunq commented@truyenle you need to enable "Errors and warnings" at /admin/config/development/logging
then visit /admin/reports/access-denied/backtrace
Comment #9
RAWDESK CreditAttribution: RAWDESK for Colruyt Group Services commentedIt is indeed /admin/reports/access-denied/backtrace you have to visit.
Should be added to project's documentation.
Comment #10
kmonty