System Information
- Strapi Version: v4.20.5
- Operating System: Debian GNU/Linux 11
- Database: Ver 15.1 Distrib 10.5.25-MariaDB
- Node Version: 18.17.1
- NPM Version: 9.6.7
- Yarn Version: N/A
I added a Controller extend with a custom class name and inside is a public function index(). I’ve already added content as an attribute and title as an attribute but the page doesn’t render properly:
“Trying to access array offset on value of type null”
See attached for the error thrown.
Other notes:
- I’ve added this as a new blade file in the views folder
- I’ve added this view as a new route in the web.php file
I’m running out of ideas of how to fix this error.
Any help would be greatly appreciated.
Thank you!