mithra62 / ee_debug_toolbar

Adds an unobtrusive interface for debugging an ExpressionEngine site
52 stars 10 forks source link

PHP Notice - Array to string conversion (Hookah Branch) #23

Closed johndwells closed 11 years ago

johndwells commented 11 years ago

Running PHP 5.4.4...

Under the Variables tab, my EE Session array contains a nested array, under the key 'is_banned'. When trying to plainly echo the value, it triggers the following:

A PHP ERROR WAS ENCOUNTERED Severity: Notice Message: Array to string conversion Filename: partials/variables.php Line Number: 67

I can see this happening in other key/val pairs (can't GET and POST values be arrays too?), so might be simplest to create a recursive utility echo function to be used across your views.

Cheers, John

ckimrie commented 11 years ago

Well spotted. I'll look into implementing a fix.

mithra62 commented 11 years ago

This should be fixed. John, can you confirm at your convenience?

johndwells commented 11 years ago

Yes indeed, all good now...

On 21 March 2013 19:23, Eric Lamb notifications@github.com wrote:

This should be fixed. John, can you confirm at your convenience?

— Reply to this email directly or view it on GitHubhttps://github.com/mithra62/ee_debug_toolbar/issues/23#issuecomment-15259902 .

Pura Vida John D Wells http://johndwells.com

ckimrie commented 11 years ago

Sweet.