A PHP Error was encountered

Severity: Notice

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

Filename: views/product-detail.php

Line Number: 128

Backtrace:

File: /home/agcvoqgj/public_html/application/views/product-detail.php
Line: 128
Function: _error_handler

File: /home/agcvoqgj/public_html/application/controllers/Products.php
Line: 69
Function: view

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