500 JHtml icon not found.

GK User
Sat Jun 22, 2013 11:57 am
on home page i get
500

JHtml icon not found.


i have 3 articles and the menu links to them. why i am getting this error please? am happy to pm details to moderator thanks
User avatar
Senior Boarder

GK User
Sat Jun 22, 2013 1:30 pm
Hi,
did you installed anthing else ?

But sure send me full data to backend (super admin) + URL
User avatar
Platinum Boarder

GK User
Sat Jun 22, 2013 2:07 pm
hi
thanks
i have sent the info to you
User avatar
Senior Boarder

GK User
Sat Jun 22, 2013 3:29 pm
Thanks for data,
First, you're well prepared you have RSFirewall installed - nobody would hack you ;) Big Bravo.
Second, this problem appears mostly when you use "old" version of template for single article view

Give me some time, I know where is a bug and I have to fix it. This is our fault :oops:
User avatar
Platinum Boarder

GK User
Sat Jun 22, 2013 4:17 pm
Try this solution (for Joomla 3.1)
Open in edit mode this file:
\templates\gk_game_magazine\html\com_content\article\default.php

there you will see:
Code: Select all
<?php

// no direct access
defined('_JEXEC') or die;
JHtml::_('behavior.caption');
JHtml::addIncludePath(JPATH_COMPONENT.DS.'helpers');
JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php');
// Create shortcuts to some parameters.
$params      = $this->item->params;
if(version_compare( JVERSION, '1.8', 'ge' )) {
    $images = json_decode($this->item->images);
}
$attribs    = json_decode($this->item->attribs);
if(count($attribs)) {
    foreach($attribs as $key => $value) {
        if($value != null) {
        $params->set($key, $value);
        }
    }

$canEdit   = $this->item->params->get('access-edit');
$user      = JFactory::getUser();
// URL for Social API


Change it to:
Code: Select all
<?php

// no direct access
defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT .'/helpers');

// Create shortcuts to some parameters.
$params = $this->item->params;
$images = json_decode($this->item->images);
$attribs = json_decode($this->item->attribs);
JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php');
foreach($attribs as $key => $value) {
    if($value != null) {
       $params->set($key, $value);
    }
}

$canEdit   = $this->item->params->get('access-edit');
$urls = json_decode($this->item->urls);
$user      = JFactory::getUser();

// URL for Social API



I prepared also update file (unzip before).
User avatar
Platinum Boarder

GK User
Sat Jun 22, 2013 6:21 pm
many thanks to. you. i will try and let you know if it worked.. thanks again
User avatar
Senior Boarder

GK User
Mon Oct 28, 2013 4:09 pm
Thanks Pawel F, this patched default.php helped me, too. Why hasn't this file been incorporated into the distribution version? The original thread was started in June?

Thanks,
Railer
User avatar
Gold Boarder

teitbite
Tue Oct 29, 2013 9:34 am
Hi

I think it was. Can You please tell me the version number of Your template ?
User avatar
Moderator

GK User
Tue Oct 29, 2013 3:43 pm
The Gavern/Template version is v 2.15
I'm pretty sure I downloaded the template in August
Joomla version is 3.1.5
User avatar
Gold Boarder

teitbite
Thu Oct 31, 2013 6:14 pm
Hi

Please try edit file /html/com_content/article/default.php and replace the order for this lines with a below code. So it looks like in my example:

Code: Select all
JHtml::addIncludePath(JPATH_COMPONENT .'/helpers');
JHtml::_('behavior.caption');


That should be it :)
User avatar
Moderator

GK User
Thu Oct 31, 2013 6:31 pm
Thanks teitbite,

Maybe you missed what I said, but the file I got above fixed the problem for me.
I was using the Quickstart version, which might not have been updated when the actual template version was.

I'm going to update the version of my template to the latest.

Thanks,
Railer
User avatar
Gold Boarder

teitbite
Thu Oct 31, 2013 6:37 pm
Hi

Ok, no problem. You are right, I've missunderstood You. I'm glad it's working :)
User avatar
Moderator

GK User
Fri Nov 08, 2013 12:57 am
Hello I have the same error with joomla 3.2.

Solution ?
User avatar
Fresh Boarder

teitbite
Sat Nov 09, 2013 1:08 pm
Hi

Please try the same fix for now. This file should not differ much for the older joomla. I will let programmers know that this issue was duplicated.
User avatar
Moderator

GK User
Sun Nov 10, 2013 12:04 am
Hello

teitbite

Don't solve my problem !!!

I need a Solution....
User avatar
Fresh Boarder

teitbite
Mon Nov 11, 2013 4:16 pm
Hi

Send me an an ftp access and an exact link to the page where error is displayed.
User avatar
Moderator

GK User
Tue Dec 10, 2013 3:05 pm
Hey guys!

I'm having the same issue, on my Game Magazine template.
I replaced that code in default.php but it's not working.

Please help, regards Mladen
User avatar
Fresh Boarder

GK User
Tue Dec 10, 2013 5:32 pm
Ignore that. I did it!!! :D
User avatar
Fresh Boarder

teitbite
Fri Dec 13, 2013 8:16 pm
Hi

Can You please tell us what was the solution. Did You made any changes to the previous code ?
User avatar
Moderator

GK User
Mon Jan 06, 2014 6:55 pm
I know it's a dirty solution, but it can be fixed by deleting the html/con_content folder from the template.
User avatar
Fresh Boarder

teitbite
Wed Jan 08, 2014 3:25 am
Hi

That's more of avoiding the problem, but if You are fine with the changes in style this may bring than this is a proper solution :)
User avatar
Moderator


cron