Notice (8): Undefined variable: resources [APP/Controller/EventsController.php, line 49]
Warning (512): Unable to emit headers. Headers sent in file=/home/hruaif93/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php line=856 [CORE/src/Http/ResponseEmitter.php, line 51]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/hruaif93/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:856) [CORE/src/Http/ResponseEmitter.php, line 152]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/hruaif93/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:856) [CORE/src/Http/ResponseEmitter.php, line 185]
Error: Call to a member function where() on null

Call to a member function where() on null Error