Closed zikycz closed 7 years ago
Can you check your database using something like phpMyAdmin to see if any tables have been created?
If not, can you try replacing pages/install.php with this code to see if any errors appear during the database step.
<?php /*
require('core/includes/password.php'); // Require password compatibility require('core/integration/uuid.php'); // Require UUID integration
if(isset($_GET["step"])){ $step = strtolower(htmlspecialchars($_GET["step"])); } else { $step = "start"; } ?>
<!DOCTYPE html>
This installer will guide you through the process of installing the NamelessMC website package.
Before you begin with the installation, the installer will verify your current setup is compatible.
This website uses "Nameless" website software. The "Nameless" software creators will not be held responsible for any content that may be experienced whilst browsing this site, nor are they responsible for any loss of data which may come about, for example a hacking attempt. The website is run independently from the software creators, and any content is the responsibility of the website administration.
' )); $queries->create('settings', array( 'name' => 'mc_api_key', 'value' => $plugin_key )); $queries->create('settings', array( 'name' => 'phpmailer', 'value' => '0' )); $queries->create('settings', array( 'name' => 'phpmailer_type', 'value' => 'smtp' )); $external_query = $queries->getWhere('settings', array('name', '=', 'external_query')); if(!count($external_query)){ $queries->create('settings', array( 'name' => 'external_query', 'value' => 'false' )); } $queries->create('settings', array( 'name' => 'use_plugin', 'value' => '0' )); $queries->create('settings', array( 'name' => 'uuid_linking', 'value' => '1' )); $queries->create('settings', array( 'name' => 'inverse_navbar', 'value' => '0' )); $queries->create('settings', array( 'name' => 'error_reporting', 'value' => '0' )); $queries->create('settings', array( 'name' => 'ga_script', 'value' => 'null' )); $queries->create('settings', array( 'name' => 'avatar_api', 'value' => 'cravatar' )); // Languages $queries->create('settings', array( 'name' => 'language', 'value' => 'EnglishUK' )); $queries->create('settings', array( 'name' => 't_and_c_site', 'value' => 'You agree to be bound by our website rules and any laws which may apply to this website and your participation.
The website administration have the right to terminate your account at any time, delete any content you may have posted, and your IP address and any data you input to the website is recorded to assist the site staff with their moderation duties.
The site administration have the right to change these terms and conditions, and any site rules, at any point without warning. Whilst you may be informed of any changes, it is your responsibility to check these terms and the rules at any point.
' )); $queries->create('settings', array( 'name' => 'incoming_email', 'value' => '' )); $queries->create('settings', array( 'name' => 'query_update', 'value' => 'false' )); $queries->create('settings', array( 'name' => 'mc_status_module', 'value' => 'false' )); $queries->create('settings', array( 'name' => 'recaptcha_secret', 'value' => 'null' )); $queries->create('settings', array( 'name' => 'email_verification', 'value' => '1' )); $queries->create('settings', array( 'name' => 'play_page_enabled', 'value' => '1' )); $queries->create('settings', array( 'name' => 'followers', 'value' => '0' )); $queries->create('settings', array( 'name' => 'discord', 'value' => '0' )); $queries->create('settings', array( 'name' => 'avatar_type', 'value' => 'helmavatar' )); $queries->create('settings', array( 'name' => 'use_mcassoc', 'value' => '0' )); $queries->create('settings', array( 'name' => 'mcassoc_key', 'value' => '' )); $queries->create('settings', array( 'name' => 'mcassoc_instance', 'value' => '' )); $queries->create('settings', array( 'name' => 'twitter_style', 'value' => 'light' )); // Version update $version_id = $queries->getWhere('settings', array('name', '=', 'version')); $queries->update('settings', $version_id[0]->id, array( 'value' => '1.0.15' )); // Close connections $mysqli->close(); echo ''; die(); } else { /* * File not writeable */ ?>The data of your old installation will now be retrieved and converted.
Please provide your database details that NamelessMC may connect to. Please ensure the database has already been created.
The installer is now attempting to create the necessary tables in the database.
This website uses "Nameless" website software. The "Nameless" software creators will not be held responsible for any content that may be experienced whilst browsing this site, nor are they responsible for any loss of data which may come about, for example a hacking attempt. The website is run independently from the software creators, and any content is the responsibility of the website administration.
' ), 12 => array( 'name' => 't_and_c_site', 'value' => 'You agree to be bound by our website rules and any laws which may apply to this website and your participation.
The website administration have the right to terminate your account at any time, delete any content you may have posted, and your IP address and any data you input to the website is recorded to assist the site staff with their moderation duties.
The site administration have the right to change these terms and conditions, and any site rules, at any point without warning. Whilst you may be informed of any changes, it is your responsibility to check these terms and the rules at any point.
' ), 13 => array( 'name' => 'displaynames', 'value' => 'false' ), 14 => array( 'name' => 'ga_script', 'value' => 'null' ), 15 => array( 'name' => 'avatar_api', 'value' => 'cravatar' ), 16 => array( 'name' => 'language', 'value' => 'EnglishUK' ), 17 => array( 'name' => 'forum_layout', 'value' => '1' ), 18 => array( 'name' => 'error_reporting', 'value' => '0' ), 19 => array( 'name' => 'inverse_navbar', 'value' => '0' ), 20 => array( 'name' => 'unique_id', 'value' => $uid ), 21 => array( 'name' => 'uuid_linking', 'value' => '1' ), 22 => array( 'name' => 'user_avatars', 'value' => '0' ), 23 => array( 'name' => 'use_plugin', 'value' => '0' ), 24 => array( 'name' => 'external_query', 'value' => 'false' ), 25 => array( 'name' => 'phpmailer', 'value' => '0' ), 26 => array( 'name' => 'phpmailer_type', 'value' => 'smtp' ), 27 => array( 'name' => 'mc_api_key', 'value' => $plugin_key ), 28 => array( 'name' => 'version', 'value' => '1.0.15' ), 29 => array( 'name' => 'version_checked', 'value' => $date ), 30 => array( 'name' => 'version_update', 'value' => 'false' ), 31 => array( 'name' => 'query_update', 'value' => 'false' ), 32 => array( 'name' => 'mc_status_module', 'value' => 'false' ), 33 => array( 'name' => 'recaptcha_secret', 'value' => 'null' ), 34 => array( 'name' => 'email_verification', 'value' => '1' ), 35 => array( 'name' => 'play_page_enabled', 'value' => '1' ), 36 => array( 'name' => 'followers', 'value' => '0' ), 37 => array( 'name' => 'discord', 'value' => '0' ), 38 => array( 'name' => 'avatar_type', 'value' => 'helmavatar' ), 39 => array( 'name' => 'use_mcassoc', 'value' => '0' ), 40 => array( 'name' => 'mcassoc_key', 'value' => '' ), 41 => array( 'name' => 'mcassoc_instance', 'value' => '' ), 42 => array( 'name' => 'twitter_style', 'value' => 'light' ) ); $youtube_url = Input::get('youtube_url'); if(!empty($youtube_url)){ $data[4]["value"] = htmlspecialchars($youtube_url); } $twitter_url = Input::get('twitter_url'); if(!empty($twitter_url)){ $data[5]["value"] = htmlspecialchars($twitter_url); } $twitter_feed = Input::get('twitter_feed'); if(!empty($twitter_feed)){ $data[8]["value"] = htmlspecialchars($twitter_feed); } $gplus_url = Input::get('gplus_url'); if(!empty($gplus_url)){ $data[6]["value"] = htmlspecialchars($gplus_url); } $fb_url = Input::get('fb_url'); if(!empty($fb_url)){ $data[7]["value"] = htmlspecialchars($fb_url); } if(Input::get('user_usernames') == 1){ $data[13]["value"] = "true"; } if(Input::get('user_avatars') == 1){ $data[22]["value"] = "1"; } try { foreach($data as $setting){ $queries->create("settings", array( 'name' => $setting["name"], 'value' => $setting["value"] )); } $queries->create('custom_pages', array( 'url' => '/help/', 'title' => 'Help', 'content' => 'Default help page. Customise in the admin panel.', 'link_location' => 3 )); // Core Modules $modules_initialised = $queries->getWhere('core_modules', array('id', '<>', 0)); if(!count($modules_initialised)){ $queries->create('core_modules', array( 'name' => 'Google_Analytics', 'enabled' => 0 )); $queries->create('core_modules', array( 'name' => 'Social_Media', 'enabled' => 1 )); $queries->create('core_modules', array( 'name' => 'Registration', 'enabled' => 1 )); $queries->create('core_modules', array( 'name' => 'Voice_Server_Module', 'enabled' => 0 )); $queries->create('core_modules', array( 'name' => 'Staff_Applications', 'enabled' => 0 )); } // Themes $themes_initialised = $queries->getWhere('themes', array('id', '<>', 0)); if(!count($themes_initialised)){ $themes = array( 1 => array( 'name' => 'Bootstrap', 'enabled' => 1 ), 2 => array( 'name' => 'Cerulean', 'enabled' => 0 ), 3 => array( 'name' => 'Cosmo', 'enabled' => 0 ), 4 => array( 'name' => 'Cyborg', 'enabled' => 0 ), 5 => array( 'name' => 'Darkly', 'enabled' => 0 ), 6 => array( 'name' => 'Flatly', 'enabled' => 0 ), 7 => array( 'name' => 'Journal', 'enabled' => 0 ), 8 => array( 'name' => 'Lumen', 'enabled' => 0 ), 9 => array( 'name' => 'Paper', 'enabled' => 0 ), 10 => array( 'name' => 'Readable', 'enabled' => 0 ), 11 => array( 'name' => 'Sandstone', 'enabled' => 0 ), 12 => array( 'name' => 'Simplex', 'enabled' => 0 ), 13 => array( 'name' => 'Slate', 'enabled' => 0 ), 14 => array( 'name' => 'Spacelab', 'enabled' => 0 ), 15 => array( 'name' => 'Superhero', 'enabled' => 0 ), 16 => array( 'name' => 'United', 'enabled' => 0 ), 17 => array( 'name' => 'Yeti', 'enabled' => 0 ) ); foreach($themes as $theme){ $queries->create('themes', array( 'enabled' => $theme['enabled'], 'name' => $theme['name'] )); } } // Templates $queries->create('templates', array( 'enabled' => 1, 'name' => 'Default' )); // Cache $c = new Cache(); $c->setCache('themecache'); $c->store('theme', 'Bootstrap'); $c->store('inverse_navbar', '0'); $c->setCache('sitenamecache'); $c->store('sitename', htmlspecialchars(Input::get('site_name'))); $c->setCache('templatecache'); $c->store('template', 'Default'); $c->setCache('languagecache'); $c->store('language', 'EnglishUK'); $c->setCache('page_load_cache'); $c->store('page_load', 0); echo ''; die(); } catch(Exception $e){ echo "Please fill out the form below to set your basic settings, these can be changed later.
Sorry, there was an unknown error logging you in. Try again
'; die(); } } catch(Exception $e){ echo "Time to create the first account, this user will be an admin.
Convert from another forum software?
Great! NamelessMC has successfully been installed, you can now configure your site to your liking via the admin panel.
Please note that tables from your old NamelessMC installation have not been deleted. If you'd like to delete the old tables, you can manually delete the tables with your old prefix. The new tables have the prefix nl1_.
Thanks for using NamelessMC for your servers website. If you need support you can visit the support forums here or you can visit also the offical repository here.
Can you edit the pages/install.php file again, but delete everything in there, and then add this inside?
I'll mark this as closed (#546)
Hello, what can I do so that I can continue with the installation continue?
https://ctrlv.cz/ecRg