Unhandled Error!

Trying to get property of non-object

Document /modules/twitter/classes/twitter_api.php
Document type PHP document
Line 54
Exception class Phpr_PhpException

Code Highlight

				// Detect Twitter #tags
				'|#([a-z0-9-_]+)|i' => '<a href="http://twitter.com/search?q=%23$1" target="_blank">$0</a>'
			foreach ($tweets as &$tweet)
				$tweet->text	= str_replace($this->username . ': ', '', $tweet->text);
				$tweet->text	= preg_replace(array_keys($patterns), $patterns, $tweet->text);
				$tweet->count = $limit;
			// Store the feed items
			return $tweets;
# Call Stack Code Document Line
18 Twitter_Api->get_tweets(2) /modules/cms/classes/cms_controller.php(383) : eval()'d code 3
17 eval(()) /modules/cms/classes/cms_controller.php 383
16 Cms_Controller->evalWithException('?><?php $display = isset($display) ? $display : null; $tweets = Twitter_Api::create()->get_tweets($display); ?> <h4>Latest Tweets</h4> <?php foreach($tweets as $index => $tweet): ?> <?php if($index < $tweet->count): ?> <p><?php echo $tweet->text; ?></p> <?php endif ;?> <?php endforeach; ?>', 'CMS partial', 'twitter:tweets', array(1) [display => '2']) /modules/cms/classes/cms_controller.php 1020
15 Cms_Controller->render_partial('twitter:tweets', array(1) [display => '2']) /modules/cms/classes/cms_controller.php(383) : eval()'d code 34
14 eval(()) /modules/cms/classes/cms_controller.php 383
13 Cms_Controller->evalWithException('?><footer class="section inset footer"> <div class="container"> <div class="row"> <div class="col-md-3 col-sm-6"> <div class="footer-col"> <h4>About Cutting Technologies</h4> <p>Cutting Technologies comprises a team of people with years of experience in Laser Cutting, Laser Engraving (also known as Laser Etching), Engineering &amp; Materials Science. As a Laser Cutting Company we feel we're the best. Our Laser Engraving equipment is amongst the largest and most technologically advanced in the world.</p> </div> </div> <div class="col-md-3 col-sm-6"> <div class="footer-col"> <h4>Information & Support</h4> <?php $navigations = MenuBuilder_Menu::create()->find_by_name("Footer")->list_root_items(); ?> <ul class="footernav"> <?php foreach($navigations as $navigation): ?> <li class="<?php echo ((isset($current_tab)) && ($current_tab === $navigation->item_id)) ? 'active' : ''; ?> "> <a href="<?php echo $navigation->get_url(); ?>" title="<?php echo $navigation->title; ?>"><?php echo $navigation->label; ?></a> </li> <?php endforeach; ?> </ul> </div> </div> <div class="col-md-3 col-sm-6"> <div class="footer-col"> <?php $this->render_partial('footer:latest_blog_posts'); ?> </div> </div> <div class="col-md-3 col-sm-6"> <div class="footer-col"> <?php $this->render_partial('twitter:tweets',array('display'=>2)); ?> </div> </div> </div><!-- end row --> <div class="clearfix"> <p class="pull-right id30"><a href="http://www.id30.com" target="_blank">Website by iD30</a></p> </div> </div><!-- end container --> </footer><!-- end section --> ', 'CMS partial', 'site:footer', array(0)) /modules/cms/classes/cms_controller.php 1020
12 Cms_Controller->render_partial('site:footer') /modules/cms/classes/cms_controller.php(383) : eval()'d code 17
11 eval(()) /modules/cms/classes/cms_controller.php 383
10 Cms_Controller->evalWithException('?><!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <base href="<?php echo Phpr::$request->getRootUrl().Phpr::$request->getSubdirectory() ?>" /> <?php $this->render_partial('site:meta-blog'); $this->render_head(); ?> <title>Laser Cutting & Engraving Services | <?php echo h($this->page->title); ?> | <?= Shop_CompanyInformation::get()->name; ?></title> </head> <body> <div class="page"> <?php $this->render_partial('site:header'); ?> <?php $this->render_page(); ?> <?php $this->render_partial('site:footer'); ?> </div> <script src="<?= theme_resource_url('js/cookieControl-5.1.min.js') ?>" type="text/javascript"></script> <script type="text/javascript">//<![CDATA[ cookieControl({ introText:'<p>This site uses some unobtrusive cookies to store information on your computer.</p>', fullText:'<p>Some cookies on this site are essential, and the site won\'t work as expected without them. These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking on simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of the site. If you\'re not happy with this, we won\'t set these cookies but some nice features of the site may be unavailable.</p><p>To control third party cookies, you can also adjust your <a href="../browser-settings" target="_blank">browser settings</a>.</p><p>By using our site you accept the terms of our <a href="http://cut-tec.co.uk/privacy/">Privacy Policy</a>.</p>', position:'left', // left or right shape:'diamond', // triangle or diamond theme:'light', // light or dark startOpen:true, autoHide:6000, subdomains:true, protectedCookies: [], //list the cookies you do not want deleted ['analytics', 'twitter'] consentModel:'information_only', onAccept:function(){ccAddAnalytics()}, onReady:function(){}, onCookiesAllowed:function(){ccAddAnalytics()}, onCookiesNotAllowed:function(){}, countries:'United Kingdom,Netherlands' // Or supply a list ['United Kingdom', 'Greece'] }); function ccAddAnalytics() { jQuery.getScript("//www.google-analytics.com/ga.js", function() { var GATracker = _gat._createTracker(''); GATracker._trackPageview(); }); } //]]> </script> </body> </html>', 'CMS template', 'Blog') /modules/cms/classes/cms_controller.php 211
9 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'creative-laser-operator-technician']) /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('/blog/post/creative-laser-operator-technician') /phproad/system/phproad.php 31
2 include('/var/www/vhosts/cut-tec.co.uk/httpdocs/phproad/system/phproad.php') /boot.php 114
1 require_once('/var/www/vhosts/cut-tec.co.uk/httpdocs/boot.php') /index.php 3