#1
I have a sql error upon downloading the trongate zip file from git.


Fatal error: Uncaught Error: Call to a member function prepare() on null in C:\xampp\htdocs\my_app_trongate\engine\Model.php:553
Stack trace:
#0 C:\xampp\htdocs\my_app_trongate\engine\tg_transferer\Transferer.php(83): Model->exec('SET SQL_MODE = ...')
#1 C:\xampp\htdocs\my_app_trongate\engine\tg_transferer\Transferer.php(35): Transferer->run_sql('SET SQL_MODE = ...')
#2 C:\xampp\htdocs\my_app_trongate\engine\tg_transferer\index.php(7): Transferer->process_post()
#3 C:\xampp\htdocs\my_app_trongate\engine\Core.php(181): require_once('C:\\xampp\\htdocs...')
#4 C:\xampp\htdocs\my_app_trongate\engine\Core.php(250): Core->attempt_sql_transfer('../modules/welc...')
#5 C:\xampp\htdocs\my_app_trongate\engine\Core.php(22): Core->serve_controller()
#6 C:\xampp\htdocs\my_app_trongate\public\index.php(5): Core->__construct()
#7 {main}
thrown in C:\xampp\htdocs\my_app_trongate\engine\Model.php on line 553


what should I do ?

Thanks,
#2
Hello,
First, after downloading the zip from github, what were the next steps that you did?
Why did you not use the Trongate app to install Trongate?
https://trongate.io/download

Did you create a database in the config file to link to?

Dan
#3
Hi,
I didn't do anything but follow the learning zone video. I have the desktop app working fine, I just thought i had to download the zip file to do the learning zone.

Thanks,
#4
when I put my base URL in the browser, I get a screen the says 'SQL FILES FOUND'...

The I hit the view sql button and it give me the following code



If i don't need the zip file to continue the learning zone then Let me know and I'll continue with the desktop app.

Thanks,
#5
Ok, Try to create an app with the desktop app. It will automactially ask you to load the sql files and create the database. It is alot easier this way.

Edit:
You can also open you phpmyadmin and paste in the sql to create your tables.


Dan