A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: models/Counter_model.php

Line Number: 146

Backtrace:

File: /home/mgl013/public_html/application/models/Counter_model.php
Line: 146
Function: _error_handler

File: /home/mgl013/public_html/application/models/Counter_model.php
Line: 51
Function: _userAgent

File: /home/mgl013/public_html/application/models/Counter_model.php
Line: 14
Function: browser_user

File: /home/mgl013/public_html/application/controllers/Home.php
Line: 19
Function: simpanPengunjung

File: /home/mgl013/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: models/Counter_model.php

Line Number: 146

Backtrace:

File: /home/mgl013/public_html/application/models/Counter_model.php
Line: 146
Function: _error_handler

File: /home/mgl013/public_html/application/models/Counter_model.php
Line: 168
Function: _userAgent

File: /home/mgl013/public_html/application/models/Counter_model.php
Line: 15
Function: os_user

File: /home/mgl013/public_html/application/controllers/Home.php
Line: 19
Function: simpanPengunjung

File: /home/mgl013/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/mgl013/public_html/system/core/Exceptions.php:271)

Filename: models/Counter_model.php

Line Number: 23

Backtrace:

File: /home/mgl013/public_html/application/models/Counter_model.php
Line: 23
Function: setcookie

File: /home/mgl013/public_html/application/controllers/Home.php
Line: 19
Function: simpanPengunjung

File: /home/mgl013/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/mgl013/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/mgl013/public_html/application/models/Home_model.php
Line: 33
Function: query

File: /home/mgl013/public_html/application/controllers/Home.php
Line: 89
Function: getContent

File: /home/mgl013/public_html/index.php
Line: 315
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 MySQL server version for the right syntax to use near '-6,6' at line 6

select jc.*, cat.title as category, cat.id as idcat from jos_content jc inner join jos_categories cat on jc.catid=cat.id where jc.state = 1 and jc.front_page = 1 and jc.info_grafis = 0 and (jc.publish_down = '0000-00-00 00:00:00' or jc.publish_down = '1970-01-01 00:00:00' or jc.publish_down >= CURDATE()) order by jc.created desc limit -6,6

Filename: models/Home_model.php

Line Number: 33