Skip to content

Seeing PHP errors with the latest version #13

@gmclelland

Description

@gmclelland

Hi Adrian,

After installing the latest version, I'm seeing the following error

PHP Warning: count(): Parameter must be an array or an object that implements Countable in .../site/modules/TracyDebugger/TracyDebugger.module:1123
ErrorException: count(): Parameter must be an array or an object that implements Countable in /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/ProcesswireInfoPanel.php:198
Stack trace:
#0 /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/ProcesswireInfoPanel.php(198): Tracy\Bar->Tracy\{closure}(2, 'count(): Parame...', '/Users/glenn/we...', 198, Array)
#1 /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(159): ProcesswireInfoPanel->getPanel()
#2 /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(108): Tracy\Bar->renderPanels()
#3 /Users/glenn/websites/mysite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Debugger.php(272): Tracy\Bar->render()
#4 [internal function]: Tracy\Debugger::shutdownHandler()
#5 {main}

and on another site the same

ErrorException: count(): Parameter must be an array or an object that implements Countable in /Users/glenn/websites/othersite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/ProcesswireInfoPanel.php:198
Stack trace:
#0 /Users/glenn/websites/othersite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/ProcesswireInfoPanel.php(198): Tracy\Bar->Tracy\{closure}(2, 'count(): Parame...', '/Users/glenn/we...', 198, Array)
#1 /Users/glenn/websites/othersite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(159): ProcesswireInfoPanel->getPanel()
#2 /Users/glenn/websites/othersite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(108): Tracy\Bar->renderPanels()
#3 /Users/glenn/websites/othersite/wwwroot/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Debugger.php(272): Tracy\Bar->render()
#4 [internal function]: Tracy\Debugger::shutdownHandler()
#5 {main}

I'm running Apache/2.4.28 (Unix) PHP/7.2.0beta3

When I visit the modules page, I also see the following errors:

1x | PHP Warning: count(): Parameter must be an array or an object that implements Countable in .../Inputfield/InputfieldFile/InputfieldFile.module:637
--
1× | PHP Warning: count(): Parameter must be an array or an object that implements Countable in .../Inputfield/InputfieldFile/InputfieldFile.module:229

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions