I got this message after typing in address bar of my browser: example.com/admin/content?sort[]
Warning: strtolower() expects parameter 1 to be string, array given in tablesort_get_sort() (line 238 of ..../includes/tablesort.inc).

Comments

catch’s picture

@Chi - would you consider combining these patches into one (possibly excepting the search patch that is already RTBC)? Would be easier to track in one issue I think, and all the patches are individually very small.

chi’s picture

I thought about it. All these problems have a common cause but in fact, all patches will be very different.
So it would be easier to fix it in separate issues. Fixes some of these issues can take a long time.
We can add some tag for easier tracking.

chi’s picture

Another reason why we should separate these issues that some of these patches may not needs backport to D6.

catch’s picture

OK those are good reasons for separate issues :)

galooph’s picture

Status: Active » Needs review
StatusFileSize
new1.67 KB

Cast $_GET['sort'] as a string.

Test included in patch.

xjm’s picture

See: #1242472-15: Invalid type of $_GET variables causes PHP warnings and notices when treated as strings .

Edit: Basically, we should cast all these values as strings immediately when we assign them from $_GET.

xjm’s picture

Assigned: Unassigned » xjm
xjm’s picture

Status: Needs review » Closed (duplicate)
xjm’s picture

Assigned: xjm » Unassigned