askvortsov
am i allowed to share the link to my site ? so you can see now I cant even log in as the entire front page is gone all i see is the title and this on the main page Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
no I got it to work. then I logged into admin and changed the welcome text when I clicked save everything broke .
this is the config.php
<?php return array (
'debug' => false,
'poweredByHeader' => true,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'port' => 3306,
'database' => '#####',
'username' => '#####',
'password' => '####',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => 'crypto',
'strict' => false,
'engine' => 'InnoDB',
'prefix_indexes' => true,
),
'url' => 'https://cryptotutorial.net/',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
);
This is the index.php
`<?php
/*
- This file is part of Flarum.
*
- For detailed copyright and license information, please view the
- LICENSE file that was distributed with this source code.
*/
$site = require './site.php';
/*
|-------------------------------------------------------------------------------
| Accept incoming HTTP requests
|-------------------------------------------------------------------------------
|
| Every HTTP request pointed to the web server that cannot be served by simply
| responding with one of the files in the "public" directory will be sent to
| this file. Now is the time to boot up Flarum's internal HTTP server, which
| will try its best to interpret the request and return the appropriate
| response, which could be a JSON document (for API responses) or a lot of HTML.
|
*/
$server = new Flarum\Http\Server($site);
$server->listen();
`