After installing Trongate, I get the following error on loading welcome page. What is the problem?
Fatal error: Uncaught TypeError: Trongate::load_view_file(): Return value must be of type ?string, none returned in C:\xampp\htdocs\bright\engine\Trongate.php:112 Stack trace: #0 C:\xampp\htdocs\bright\engine\Trongate.php(94): Trongate->load_view_file('C:/xampp/htdocs...', Array, false) #1 C:\xampp\htdocs\bright\modules\welcome\controllers\Welcome.php(5): Trongate->view('welcome') #2 C:\xampp\htdocs\bright\engine\Core.php(217): Welcome->index('') #3 C:\xampp\htdocs\bright\engine\Core.php(13): Core->serve_controller() #4 C:\xampp\htdocs\bright\public\index.php(5): Core->__construct() #5 {main} thrown in C:\xampp\htdocs\bright\engine\Trongate.php on line 112
Error on XAMPP Server PHP 8.20
3 years ago
3 years ago
#1
3 years ago
#2
It is to do with the stricter type setting in PHP 8.2 and the new type hinting DC introduced a few days ago.
I've created a pull request that fixes these errors - DC will look at them and review them later.
These are the fixes to Trongate.php
I've created a pull request that fixes these errors - DC will look at them and review them later.
These are the fixes to Trongate.php
3 years ago
#3
Thanks alot. That fixed the issue.