A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: pages/promote.php

Line Number: 5

Backtrace:

File: /home/websites/hitad.lk/public_html/application/views/pages/promote.php
Line: 5
Function: _error_handler

File: /home/websites/hitad.lk/public_html/application/libraries/Template.php
Line: 70
Function: view

File: /home/websites/hitad.lk/public_html/application/controllers/Promote.php
Line: 21
Function: load

File: /home/websites/hitad.lk/public_html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

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

Filename: pages/promote.php

Line Number: 5

Backtrace:

File: /home/websites/hitad.lk/public_html/application/views/pages/promote.php
Line: 5
Function: _error_handler

File: /home/websites/hitad.lk/public_html/application/libraries/Template.php
Line: 70
Function: view

File: /home/websites/hitad.lk/public_html/application/controllers/Promote.php
Line: 21
Function: load

File: /home/websites/hitad.lk/public_html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: count(): Parameter must be an array or an object that implements Countable

Filename: pages/promote.php

Line Number: 5

Backtrace:

File: /home/websites/hitad.lk/public_html/application/views/pages/promote.php
Line: 5
Function: _error_handler

File: /home/websites/hitad.lk/public_html/application/libraries/Template.php
Line: 70
Function: view

File: /home/websites/hitad.lk/public_html/application/controllers/Promote.php
Line: 21
Function: load

File: /home/websites/hitad.lk/public_html/index.php
Line: 316
Function: require_once

Selected Ad For Promotion
Rs. 500.00

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: pages/promote.php

Line Number: 98

Backtrace:

File: /home/websites/hitad.lk/public_html/application/views/pages/promote.php
Line: 98
Function: _error_handler

File: /home/websites/hitad.lk/public_html/application/libraries/Template.php
Line: 70
Function: view

File: /home/websites/hitad.lk/public_html/application/controllers/Promote.php
Line: 21
Function: load

File: /home/websites/hitad.lk/public_html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

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

Filename: pages/promote.php

Line Number: 98

Backtrace:

File: /home/websites/hitad.lk/public_html/application/views/pages/promote.php
Line: 98
Function: _error_handler

File: /home/websites/hitad.lk/public_html/application/libraries/Template.php
Line: 70
Function: view

File: /home/websites/hitad.lk/public_html/application/controllers/Promote.php
Line: 21
Function: load

File: /home/websites/hitad.lk/public_html/index.php
Line: 316
Function: require_once

" name="id">
  BENCHMARKS  
Loading Time: Base Classes  0.0003
Controller Execution Time ( Promote / View Promote )  0.0827
Total Execution Time  0.0830
  GET DATA  
No GET data exists
  MEMORY USAGE  
1,045,200 bytes
  POST DATA  
No POST data exists
  URI STRING  
en/ad/1665640-Honda-Grace-Ex-for-Sale-Urgent/promote
  CLASS/METHOD  
Promote/view_promote
  DATABASE:  hitadlive (Promote:$db)   QUERIES: 6 (0.0761 seconds)  (Hide)
0.0008   SELECT GET_LOCK('92fe8a79add62bb92d8e3c8caf1cffa2'300) AS ci_session_lock 
0.0009   SELECT `data`
FROM `ci_sessions`
WHERE `id` = '5s3h2ktff39hd18b8tpork28fn3t1bi0' 
0.0011   SELECT `a`.`id` as `ad_id`, `a`.`reference_no`, `a`.`is_top_seller`, `a`.`ad_thumb_img`, `a`.`title`, `a`.`slug`, `a`.`description`, `a`.`price`, `a`.`is_negotiable`, `a`.`phone_one`, `a`.`phone_two`, `a`.`approved_date`, `ds`.`name_en` as `district_name`, `ds`.`district_slug`, `ct`.`name_en` as `city_name`, `ct`.`city_slug`, `at`.`ad_type`, `c`.`category_name`, `c`.`category_slug`, `sc`.`category_slug` as `sub_category_slug`, `sc`.`category_name` as `sub_category_name`
FROM `ads` `a`
LEFT JOIN `ad_types` `atON `at`.`id` = `a`.`ad_type_id`
LEFT JOIN `categories` `cON `c`.`id` = `a`.`category_id`
LEFT JOIN `categories` `scON `sc`.`id` = `a`.`sub_category_id`
LEFT JOIN `districts` `dsON `ds`.`id` = `a`.`district_id`
LEFT JOIN `cities` `ctON `ct`.`id` = `a`.`city_id`
WHERE `a`.`id` = '1665640'
AND `a`.`is_approved` = 1
AND `a`.`archived` = 0
ORDER BY 
`a`.`approved_dateDESC 
0.0508   SELECT `a`.*, `ca`.*
FROM `ads_attributes` `a`
LEFT JOIN `category_attributes` `caON `ca`.`id` = `a`.`attribute_join_id`
WHERE `a`.`ads_id` = '1665640' 
0.0010   SELECT *
FROM `ads_photos`
WHERE `ads_id` = '1665640' 
0.0215   SELECT `c`.*, count(a.category_id) as ads_count
FROM 
`categories` `c`
LEFT JOIN `ads` `aON `a`.`category_id` = `c`.`id`
WHERE `c`.`parent_category_idIS NULL
AND `c`.`is_active` = 1
AND `a`.`is_approved` = 1
AND `a`.`archived` = 0
AND `a`.`approved_date` >= NOW() - INTERVAL 60 DAY
GROUP BY 
`a`.`category_id`
ORDER BY `c`.`order_number
  HTTP HEADERS  (Show)
  SESSION DATA  (Show)
  CONFIG VARIABLES  (Show)