API page: https://api.drupal.org/api/devel/devel.module/function/drupal_debug/7

The first parameter of drupal_debug can't be string. Because it is using print_r. The first parameter of print_r ist mixed.

Comments

jhodgdon’s picture

Assigned: Unassigned » jhodgdon

This issue belongs in the "Devel" project, not Drupal Core. However, I am unable to edit the issue to change the Project. See:
#2148129: Cannot change Project on an issue if target project name is a substring of other project names

So I am temporarily assigning this issue to myself so that when that UI problem is fixed, I will remember to change the project to Devel.

Alternatively, you could file a new issue from the Devel project and close this one as a duplicate.

jhodgdon’s picture

Project: Drupal core » Devel
Version: 7.x-dev » 8.x-1.x-dev
Component: documentation » devel
Assigned: jhodgdon » Unassigned

tvn gave me a workaround, so I'm moving this to the correct project.

salvis’s picture

Title: First parameter is not string. » Fix parameter declaration of drupal_debug()
Status: Active » Fixed

Pushed to D8 and D7.

Thanks for reporting.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.