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-a0bb1-182.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/profile/_SYAZ_/

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/Core/pages/profile.php

                                                            )
);

$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()
    )
);

$template->addCSSStyle(
    '.thumbnails li img{
      width: 200px;
    }'
);

if (count($profile) >= 3 && ($profile[count($profile) - 1] != 'profile' || $profile[count($profile) - 2] == 'profile') && !isset($_GET['error'])) {
    // User specified
    $profile = $profile[count($profile) - 1];

    $profile_user = new User($profile, 'username');
    if (!$profile_user->data()) {
        Redirect::to(URL::build('/profile/?error=not_exist'));
        die();
    }
    $query = $profile_user->data();

    // Deal with input
    if (Input::exists()) {
        if ($user->isLoggedIn()) {
            if (isset($_POST['action'])) {
                switch ($_POST['action']) {
                case 'banner':
                    if ($user->data()->username == $profile) {
                        if (Token::check()) {
                            // Update banner
                            if (isset($_POST['banner'])) {
                                // Check image specified actually exists
                                if (is_file(join(DIRECTORY_SEPARATOR, array(ROOT_PATH, 'uploads', 'profile_images', $_POST['banner'])))) {
                                    // Exists
                                    // Is it an image file?

                                                    
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