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.
In PHP 5.4, I receive the following error message when visiting the Content Analysis reports page:
Strict warning: Only variables should be passed by reference in contentanalysis_page_analyzer() (line 177 of /sites/all/modules/contentanalysis/contentanalysis.module).
This is due to how the render call is constructed in the contentanalysis_page_analyzer
function. I'll post a patch for review in a minute.
Comment | File | Size | Author |
---|---|---|---|
#1 | contentanalysis-render_by_reference-2496125-1.patch | 582 bytes | ron_s |
Comments
Comment #1
ron_s CreditAttribution: ron_s commentedPatch is attached for review. Thanks.
Comment #2
ron_s CreditAttribution: ron_s commentedComment #3
ron_s CreditAttribution: ron_s commentedOk, there's something very odd going on. Used the 7.x-1.x branch to create that patch, but it does not apply cleanly. It looks like the module has maybe some extra carriage returns that are causing an issue? If I try to delete the lines and replace them, it doesn't even reference the patch in the right location!
If one of the module owners can help in getting this corrected I'd appreciate it, thanks.
Comment #5
kyletaylored CreditAttribution: kyletaylored at LevelTen Interactive commentedIt looks like this was fixed at some point in time, so I'll close this out. Thanks!