adrianbj / TracyDebugger

The ultimate debugging and development tool for ProcessWire
https://adrianbj.github.io/TracyDebugger/
GNU General Public License v2.0
88 stars 13 forks source link

PHP Warning: in_array() expects parameter 2 to be array, string given #50

Closed trk closed 4 years ago

trk commented 4 years ago

Changed line 1072

if(in_array('titlePrefix', $this->data['styleAdminType'])) {

with

if(is_array($this->data['styleAdminType']) && in_array('titlePrefix', $this->data['styleAdminType'])) {
Ekran Resmi 2020-07-01 13 52 16
adrianbj commented 4 years ago

Hi @trk - you've upgraded Tracy from a really old version - please just visit the module's settings page and hit save and it will fix this error.