mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 08:29:06 +00:00

- Remove namespaces for PHP 5.2 support - Rename "includes" to "inc" - Add database error handling and error pages
34 lines
1.2 KiB
PHP
34 lines
1.2 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="">
|
|
<title>litebans-php - Database Error</title>
|
|
<link href="../inc/css/bootstrap.min.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="jumbotron">
|
|
<h2>Database Error</h2><br>
|
|
<div class="text-warning">
|
|
The web interface has connected to the database, but could not find any tables generated by LiteBans.
|
|
<br>
|
|
This means that the plugin has not successfully connected to this database before with the same configuration.
|
|
<br><br>
|
|
Solutions:
|
|
<br>
|
|
- Check the startup logs to see if there are any errors.
|
|
<br>
|
|
- Ensure that the plugin is using the MySQL driver (not SQLite) to connect to the database.
|
|
<br>
|
|
- Ensure that the table prefix is the same in config.yml and settings.php.
|
|
<br>
|
|
</div>
|
|
<br>
|
|
<a href="../" class="btn btn-default">Try Again</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|