help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
Dashboard not working because of JEM quickicon
- webfeuerflo
- Topic Author
- Offline
- Senior Member
- Posts: 45
- Thanks: 4
Dashboard not working because of JEM quickicon
1 year 4 months ago
Everything else seems to work fine, but the dashboard shows a very strange view and says "Class 'Text' not found"
debug shows that it comes from the quickicon
debug shows that it comes from the quickicon
Please Log in or Create an account to join the conversation.
Re: Dashboard not working because of JEM quickicon
1 year 4 months ago
You're on which version? The problem is known and solved! Thanks anyway!
Please Log in or Create an account to join the conversation.
- webfeuerflo
- Topic Author
- Offline
- Senior Member
- Posts: 45
- Thanks: 4
Re: Dashboard not working because of JEM quickicon
1 year 4 months ago
I upgraded to version 4 using the extension updater. then I noticed that everything was on 4 except the quickicon plugin. I downloaded the package from here and installed it again. Now the quickicon plugin shows version 4 too, but the error remains
Please Log in or Create an account to join the conversation.
- webfeuerflo
- Topic Author
- Offline
- Senior Member
- Posts: 45
- Thanks: 4
Re: Dashboard not working because of JEM quickicon
1 year 4 months ago
I don't have that in the code. It looks like this:
Code:
<?php
/**
* @version 4.0.0
* @package JEM
* @copyright (C) 2013-2023 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*
* Plugin based on the Joomla! update notification plugin
*/
defined('_JEXEC') or die;
/**
* JEM Quickicon Plugin
*
*/
class plgQuickiconJEMquickicon extends JPlugin
{
public function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
}
public function onGetIcons($context)
{
if ($context != $this->params->get('context', 'mod_quickicon') ||
!JFactory::getUser()->authorise('core.manage', 'com_jem') ||
!file_exists(JPATH_ADMINISTRATOR . '/components/com_jem/helpers/helper.php')) {
return;
}
$useIcons = version_compare(JVERSION, '3.0', '>');
$icon = 'com_jem/icon-48-home.png'; // which means '/media/com_jem/images/icon-48-home.png'
$text = $this->params->get('displayedtext');
if (empty($text)) {
$text = Text::_('JEM-Events');
}
return array(
array(
'link' => 'index.php?option=com_jem',
'image' => 'calendar',
'icon' => '',
'text' => $text,
'id' => 'plg_quickicon_jemquickicon',
'group' => 'JEM'
)
);
}
}
Please Log in or Create an account to join the conversation.
Re: Dashboard not working because of JEM quickicon
1 year 4 months ago
The following user(s) said Thank You: jojo12
Please Log in or Create an account to join the conversation.
- webfeuerflo
- Topic Author
- Offline
- Senior Member
- Posts: 45
- Thanks: 4
Re: Dashboard not working because of JEM quickicon
1 year 4 months ago
thanks, this fixes it!
Please Log in or Create an account to join the conversation.
Time to create page: 0.410 seconds