Thread Starter
MartiX
(@martix79)
I’m getting this error when debugging:
Whoops\Exception\ErrorException thrown with message “Cannot use object of type Closure as array”
Stacktrace:
#0 in …/wp-content/plugins/gantry5/src/classes/Gantry/WordPress/Widgets.php:293
Plugin Author
Gantry
(@gantry)
Hi,
This has been fixed already in the CI build and will be also released today as the hotfix – 5.2.1
If you want to fix it manually you can do this :
Please edit the wp-content/plugins/gantry5/src/classes/Gantry/WordPress/Widgets.php line 293 and change this :
if (!isset($widget_obj['callback'][0]) || !is_object($widget_obj['callback'][0])) {
if (!is_array($widget_obj['callback']) || !isset($widget_obj['callback'][0]) || !is_object($widget_obj['callback'][0])) {
One more time sorry about that.
Thread Starter
MartiX
(@martix79)
Great, thanks for quick help and fix.