We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. William Slaughter
  2. Sherlock Holmes
  3. General Discussion
  4. Tuesday, 22 July 2014
  5.  Subscribe via email
The error.php contains:
<?php
if (($this->error->code) == '404') {
header('Location: /404-error-page');
exit;
} else {
echo $this->error->code;
}
?>

The error is:
Fatal error: Cannot access protected property JException::$code in /home/wlsdev53/public_html/http://joomla-dev.com/templates/t3_blank/error.php on line 2

Could someone please point me in the right direction?

Thanks.
Bill S.
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi William,

Please replace this code:

$this->error->code


with:

$this->error->getCode()


Then your code will work properly.

Gardner
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.