Related Problem https://discuss.flarum.org/d/5974-error-call-to-a-member-function-what-s-happening
- Upload your flarum using FTP or File Manager on Cpanel
- Create database on cpanel
- Modify config.php as below
Haloooo every body here, hahahahah Yeeaahhh Problem solved, ?
I am very happy after several hours trying to solve my own problem, it is very simple, just delete the parameters in config.php
I will make a short tutorial in this forum with the post title "How to Upload Flarum to Shared Hosting After Managed in Localhost"
<?php return array (
'debug' => true,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'yourdb_inhost',
'username' => 'yourun_inhost',
'password' => 'yourpwd_inhost',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false, //<---JUST REMOVE THIS PARAMETER
),
'url' => 'https://fgate.000webhostapp.com/',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
);
became
<?php return array (
'debug' => true,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'yourdb_inhost',
'username' => 'yourun_inhost',
'password' => 'yourpwd_inhost',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
),
'url' => 'https://fgate.000webhostapp.com/',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
);
see the demo https://fgate.000webhostapp.com/
I've verified this tip by performed it to different host, see the demo http://forum.gatewan.com