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 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-9f8f4-198.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/forum/topic/17-nbor-uzaven/

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/pages/forum/view_topic.php

                                                        } else {
    $page_metadata = $queries->getWhere('page_descriptions', array('page', '=', '/forum/view_topic'));

    if (count($page_metadata)) {
        $first_post = $queries->orderWhere('posts', 'topic_id = ' . $topic->id, 'created', 'ASC LIMIT 1');
        $first_post = strip_tags(str_ireplace(array('<br />', '<br>', '<br/>', ' '), array("\n", "\n", "\n", ' '), Output::getDecoded($first_post[0]->post_content)));

        define('PAGE_DESCRIPTION', str_replace(array('{site}', '{title}', '{author}', '{forum_title}', '{page}', '{post}'), array(SITE_NAME, Output::getClean($topic->topic_title), Output::getClean($user->idToName($topic->topic_creator)), Output::getClean($forum_parent[0]->forum_title), Output::getClean($p), substr($first_post, 0, 160) . '...'), $page_metadata[0]->description));
        define('PAGE_KEYWORDS', $page_metadata[0]->tags);
    }
}

$page_title = ((strlen(Output::getClean($topic->topic_title)) > 20) ? Output::getClean(mb_substr($topic->topic_title, 0, 20)) . '...' : Output::getClean($topic->topic_title)) . ' - ' . str_replace('{x}', $p, $language->get('general', 'page_x'));
require_once(ROOT_PATH . '/core/templates/frontend_init.php');

// Assign author + title to Smarty variables
// Get first post
$first_post = $queries->orderWhere('posts', 'topic_id = ' . $tid, 'id', 'ASC LIMIT 1');
$first_post = $first_post[0];

$topic_user = new User($topic->topic_creator);

$smarty->assign(array(
    'TOPIC_TITLE' => Output::getClean($topic->topic_title),
    'TOPIC_AUTHOR_USERNAME' => $topic_user->getDisplayname(),
    'TOPIC_AUTHOR_MCNAME' => $topic_user->getDisplayname(true),
    'TOPIC_AUTHOR_PROFILE' => $topic_user->getProfileURL(),
    'TOPIC_AUTHOR_STYLE' => $topic_user->getGroupClass(),
    'TOPIC_ID' => $topic->id,
    'FORUM_ID' => $topic->forum_id,
    'TOPIC_LAST_EDITED' => ($first_post->last_edited ? $timeago->inWords(date('d M Y, H:i', $first_post->last_edited), $language->getTimeLanguage()) : null),
    'TOPIC_LAST_EDITED_FULL' => ($first_post->last_edited ? date('d M Y, H:i', $first_post->last_edited) : null)
));

// Is there a label?
if ($topic->label != 0) { // yes
    // Get label
    $label = $queries->getWhere('forums_topic_labels', array('id', '=', $topic->label));
    if (count($label)) {
        $label = $label[0];


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

                                                                    die();
        }
    } else {
        // Use recursion to check - might have URL parameters in path
        $path_array = explode('/', $route);

        for ($i = count($path_array) - 2; $i > 0; $i--) {

            $new_path = '/';
            for($n = 1; $n <= $i; $n++){
                $new_path .= $path_array[$n] . '/';
            }

            $new_path = rtrim($new_path, '/');

            if (array_key_exists($new_path, $modules)) {
                $path = join(DIRECTORY_SEPARATOR, array(ROOT_PATH, 'modules', $modules[$new_path]['module'], $modules[$new_path]['file']));

                if (file_exists($path)) {
                    $pages->setActivePage($modules[$new_path]);
                    require($path);
                    die();
                }
            }

        }

        // 404
        require(ROOT_PATH . '/404.php');
    }
}

                                                    

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