Notice: file_put_contents(): write of 85 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 85 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 83 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 83 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 98 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 98 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 98 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 98 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 98 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 98 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 98 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 98 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 98 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 98 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 98 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 98 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 98 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 98 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 98 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 98 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 98 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 98 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 161 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 161 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 159 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 159 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199
Fatal Error - DeadPvP

Uncaught PDOException

SQLSTATE[HY000]: General error: 1021 Disk full (/tmp/#sql-temptable-1d07fa-9f09d-163.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")

(File: /var/www/forum/core/classes/DB.php)

https://deadpvp.eu/

File: /var/www/forum/core/classes/DB.php

                                                        
    public static function getInstance() {
        if(!isset(self::$_instance)) {
            self::$_instance = new DB();
        }

        return self::$_instance;
    }

    public function query($sql, $params = array(), $fetch_method = PDO::FETCH_OBJ) {
        $this->_error = false;
        if($this->_query = $this->_pdo->prepare($sql)) {
            $x = 1;
            if(count($params)) {
                foreach($params as $param) {
                    $this->_query->bindValue($x, $param);
                    $x++;
                }
            }

            if($this->_query->execute()) {
                $this->_results = $this->_query->fetchAll($fetch_method);
                $this->_count = $this->_query->rowCount();
            } else {
                print_r($this->_pdo->errorInfo());
                $this->_error = true;
            }

        }

        return $this;
    }

    public function createQuery($sql, $params = array()) {
        $this->_error = false;
        if($this->_query = $this->_pdo->prepare($sql)) {
            $x = 1;
            if(count($params)) {
                foreach($params as $param) {
                    $this->_query->bindValue($x, $param);
                    $x++;

                                                    
File: /var/www/forum/core/classes/User.php

                                                                    throw new Exception('There was a problem creating an account.');
        }
    }

    /**
     * Find a user by unique identifier (username, ID, email, etc).
     * Loads instance variables for this class.
     *
     * @param string $value Unique identifier.
     * @param string $field What column to check for their unique identifier in.
     * @return bool True/false on success or failure respectfully.
     */
    public function find($value = null, $field = 'id') {
        if ($value) {
            $data = $this->_db->get('users', array($field, '=', $value));

            if ($data->count()) {
                $this->_data = $data->first();

                // Get user groups
                $groups_query = $this->_db->query('SELECT nl2_groups.* FROM nl2_users_groups INNER JOIN nl2_groups ON group_id = nl2_groups.id WHERE user_id = ? AND deleted = 0 ORDER BY `order`;', array($this->_data->id));
                
                if ($groups_query->count()) {
                    
                    $groups_query = $groups_query->results();
                    foreach ($groups_query as $item) {
                        $this->_groups[$item->id] = $item;
                    }

                } else {
                    // Get default group
                    // TODO: Use PRE_VALIDATED_DEFAULT ?
                    $default_group = $this->_db->query('SELECT * FROM nl2_groups WHERE default_group = 1', array())->first();
                    if ($default_group) {
                        $default_group_id = $default_group->id;
                    } else {
                        $default_group_id = 1; // default to 1
                        $default_group = $this->_db->query('SELECT * FROM nl2_groups WHERE id = 1', array())->first();
                    }
                    
                    $this->addGroup($default_group_id);

                                                    
File: /var/www/forum/modules/Forum/front_page.php

                                                         *  NamelessMC version 2.0.0-pr8
 *
 *  License: MIT
 *
 *  Forum module - front page module
 */

$cache->setCache('news_cache');
if ($cache->isCached('news')) {
    $news = $cache->retrieve('news');
} else {
    require_once(ROOT_PATH . '/modules/Forum/classes/Forum.php');
    $forum = new Forum();
    $timeago = new Timeago(TIMEZONE);

    $latest_news = $forum->getLatestNews(5); // Get latest 5 items

    $news = array();

    foreach ($latest_news as $item) {
        $post_user = new User($item['author']);

        $news[] = array(
            'id' => $item['topic_id'],
            'url' => URL::build('/forum/topic/' . $item['topic_id'] . '-' . $forum->titleToURL($item['topic_title'])),
            'date' => date('d M Y, H:i', strtotime($item['topic_date'])),
            'time_ago' => $timeago->inWords($item['topic_date'], $language->getTimeLanguage()),
            'title' => Output::getClean($item['topic_title']),
            'views' => $item['topic_views'],
            'replies' => $item['replies'],
            'author_id' => Output::getClean($item['author']),
            'author_url' => $post_user->getProfileURL(),
            'author_style' => $post_user->getGroupClass(),
            'author_name' => $post_user->getDisplayname(true),
            'author_nickname' => $post_user->getDisplayname(),
            'author_avatar' => $post_user->getAvatar(64),
            'author_group' => Output::getClean($post_user->getMainGroup()->name),
            'author_group_html' => $post_user->getMainGroup()->group_html,
            'content' => Output::getPurified($item['content']),
            'label' => $item['label'],
            'labels' => $item['labels']

                                                    
File: /var/www/forum/modules/Core/pages/home.php

                                                        	(defined('CONFIG_PATH') ? CONFIG_PATH : '') . '/core/assets/plugins/prism/prism.css' => array(),
	(defined('CONFIG_PATH') ? CONFIG_PATH : '') . '/core/assets/plugins/tinymce/plugins/spoiler/css/spoiler.css' => array()
));

$template->addJSFiles(array(
	(defined('CONFIG_PATH') ? CONFIG_PATH : '') . '/core/assets/plugins/prism/prism.js' => array(),
	(defined('CONFIG_PATH') ? CONFIG_PATH : '') . '/core/assets/plugins/tinymce/plugins/spoiler/js/spoiler.js' => array()
));

if(Session::exists('home')){
    $smarty->assign('HOME_SESSION_FLASH', Session::flash('home'));
    $smarty->assign('SUCCESS_TITLE', $language->get('general', 'success'));
}
if(Session::exists('home_error')){
    $smarty->assign('HOME_SESSION_ERROR_FLASH', Session::flash('home_error'));
    $smarty->assign('ERROR_TITLE', $language->get('general', 'error'));
}

if(isset($front_page_modules)){
	foreach($front_page_modules as $module){
		require(ROOT_PATH . '/' . $module);
	}
}

// Assign to Smarty variables
$smarty->assign('SOCIAL', $language->get('general', 'social'));

// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, array($navigation, $cc_nav, $mod_nav), $widgets, $template);

$page_load = microtime(true) - $start;
define('PAGE_LOAD_TIME', str_replace('{x}', round($page_load, 3), $language->get('general', 'page_loaded_in')));

$template->onPageLoad();

$smarty->assign('WIDGETS_LEFT', $widgets->getWidgets('left'));
$smarty->assign('WIDGETS_RIGHT', $widgets->getWidgets('right'));


require(ROOT_PATH . '/core/templates/navbar.php');
require(ROOT_PATH . '/core/templates/footer.php');

                                                    
File: /var/www/forum/modules/Core/pages/index.php

                                                        <?php
/*
 *	Made by Samerton
 *  https://github.com/NamelessMC/Nameless/
 *  NamelessMC version 2.0.0-pr8
 *
 *  License: MIT
 *
 *  Display either homepage or portal
 */

// Home page or portal?
$cache->setCache('portal_cache');
$use_portal = $cache->retrieve('portal');

if($use_portal !== 1) require('home.php');
else require('portal.php');

                                                    
File: /var/www/forum/index.php

                                                        if (isset($_GET['route']) && $_GET['route'] == '/rewrite_test') {
    require_once('rewrite_test.php');
    die();
}

// Start initialising the page
require(ROOT_PATH . '/core/init.php');

if (!isset($GLOBALS['config']['core']) && is_file(ROOT_PATH . '/install.php')) {
    Redirect::to('install.php');
}

// Get page to load from URL
if (!isset($_GET['route']) || $_GET['route'] == '/') {

    if (count($directories) > 1 && (!isset($_GET['route']) || (isset($_GET['route']) && $_GET['route'] != '/'))) {
        require(ROOT_PATH . '/404.php');
    } else {
        // Homepage
        $pages->setActivePage($pages->getPageByURL('/'));
        require(ROOT_PATH . '/modules/Core/pages/index.php');
    }

} else {
    $route = rtrim(strtok($_GET['route'], '?'), '/');

    // Check modules
    $modules = $pages->returnPages();

    // Include the page
    if (array_key_exists($route, $modules)) {
        $pages->setActivePage($modules[$route]);
        if (!isset($modules[$route]['custom'])) {
            $path = join(DIRECTORY_SEPARATOR, array(ROOT_PATH, 'modules', $modules[$route]['module'], $modules[$route]['file']));

            if (!file_exists($path)) {
                require(ROOT_PATH . '/404.php');
            } else { 
                require($path);
            }
            

                                                    

Notice: file_put_contents(): write of 89 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 89 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199

Notice: file_put_contents(): write of 179 bytes failed with errno=28 No space left on device in /var/www/forum/core/classes/ErrorHandler.php on line 199

Warning: file_put_contents(): Only -1 of 179 bytes written, possibly out of free disk space in /var/www/forum/core/classes/ErrorHandler.php on line 199