1084

Error with latest download of trongate framework from github

Comments for “Error with latest download of trongate framework from github”
 

Posted by siri on Friday 23rd February 2024 at 13:21 GMT

Hello all,
I have just downloaded latest trongate framework from github. I am using PHP 8.2.4
After extracting files to htdocs folder when i run http://localhost/trongate , I am getting below error
Fatal error: Uncaught Error: Call to a member function prepare() on null 
in E:\xampp8.2.4\htdocs\trongate\engine\Model.php:62 Stack trace: 
#0 E:\xampp8.2.4\htdocs\trongate\engine\Model.php(215): Model-
>prepare_and_execute('SELECT * FROM t...', Array) 
#1 E:\xampp8.2.4\htdocs\trongate\modules\trongate_pages\controllers\
Trongate_pages.php(33): Model->get_one_where('url_string', 'trongate')
 #2 E:\xampp8.2.4\htdocs\trongate\engine\Core.php(298): Trongate_pages->attempt_display('') 
#3 E:\xampp8.2.4\htdocs\trongate\engine\Core.php(253): 
Core->invoke_controller_method() #4 E:\xampp8.2.4\htdocs\trongate\engine\Core.php(22): 
Core->serve_controller() #5 E:\xampp8.2.4\htdocs\trongate\public\index.php(5): 
Core->__construct() #6 {main} thrown in E:\xampp8.2.4\htdocs\trongate\engine\Model.php on line 62

I am using widows 11 home. Any help would be greatly appreciated.
Thank you
Siri K

This comment was edited by siri on Friday 23rd February 2024 at 13:24 GMT

Early Adopter

siri

User Level: Early Adopter

Date Joined: 19/07/2019

Posted by djnordeen on Friday 23rd February 2024 at 14:32 GMT

Hello,

Are you saying you downloaded the zip file?

Did you try to install the framework from the Trongate App?

Dan
Early Adopter

djnordeen

User Level: Early Adopter

Date Joined: 20/08/2021

Posted by siri on Friday 23rd February 2024 at 15:30 GMT

Hi,
Yes, the error coming from downloaded zip file. Not tried with Desktop app.
Early Adopter

siri

User Level: Early Adopter

Date Joined: 19/07/2019

Posted by djnordeen on Friday 23rd February 2024 at 21:12 GMT

Hello,
Did you get the sql files for the database?
Try the desktop app. You will find it very useful. Add Modules, Create database relationships, Create SQL queries.
edited
Dan

This comment was edited by djnordeen on Saturday 24th February 2024 at 12:17 GMT

Early Adopter

djnordeen

User Level: Early Adopter

Date Joined: 20/08/2021

Posted by DaFa on Friday 23rd February 2024 at 23:21 GMT

Hi Dan, that is an older sql for Trongate - best to use the current base SQL from GitHub
https://github.com/trongate/trongate-framework/blob/master/modules/welcome/setup.sql
also remember to create the database first in phpMyAdmin or similar and edit your config and database files in your app before going to your new apps URL
Founding Member

DaFa

User Level: Founding Member

Date Joined: 30/11/2018

Posted by djnordeen on Saturday 24th February 2024 at 12:19 GMT

Thanks Simon for the latest sql
Dan
Early Adopter

djnordeen

User Level: Early Adopter

Date Joined: 20/08/2021

×