Unhandled Error!

Trying to get property of non-object
Document modules/cms/classes/cms_parser.php
Document type PHP document
Line 80
Exception class Cms_ExecutionException

Code Highlight

																		);
															 
																		if (in_array(get_class($ex), $forward_exception_classes))
																			throw $ex;
															 
																		if ($this->call_stack && strpos($ex->getFile(), "eval()") !== false)
																			throw new Cms_ExecutionException($ex->getMessage(), $this->call_stack, $ex->getLine());
															 
																		throw $ex;
																	}
															 
																	return $parse_result;
																}
														

Call Stack

# Code Document Line
11 Cms_Parser->parse('?><? if ($provider and (strtotime($provider->user->subscription_until) > time())): ?> <!-- <ul class="breadcrumb"> <li><a href="<?=root_url('directory')?>"><?=__('Directory',true)?></a></li> <? $dir_url = root_url('directory/a'); ?> <li><a href="<?=$dir_url.='/'.strtolower($provider->country->code)?>"><?=$provider->country->name?></a> <i class="icon-chevron-right divider"></i></li> <li><a href="<?=$dir_url.='/'.strtolower($provider->state->code)?>"><?=$provider->state->name?></a> <i class="icon-chevron-right divider"></i></li> <li><a href="<?=$dir_url.='/'.Phpr_Inflector::slugify($provider->city)?>"><?=$provider->city?></a> <i class="icon-chevron-right divider"></i></li> <li><a href="<?=$dir_url.='/'.$provider->categories->first->url_name?>"><?=$provider->role_name?></a> <i class="icon-chevron-right divider"></i></li> <li class="active"><?= $provider->business_name ?></li> </ul> --> <div class="page-header"> <?php if (!isMobileDevice()) { ?> <div class="custom-photo"> <div class="avatar"><img src="<?=Bluebell_Provider::avatar($provider)?>" alt="<?=$provider->business_name?>"/></div> </div> <?php } ?> <div class="custom-photo-title"> <h1><?=$this->page->title_name?></h1> <h4 class="subheader"><?=$this->page->description?></h4> </div> <?php //Displays Business Phone on Desktop View Profile $mainphone = $provider->phone ? $provider->phone : ($provider->phone ? $provider->phone : ($provider->user->phone ? $provider->user->phone : ($provider->user->phone ? $provider->user->phone : false))); //Get Twilio Number & Set as Variable $twilionum = $provider->twilio; //Displays Mobile Phone on Mobile Devices #$mobile = $provider->mobile ? $provider->mobile : ($provider->phone ? $provider->phone : ($provider->user->mobile ? $provider->user->mobile : ($provider->user->phone ? $provider->user->phone : false))); // Only show phone number in top right hand corner of profile if you are on desktop. Don't show on mobile device. if (isMobileDevice()) { ?> <div class="profile_tel" style="display:none"> <?php if ($provider->url) { ?> <a target="_blank" href="<?= $provider->url ?>">Visit Website</a> <?php } ?> </div> <?php if (isMobileDevice()) { ?> <div class="container"> <div class="row-fluid profilemobilediv"> <?php if ($twilionum) { ?> <div class="span6"> <a href="tel:<?= $twilionum ?>" class=""> <i class="fa fa-phone" aria-hidden="true"></i><span class="profilemobileicons"><?=__('Call')?></span></a> </div> <?php } else { ?> <div class="span6"> <a href="tel:<?= $mainphone ?>" class=""> <i class="fa fa-phone" aria-hidden="true"></i><span class="profilemobileicons"><?=__('Call')?></span></a> </div> <?php } ?> <div class="span6 grey"> <a href="<?= root_url('request/' . $provider->id) ?>" class="" id="schedule_appointment"><i class="fa fa-usd" aria-hidden="true"></i><span class="profilemobileicons"><?=__('Get a Quote')?></span></a> </div> </div> </div> <?php } ?> <? } else { if ($mainphone or $provider->url) { ?> <div class="profile_tel"> <?php if ($mainphone) { ?> <?php if (!isMobileDevice()) { ?> <?= $mainphone ?><br/> <?php } ?> <?php } ?> <?php if ($provider->url) { ?> <?php if (!isMobileDevice()) { ?> <a target="_blank" href="<?= $provider->url ?>">Visit Website</a> <?php } ?> <?php } ?> </div> <?php } } ?> <div class="clearfix"></div> </div> <div class="row"> <div class="span4 columns"> <div class="ratings"> <p class="overall star-rating"> <?=__('Average rating')?>: <i class="rating-<?=$provider->rating*10?>"></i> <span> <? if ($provider->rating_num > 0): ?> (<?=__('%s reviews', $provider->rating_num)?>) <? else: ?> (<?=__('No ratings yet')?>) <? endif?> </span> </p> </div> <div class="business_logo"> <? $has_logo = ($provider&&$provider->logo->count > 0); $logo = $blank_logo = theme_url('assets/images/avatar_thumb.jpg'); if ($provider) $logo = $provider->get_logo('autox500', $logo); ?> <img src="<?=$logo?>" id="provide_logo" alt="" style="width: 100%; display:<?=($has_logo)?'block':'none'?>" data-blank-src="<?=$blank_logo?>" /> <a href="javascript:;" id="link_provide_logo" style="display:<?=($has_logo)?'none':'block'?>"><?=__('Click here to add your business logo')?></a> </div> <!--<div id="p_control_badge" class="badge-control hide-for-small"> <?/*=$this->display_partial('control:badge', array('provider'=>$provider))*/?> </div>--> <?php if ($provider->licensed == 'Yes' or $provider->insured == 'Yes' or $provider->bonded == 'Yes' or $provider->emergency == 'Yes') { $icons = array('licensed', 'insured', 'bonded', 'emergency'); ?> <div align="center" class="special_icons"> <?php foreach ($icons as $icon) { if ($provider->{$icon} == 'Yes') { ?> <span class="special_icon"> <img class="spec_icon" src="<?= theme_url('assets/images/icons/' .$icon .'.png') ?>" /><br/> <b><?= ucfirst($icon) ?></b> </span> <?php } } ?> <div class="clearfix"></div> </div> <hr/> <?php } if (isMobileDevice() and $twilionum) { ?> <!--<div class="call_to_action"> <a href="tel:<?= $twilionum ?>" class="btn btn-primary btn-large btn-block"><?=__('Call This Provider')?></a> </div><p/>--> <?php } else { ?> <div class="call_to_action"> <a href="javascript:;" class="btn btn-primary btn-large btn-block" id="button_contact_provider"><?=__('Send A Message')?></a> </div> <?php } ?> <p/> <?php if (!isMobileDevice()) { ?> <div class="call_to_action"> <a href="<?= root_url('request/' . $provider->id) ?>" class="btn btn-primary btn-large btn-block" id="schedule_appointment"><?=__('Request A Quote')?></a> </div> <?php } ?> <p/> <?php if (isset($this->user)) { ?> <div class="call_to_action"> <a id="button_add_favorite" data-id="<?= $provider->id ?>" data-action="<?= ($is_favorite) ? 1 : 0 ?>" href="javascript:void(0)" class="btn btn-primary btn-large btn-block"> <?php if (!$is_favorite) { echo __('Add To Favorites'); } else { echo __('Remove From Favorites'); }?> </a> </div><p/> <?php } ?> <?php if (!isMobileDevice()) { ?> <div class="call_to_action"> <a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" id="send_to_friend"><?=__('Refer To A Friend')?></a> </div> <?php } ?> <hr /> <!--<div class="ratings"> <h3><?/*=__('Rated')*/?></h3> <p class="overall star-rating"> <?/*=__('Average rating')*/?>: <i class="rating-<?/*=$provider->rating*10*/?>"></i> <span> <?/* if ($provider->rating_num > 0): */?> (<?/*=__('%s reviews', $provider->rating_num)*/?>) <?/* else: */?> (<?/*=__('No ratings yet')*/?>) <?/* endif*/?> </span> </p> </div>--> </div> <div class="span8 columns"> <!--Add Description on View Profile Page --> <? if ($provider->description_html): ?> <div align="left"> <h2><b><?=__('About %s', $provider->business_name)?></b></h2> <?= $provider->description_html ?> </div> <? else: ?> <div align="center"> There is no description for this provider. </div> <? endif ?> <hr /> <? if ($portfolio): ?> <h2><?= __('Portfolio')?></h2> <div id="portfolio-images" class="carousel slide"> <ol class="carousel-indicators"> <? $count = 0; ?> <? foreach ($portfolio as $item): $count++; ?> <li data-target="#portfolio-images" data-slide-to="<?=$count?>" class="<?=$count==1?'active':''?>"></li> <? endforeach ?> </ol> <!-- Carousel items --> <div class="carousel-inner"> <? $count = 0; ?> <? foreach ($portfolio as $item): $count++; ?> <div class="<?=$count==1?'active':''?> item"> <img src="<?=$item->image?>" alt="" /> </div> <? endforeach ?> </div> <!-- Carousel nav --> <a class="carousel-control left" href="#portfolio-images" data-slide="prev">&lsaquo;</a> <a class="carousel-control right" href="#portfolio-images" data-slide="next">&rsaquo;</a> </div> <? else: ?> <div align="center"> <h2><b><?= __('Portfolio')?></b></h2> <?= __('This provider does not have a portfolio yet.') ?> </div> <? endif ?> <!--<h4><?/*=__('About %s', $provider->business_name)*/?></h4> /= $provider->description_html */?>--> </div> <? if ($provider->testimonials->count or $provider->rating_num): ?> <div class="clearfix"></div> <div class="span12 columns"> <h4><!--?=__('About %s', $provider->business_name)?></h4> ?= $provider->description_html ?>--> <? if ($provider->rating_num > 0): ?> <!--<hr>--> <h2><?=__('Reviews')?></h2> <?=$this->display_partial('provide:ratings', array( 'ratings'=>$ratings, 'base_url'=>$provider->get_url('profile') ))?> <? endif ?> <? if ($provider->testimonials->count): ?> <hr /> <div class="row-fluid"> <div class="span12"> <h4><?=__('Testimonials')?></h4> <div id="p_provide_testimonials"><?=$this->display_partial('provide:testimonials')?></div> </div> </div> <? endif ?> <? endif ?> </div> <div id="popup_contact_provider" class="modal hide fade" tabindex="-1" role="dialog"> <?=form_open(array('id'=>'form_request'))?> <?=form_hidden('invite_providers[]', $provider->id)?> <div class="modal-header"> <h3><?=__('Get a Quote from %s', $provider->business_name)?></h3> </div> <div class="modal-body"> <?=$this->display_partial('request:quick_form', array('role'=>$provider->categories->first))?> <label class="checkbox open_request" for="open_request"> <?=form_checkbox('open_request', true, true, 'id="open_request"')?> <?=__('Send this to other %s in %s and let them provide quotes as well', array(Phpr_Inflector::pluralize($provider->role_name), $provider->location_string))?> </label> </div> <div class="modal-footer"> <?=form_submit('submit', __('Send request'), 'class="btn btn-primary" id="button_submit_contact_provider" data-provider-id="'.$provider->id.'"')?> </div> <?=form_close()?> </div> <div id="popup_contact_provider_success" class="modal hide fade" tabindex="-1" role="dialog"> <div class="modal-body"> <?=global_content_block('directory_request_submit', 'Directory request submitted')?> </div> <div class="modal-footer"> <?=form_button('close', __('Close', true), 'class="btn popup-close"')?> </div> </div> <div id="popup_send_to_friend" class="modal hide fade" tabindex="-1" role="dialog"> <?=form_open(array('id'=>'form_send_to_friend'))?> <?=form_hidden('provider_id', $provider->id)?> <div class="modal-header"> <h3><?=__('Send this profile to a friend!')?></h3> </div> <div class="modal-body"> <?=$this->display_partial('profile:send_to_friend')?> </div> <div class="modal-footer"> <?=form_submit('submit', __('Send'), 'class="btn btn-primary" id="button_submit_send_to_friend" data-provider-id="'.$provider->id.'"')?> </div> <?=form_close()?> </div> <div id="popup_call_provider" class="modal hide fade" tabindex="-1" role="dialog"> <?=form_open(array('id'=>'form_call_provider'))?> <?=form_hidden('provider_id', $provider->id)?> <div class="modal-header"> <h3><?=__('Call this Provider')?></h3> </div> <div class="modal-body"> <?=$this->display_partial('profile;call_provider')?> </div> <div class="modal-footer"> <?=form_submit('submit', __('Call'), 'class="btn btn-primary" id="button_submit_call_provider" data-provider-id="'.$provider->id.'"')?> </div> <?=form_close()?> </div> <? else: ?> <?=$this->display_partial('site:404', array('error_message'=>__('Sorry, that profile could not be found')))?> <? endif ?>', 'CMS page', 'Profile') modules/cms/classes/cms_controller.php 194
10 Cms_Controller->eval_content(()) modules/cms/classes/cms_controller.php 61
9 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'air-duct-pros-inc']) controllers/application.php 51
8 Application->on_404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'on_404'], array(0)) framework/modules/phpr/classes/controller.php 118
6 Phpr\Controller->execute_action('on_404', array(0)) framework/modules/phpr/classes/controller.php 76
5 Phpr\Controller->_run('on_404', array(0)) framework/modules/phpr/classes/response.php 75
4 Phpr\Response->open_404(()) framework/modules/phpr/classes/response.php 49
3 Phpr\Response->open('/profile/air-duct-pros-inc') framework/core/init.php 178
2 require_once('/home/handylo/public_html/framework/core/init.php') framework/boot.php 97
1 require_once('/home/handylo/public_html/framework/boot.php') index.php 12