Unhandled Error!

MySQL error: "Table './asbestos_wwwquots_quotee/cms_page_visits' is marked as crashed and should be repaired" executing query: insert into cms_page_visits(url, visit_date, ip, page_id) values ('/', '2020-09-19 00:00:00', '3.235.137.159', '16')

Hint

This problem could be caused by MySQL connection configuration errors. Please check the database connection parameters. Also please make sure that MySQL server is running.

Document framework/modules/db/classes/mysql_driver.php
Document type PHP document
Line 131
Exception class Phpr\DatabaseException

Code Highlight


							
										$handle = @mysql_query($sql, Db::$connection);

							
								 

							
										// If error, generate exception

							
										// 

							
										if ($err = @mysql_errno(Db::$connection) != 0) 

							
										{

							
											$exception = new DatabaseException('MySQL error: "'.@mysql_error(Db::$connection).'"  executing query: '.$sql);

							
											$exception->hint_message = 'This problem could be caused by MySQL connection configuration errors. Please check the database connection parameters. Also please make sure that MySQL server is running.';

							
											throw $exception;

							
										}

							
								 

							
										return $handle;

							
									}

							
							

Call Stack

# Code Document Line
14 Db\MySQL_Driver->execute('insert into cms_page_visits(url, visit_date, ip, page_id) values ('/', '2020-09-19 00:00:00', '3.235.137.159', '16')') framework/modules/db/classes/sql.php 645
13 Db\Sql->execute('insert into cms_page_visits(url, visit_date, ip, page_id) values ('/', '2020-09-19 00:00:00', '3.235.137.159', '16')') framework/modules/db/classes/sql.php 474
12 Db\Sql->query('insert into cms_page_visits(url, visit_date, ip, page_id) values ('/', '2020-09-19 00:00:00', '3.235.137.159', '16')') framework/modules/db/helpers/helper.php 49
11 Db\Helper::query('insert into cms_page_visits(url, visit_date, ip, page_id) values (:url, :visit_date, :ip, :page_id)', array(4) [ip => '3.235.137.159', page_id => '16', visit_date => object(Phpr\DateTime), url => '/']) modules/cms/classes/cms_statistics.php 61
10 Cms_Statistics::log_visit(object(Cms_Page), '/') modules/cms/classes/cms_controller.php 117
9 Cms_Controller->open(object(Cms_Page), array(0)) controllers/application.php 56
8 Application->on_404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'on_404'], array(0)) framework/modules/phpr/classes/controller.php 118
6 Phpr\Controller->execute_action('on_404', array(0)) framework/modules/phpr/classes/controller.php 76
5 Phpr\Controller->_run('on_404', array(0)) framework/modules/phpr/classes/response.php 76
4 Phpr\Response->open_404(()) framework/modules/phpr/classes/response.php 48
3 Phpr\Response->open('/') framework/core/init.php 176
2 require_once('/home/asbestos123/public_html/framework/core/init.php') framework/boot.php 95
1 require_once('/home/asbestos123/public_html/framework/boot.php') index.php 25