A PHP Error was encountered

Severity: Warning

Message: Missing argument 3 for Illuminate\Database\Query\Builder::whereYear()

Filename: Query/Builder.php

Line Number: 1145

Backtrace:

File: /home/admin/vendor/illuminate/database/Query/Builder.php
Line: 1145
Function: _error_handler

File: /home/admin/vendor/illuminate/database/Eloquent/Builder.php
Line: 1426
Function: call_user_func_array

File: /home/admin/application/controllers/Main.php
Line: 723
Function: __call

File: /home/admin/application/controllers/Main.php
Line: 723
Function: whereYear

File: /home/admin/public_html/index.php
Line: 325
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: value

Filename: Query/Builder.php

Line Number: 1147

Backtrace:

File: /home/admin/vendor/illuminate/database/Query/Builder.php
Line: 1147
Function: _error_handler

File: /home/admin/vendor/illuminate/database/Eloquent/Builder.php
Line: 1426
Function: call_user_func_array

File: /home/admin/application/controllers/Main.php
Line: 723
Function: __call

File: /home/admin/application/controllers/Main.php
Line: 723
Function: whereYear

File: /home/admin/public_html/index.php
Line: 325
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/admin/vendor/codeigniter/framework/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 568

Backtrace:

An uncaught Exception was encountered

Type: Illuminate\Database\QueryException

Message: SQLSTATE[42000]: Syntax error or access violation: 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 '2018 ? and month(`date_event`) < ? order by `id` asc' at line 1 (SQL: select * from `event` where `id_categoryteam` = 2 and year(`date_event`) 2018 and month(`date_event`) < 05 order by `id` asc)

Filename: /home/admin/vendor/illuminate/database/Connection.php

Line Number: 729

Backtrace:

File: /home/admin/vendor/illuminate/database/Connection.php
Line: 685
Function: runQueryCallback

File: /home/admin/vendor/illuminate/database/Connection.php
Line: 349
Function: run

File: /home/admin/vendor/illuminate/database/Query/Builder.php
Line: 1610
Function: select

File: /home/admin/vendor/illuminate/database/Query/Builder.php
Line: 1596
Function: runSelect

File: /home/admin/vendor/illuminate/database/Eloquent/Builder.php
Line: 625
Function: get

File: /home/admin/vendor/illuminate/database/Eloquent/Builder.php
Line: 316
Function: getModels

File: /home/admin/application/controllers/Main.php
Line: 723
Function: get

File: /home/admin/public_html/index.php
Line: 325
Function: require_once