A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/Gallery.php

Line Number: 39

Backtrace:

File: /home/sawen/public_html/application/modules/gallery/controllers/Gallery.php
Line: 39
Function: _error_handler

File: /home/sawen/public_html/index.php
Line: 343
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 570

Backtrace:

An uncaught Exception was encountered

Type: Error

Message: Call to a member function result() on bool

Filename: /home/sawen/public_html/application/modules/gallery/models/Gallery_model.php

Line Number: 175

Backtrace:

File: /home/sawen/public_html/application/modules/gallery/controllers/Gallery.php
Line: 39
Function: get_by_gallery_id

File: /home/sawen/public_html/index.php
Line: 343
Function: require_once