-
AuthorPosts
-
July 23, 2014 at 5:32 pm #199923
I have installed the Ohanah Event Component and have been having a problem. Everything works fine until I go to a Single Event view, and it renders a blank page. I have been working with the component developer, and so far we are unable to figure out what the problem is. We do know that the problem does not exist in other templates, just playmag. He suggested I reach out to you to see if you had any ideas.
Whenever the page tries to load, the following error is logged:
—
[20-Jul-2014 00:56:58 America/Chicago] PHP Notice: Undefined property: JTableContent::$params in /home/epgn/public_html/plugins/system/t3/t3.php on line 371
[20-Jul-2014 00:56:58 America/Chicago] PHP Fatal error: Call to a member function set() on a non-object in /home/epgn/public_html/plugins/system/t3/t3.php on line 371—
Here is the code around line 371 of the t3.php file referenced in the error log:
—
public function onContentPrepare ($context, &$article, &$params, $page = 0) {
// update params for Article View
if ($context == ‘com_content.article’) {
$app = JFactory::getApplication();
$tmpl = $app->getTemplate(true);
if ($tmpl->params->get(‘link_titles’) !== NULL) {
$article->params->set(‘link_titles’, $tmpl->params->get(‘link_titles’));
}
}
}
}—
You can see how the event displays on my front end by clicking here:
http://192.185.150.48/~epgn/index.php/events
That page renders properly. If you click on the event title or the ‘read more’ link, you’ll get a blank page.
Let me know if you have any ideas about what might be causing the conflict. Thanks!
July 24, 2014 at 2:28 am #543286What exactly is this function used for? I tried commenting out the function, and my problem was fixed. I tested other parts of the site, and I could not determine any detrimental effect on the site by losing the function. That may be a possible work around solution if the functionality isn’t needed somewhere else, and we cannot figure out why the error is happening.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 24, 2014 at 8:38 am #543331This component is paid download, I do not have it for testing. please provide me this package via PM (because I need to forward it to development team).
Regarding the problem on your site, I have raised this as a bug for development team here, They will need time to check it.
We will try to get in touch with the devs of the component to get more details.
Regards
July 24, 2014 at 3:57 pm #543375Thank you so much for looking into this. I have PMed you a link to download the component for testing.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 25, 2014 at 2:04 am #543401This is temporary fix, it will help you to solve the problem on your site while you wait for next JA T3 framework release
Open plugins/system/t3/t3.php file
public function onContentPrepare ($context, &$article, &$params, $page = 0) {
// update params for Article View
if ($context == 'com_content.article') {
$app = JFactory::getApplication();
$tmpl = $app->getTemplate(true);
if ($tmpl->params->get('link_titles') !== NULL) {
$article->params->set('link_titles', $tmpl->params->get('link_titles'));
}
}
}
To
public function onContentPrepare ($context, &$article, &$params, $page = 0) {
// update params for Article View
if ($context == 'com_content.article') {
$app = JFactory::getApplication();
$tmpl = $app->getTemplate(true);
if ($tmpl->params->get('link_titles') !== NULL) {
if (isset($article->params) && is_object($article->params)) $article->params->set('link_titles', $tmpl->params->get('link_titles'));
}
}
}1 user says Thank You to Ninja Lead for this useful post
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by micahmj11 10 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum