A PHP Error was encountered

Severity: Warning

Message: Trying to access array offset on value of type null

Filename: models/Blog_model.php

Line Number: 44

Backtrace:

File: /var/www/site/models/Blog_model.php
Line: 44
Function: _error_handler

File: /var/www/site/controllers/Blog.php
Line: 172
Function: get_post

File: /var/www/site/controllers/Blog.php
Line: 155
Function: getEditPostData

File: /var/www/index.php
Line: 333
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 571

Backtrace:

File: /var/www/site/models/Blog_model.php
Line: 45
Function: query

File: /var/www/site/controllers/Blog.php
Line: 172
Function: get_post

File: /var/www/site/controllers/Blog.php
Line: 155
Function: getEditPostData

File: /var/www/index.php
Line: 333
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

update mgs_blogs set view=view+1 where id_blog=

Filename: models/Blog_model.php

Line Number: 45