Something went wrong.

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'webzonebg_blesta.company_settings' doesn't exist.
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'webzonebg_blesta.company_settings' doesn't exist on line 196 in /home/webzonebg/public_html/billing/vendors/minphp/db/src/PdoConnection.php
PDOStatement->execute
Line 196

/home/webzonebg/public_html/billing/vendors/minphp/db/src/PdoConnection.php

array(1) {
  [0]=>
  array(6) {
    [0]=>
    string(7) "company"
    [1]=>
    int(1)
    [2]=>
    string(8) "timezone"
    [3]=>
    string(6) "system"
    [4]=>
    string(8) "timezone"
    [5]=>
    string(1) "1"
  }
}
Minphp\Db\PdoConnection->query
Line 793

/home/webzonebg/public_html/billing/vendors/minphp/record/src/Record.php

array(2) {
  [0]=>
  string(282) "SELECT * FROM (((SELECT `key`, `value`, `encrypted`, `inherit`, ? AS `level` FROM `company_settings` WHERE `company_id`=? AND `key`=?) UNION (SELECT `key`, `value`, `encrypted`, `inherit`, ? AS `level` FROM `settings` WHERE `key`=? AND `inherit`=?))) AS `temp` GROUP BY `temp`.`key`"
  [1]=>
  array(6) {
    [0]=>
    string(7) "company"
    [1]=>
    int(1)
    [2]=>
    string(8) "timezone"
    [3]=>
    string(6) "system"
    [4]=>
    string(8) "timezone"
    [5]=>
    string(1) "1"
  }
}
Minphp\Record\Record->fetch
Line 723

/home/webzonebg/public_html/billing/app/models/companies.php

Companies->getSetting
Line 0

/home/webzonebg/public_html/billing/app/app_controller.php

array(2) {
  [0]=>
  int(1)
  [1]=>
  string(8) "timezone"
}
AppController->primeCompany
Line 0

/home/webzonebg/public_html/billing/app/app_controller.php

array(1) {
  [0]=>
  object(stdClass)#109 (6) {
    ["id"]=>
    int(1)
    ["name"]=>
    string(16) "LEAVE A MARK LTD"
    ["hostname"]=>
    string(13) "webzonebg.com"
    ["address"]=>
    string(56) "LEAVE A MARK LTD
BG207282426
VELINGRAD
TSVETOMIR NIKOLOV"
    ["phone"]=>
    string(13) "+359876944667"
    ["fax"]=>
    NULL
  }
}
AppController->preAction
Line 16

/home/webzonebg/public_html/billing/plugins/order/order_controller.php

OrderController->preAction
Line 39

/home/webzonebg/public_html/billing/plugins/order/order_form_controller.php

OrderFormController->preAction
Line 18

/home/webzonebg/public_html/billing/plugins/order/controllers/main.php

Main->preAction
Line 137

/home/webzonebg/public_html/billing/vendors/minphp/bridge/src/Lib/Dispatcher.php

Dispatcher::dispatch
Line 21

/home/webzonebg/public_html/billing/index.php

array(1) {
  [0]=>
  string(59) "/billing/order/main/packages/free-trial/?group_id=4&lang=bg"
}
116
        self::$connections[] = $connection;
117
        self::$dbInfos[] = $this->dbInfo;
118
        $this->setConnection($connection);
119
 
120
        return $connection;
121
    }
122
 
123
    /**
124
     * Set whether or not to reuse an existing connection
125
     *
126
     * @param boolean $enable True to reuse an existing matching connection if available
127
     * @return PdoConnection
128
     */
129
    public function reuseConnection($enable)
130
    {
131
        $this->reuseConnection = $enable;
132
        return $this;
133
    }
134
 
135
    /**
136
     * Sets the fetch mode to the given value, returning the old value
137
     *
138
     * @param int $fetchMode The PDO:FETCH_* constant (int) to fetch records
139
     */
140
    public function setFetchMode($fetchMode)
141
    {
142
        $cur = $this->fetchMode;
143
        $this->fetchMode = $fetchMode;
144
        return $cur;
145
    }
146
 
147
    /**
148
     * Get the last inserted ID
149
     *
150
     * @param string $name The name of the sequence object from which the ID should be returned
151
     * @return string The last ID inserted, if available
152
     */
153
    public function lastInsertId($name = null)
154
    {
155
        return $this->connect()->lastInsertId($name);
156
    }
157
 
158
    /**
159
     * Sets the given value to the given attribute for this connection
160
     *
161
     * @param long $attribute The attribute to set
162
     * @param int $value The value to assign to the attribute
163
     * @return PdoConnection
164
     */
165
    public function setAttribute($attribute, $value)
166
    {
167
        $this->connect()->setAttribute($attribute, $value);
168
        return $this;
169
    }
170
 
171
    /**
172
     * Query the Database using the given prepared statement and argument list
173
     *
174
     * @param string $sql The SQL to execute
175
     * @param string $... Bound parameters [$param1, $param2, ..., $paramN]
176
     * @return PDOStatement The resulting PDOStatement from the execution of this query
177
     */
178
    public function query($sql)
179
    {
180
        $params = func_get_args();
181
        // Shift the SQL parameter off of the list
182
        array_shift($params);
183
 
184
        // If 2nd param is an array, use it as the series of params, rather than
185
        // the rest of the param list
186
        if (isset($params[0]) && is_array($params[0])) {
187
            $params = $params[0];
188
        }
189
 
190
        $this->connect();
191
 
192
        // Store this statement in our PDO object for easy use later
193
        $this->statement = $this->prepare($sql, $this->fetchMode);
194
 
195
        // Execute the query
196
        $this->statement->execute($params);
197
 
198
        // Return the statement
199
        return $this->statement;
200
    }
201
 
202
    /**
203
     * Prepares an SQL statement to be executed by the PDOStatement::execute() method.
204
     * Useful when executing the same query with different bound parameters.
205
     *
206
     * @param string $sql The SQL statement to prepare
207
     * @param int $fetchMode The PDO::FETCH_* constant
208
     * @return PDOStatement The resulting PDOStatement from the preparation of this query
209
     * @see PDOStatement::execute()
210
     */
211
    public function prepare($sql, $fetchMode = null)
212
    {
213
        if ($fetchMode === null) {
214
            $fetchMode = $this->fetchMode;
215
        }
216
 
217
        $this->statement = $this->connect()->prepare($sql);
218
        // Set the default fetch mode for this query
219
        $this->statement->setFetchMode($fetchMode);
220
 
221
        return $this->statement;
222
    }
223
 
224
    /**
225
     * Begin a transaction
226
     *
227
     * @return boolean True if the transaction was successfully opened, false otherwise
228
     */
229
    public function begin()
230
    {
231
        return $this->connect()->beginTransaction();
232
    }
233
 
234
    /**
235
     * Rolls back and closes the transaction
236
     *
237
     * @return boolean True if the transaction was successfully rolled back and closed, false otherwise
238
     */
239
    public function rollBack()
240
    {
241
        return $this->connect()->rollBack();
242
    }
243
 
244
    /**
245
     * Commits a transaction
246
     *
247
     * @return boolean True if the transaction was successfully commited and closed, false otherwise
248
     */
249
    public function commit()
250
    {
251
        return $this->connect()->commit();
252
    }
253
 
254
    /**
255
     * Returns the connection's PDO object if a connection has been established, null otherwise.
256
     *
257
     * @return PDO The PDO connection object, null if no connection exists
258
     */
259
    public function getConnection()
260
    {
261
        return $this->connection;
262
    }
263
 
264
    /**
265
     * Set the PDO connection to use
266
     *
267
     * @param PDO $connection
268
     * @return PdoConnection
269
     */
270
    public function setConnection(PDO $connection)
271
    {
272
        $this->connection = $connection;
273
        return $this;
274
    }
275
 
276
    /**