Jump to content

[4.7.3] Error in reports when you have an app without categories.


Go to solution Solved by Daniel F,

Recommended Posts

Posted

The newly added method where() in \IPS\core\Reports\Report is producing an error when you have an app without container:

V2mfYTy.png

 

Log:

Quote

TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in C:\wamp64\www\beta\applications\core\sources\Reports\Report.php:680
Stack trace:
#0 C:\wamp64\www\beta\applications\core\sources\Reports\Report.php(680): array_intersect(NULL, Array)
#1 C:\wamp64\www\beta\system\Member\Member.php(3168): IPS\core\Reports\_Report::where(Object(IPS\Member))
#2 C:\Windows\Temp\tem7D0D.tmp(8887): IPS\_Member->reportCount()
#3 C:\wamp64\www\beta\system\Theme\SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->mobileNavigation()
#4 C:\Windows\Temp\tem7D0D.tmp(6788): IPS\Theme\_SandboxedTemplate->__call('mobileNavigatio...', Array)
#5 C:\wamp64\www\beta\system\Theme\SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->globalTemplate('ba9fa803c65f9ab...', '\n<div class="ip...', Array)
#6 C:\wamp64\www\beta\system\Dispatcher\Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#7 C:\wamp64\www\beta\system\Dispatcher\Standard.php(113): IPS\_Dispatcher->finish()
#8 C:\wamp64\www\beta\system\Dispatcher\Front.php(630): IPS\Dispatcher\_Standard->finish()
#9 C:\wamp64\www\beta\system\Dispatcher\Dispatcher.php(155): IPS\Dispatcher\_Front->finish()
#10 C:\wamp64\www\beta\index.php(13): IPS\_Dispatcher->run()
#11 {main}

Backtrace:

Quote

#0 C:\wamp64\www\beta\system\Theme\SandboxedTemplate.php(71): IPS\_Log::log(Object(TypeError), 'template_error')
#1 C:\Windows\Temp\tem7D0D.tmp(6788): IPS\Theme\_SandboxedTemplate->__call('mobileNavigatio...', Array)
#2 C:\wamp64\www\beta\system\Theme\SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->globalTemplate('ba9fa803c65f9ab...', '\n<div class="ip...', Array)
#3 C:\wamp64\www\beta\system\Dispatcher\Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#4 C:\wamp64\www\beta\system\Dispatcher\Standard.php(113): IPS\_Dispatcher->finish()
#5 C:\wamp64\www\beta\system\Dispatcher\Front.php(630): IPS\Dispatcher\_Standard->finish()
#6 C:\wamp64\www\beta\system\Dispatcher\Dispatcher.php(155): IPS\Dispatcher\_Front->finish()
#7 C:\wamp64\www\beta\index.php(13): IPS\_Dispatcher->run()
#8 {main}

To reproduce, simply delete the category added when you install Downloads, for example.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...