Unhandled Error!

The oAuth Token Cache field(s) must contain a valid date/time value in format 12/15/2017 05:37:32 PM

Document /phproad/modules/phpr/classes/phpr_validation.php
Document type PHP document
Line 384
Exception class Phpr_ValidationException

Code Highlight

		/**
		 * Throws the Validation Exception in case if data is not valid.
		 * @documentable
		 */
		public function throwException()
		{
			throw new Phpr_ValidationException($this);
		}
 
		public function hasRuleFor($field)
		{
			return array_key_exists($field, $this->_fields);
		}
# Call Stack Code Document Line
18 Phpr_Validation->throwException(()) /phproad/modules/db/classes/db_activerecord.php 2543
17 Db_ActiveRecord->validate(null) /phproad/modules/db/classes/db_activerecord.php 2528
16 Db_ActiveRecord->valid(null) /phproad/modules/db/classes/db_activerecord.php 790
15 Db_ActiveRecord->save(()) /modules/instagram/classes/instagram_api.php 168
14 Instagram_Api->init_sdk('') /modules/instagram/classes/instagram_api.php 21
13 Instagram_Api->get(()) /modules/cms/classes/cms_controller.php(383) : eval()'d code 4
12 eval(()) /modules/cms/classes/cms_controller.php 383
11 Cms_Controller->evalWithException('?><? $debug = false; $data = Instagram_Api::create(); $data->get(); $user = $data->get_user(); $followers = 0000; $posts = 0000; $bio = null; $username = null; if($user && isset($user->data)) { $username = $user->data->username; $bio = $user->data->bio; if(isset($user->data->counts)) { $followers = $user->data->counts->followed_by; $posts = $user->data->counts->media; } } $profile = $data->get_user_media($posts); $insta_url = array(); ?> <section class="default-page"> <div class="default-hero default"> <div class="container"> <div class="row"> <div class="col-xs-24"> <header> <h1 class="text-center enclosed">#WEHUSTLE</h1> </header> </div> </div><!-- /.row --> </div><!-- /. container --> </section> <section class="wehustle-page"> <div class="container"> <div class="row"> <div class="col-xs-24 col-sm-12 col-md-12 col-sm-push-6 col-md-push-6"> <div class="instagram" style="padding: 30px;"> <h2><?= $user->data->bio ?></h2> <h2>#WeHustle</h2> <h3>@HUSTLE_CLOTHING_</h3> </div> </div> <div class="col-xs-12 col-sm-6 col-md-6 col-sm-pull-12 col-md-pull-12"> <div class="brand"> <img src="<?=theme_resource_url('img/hustle-men.png'); ?>" class="img-responsive" /> </div> </div> <div class="col-xs-12 col-sm-6 col-md-6"> <div class="instagram-stats pull-right"> <div class="stats posts"> <span><?= $posts;?></span> <p>POSTS</p> </div> <hr /> <div class="stats followers"> <span><?= $followers ;?></span> <p>FOLLOWERS</p> </div> </div> </div> </div><!-- /.row --> </div><!-- /.container --> <div class="instagram-feed"> <div class="container"> <div class="row"> <? if($profile && isset($profile->data) && count($profile->data)): foreach($profile->data as $data): $url = $data->images->standard_resolution->url; if(array_key_exists($url,$insta_url)) continue; $insta_url[$url] = true; ?> <div class="col-xs-8 col-sm-8 col-md-8"> <div class="insta-image"> <a href="<?= $data->link; ?>" target="_blank"> <img src="<?= $url;?>" class="img-responsive" /> </a> </div> </div> <? endforeach; ?> <? else: ?> <h2 class="text-center">#WEHUSTLE</h2> <? endif ?> </div> </div> </div> </section>', 'CMS page', 'We Hustle') /modules/cms/classes/cms_controller.php 608
10 Cms_Controller->eval_page_content(()) /modules/cms/classes/cms_controller.php 198
9 Cms_Controller->open(object(Cms_Page), array(0)) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/wehustle') /phproad/system/phproad.php 31
2 include('/var/www/vhosts/hustle-clothing.co.uk/httpdocs/phproad/system/phproad.php') /boot.php 114
1 require_once('/var/www/vhosts/hustle-clothing.co.uk/httpdocs/boot.php') /index.php 3