#1
Further to my last post which I tried to respond to but the system kept telling me that it had been taken down for some reason.
I thought I would also add in the full stack trace that appears on my welcome page when it displays:

Fatal error: Uncaught TypeError: Trongate::load_view_file(): Return value must be of type ?string, none returned in C:\inetpub\wwwroot\trontest2\engine\Trongate.php:112 Stack trace: #0 C:\inetpub\wwwroot\trontest2\engine\Trongate.php(94): Trongate->load_view_file('C:/inetpub/wwwr...', Array, false) #1 C:\inetpub\wwwroot\trontest2\modules\welcome\controllers\Welcome.php(5): Trongate->view('welcome') #2 C:\inetpub\wwwroot\trontest2\engine\Core.php(217): Welcome->index('') #3 C:\inetpub\wwwroot\trontest2\engine\Core.php(13): Core->serve_controller() #4 C:\inetpub\wwwroot\trontest2\public\index.php(5): Core->__construct() #5 {main} thrown in C:\inetpub\wwwroot\trontest2\engine\Trongate.php on line 112
#2
Hi Tony, I see you have made multiple attempts to post here - I have removed the other duplicate posts.

As others have experienced, with the recent addition of type hinting theer was an error ?string type in load_view_file() returning null - this has been fixed in the following code which I have created a pull request for DC to review.


Please be patient while this is being sorted
#3
Thanks for your reply.

I have manually replaced the code and it now works as it should.

I thought that if I created a new project using the desktop app it would use that latest version of everything and therefore assumed that the fix you have posted would be used for new projects automatically - obviously I got that wrong too?

I also had a problem that was being reported by VS Code editor that was a false positive which mislead me as I didn’t realise that VS Code was pointing to the wrong version of PHP!

I couldn’t find any information relating to the minimum version of PHP for Trongate so I was swapping PHP versions in case that was causing the original error in trongate.php.
I made more than one post on here as I couldn’t see my original post showing up and was concerned that I had done something wrong so apologies for that.
#4
That's all fine and glad it's working for you now.

I fixed the syntax error on the return types too, so do grab the latest pull request from Github or use the desktop app to create a new app and it will use the latest update. Note the version hasn't changed so you won't see a message popup if you are just modifying an existing app.

Also, with the use of ?string syntax instead of string|null you will need PHP 7.1 or later for Trongate to work