[FIX] Custom Route : Fix Error: Call to a member function toArray() on null in tiki-admin_routes.php on line 27
Ticket: https://avan.tech/item60454#threadId73363
This happens when you want to access a route that doesn't exist. Example: https://example.org/tiki-admin_routes.php?route=THIS_ID_DOES_NOT_EXIST:
Fatal error: Uncaught Error: Call to a member function toArray() on null in \tiki-admin_routes.php on line 27
( ! ) Error: Call to a member function toArray() on null in \tiki-admin_routes.php on line 27