I am attempting to create an "identical instance" of my 'live production' forum on another domain name for testing purposes.
I want to be able to test extensions and Flarum updates in a safe enviroment before I run them on my live production site.
I copied over all the Flarum files & folders, together with the database from my live production site.
I am now in the process of connecting the two together on another domain name.
I am at the stage where I get this error:
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
I've set the debugger to "True" and this is the message I am getting:
Flarum information
TypeError
Return value of Flarum\Frontend\Compiler\Source\StringSource::getContent() must be of the type string, null returned
Config file:
<?php return array (
'debug' => false,
'database' =>
array (
'driver' => 'mysql',
'host' => 'mysql.new-domain-name.com',
'port' => XXXX,
'database' => 'database',
'username' => 'username',
'password' => 'password',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => NULL,
'prefix_indexes' => true,
),
'url' => 'https://www.new-domain-name.com/discuss',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
'headers' =>
array (
'poweredByHeader' => true,
'referrerPolicy' => 'same-origin',
),
);
Console error: