By Tony on Wednesday, 05 April 2017
Posted in General
Likes 0
Views 388
Votes 0
Hi,
after I've update from komento 2. to Komento 3. Gtmetrix report an issue: On Yslow, Gtmetrix gives me that "There is 1 component that can be minified •inline <script> tag #2" on Minify JavaScript and CSS
I use JCH optimizer to avoid that so I've opened a ticket on JCH and they said:

When I check the source of the page I'm seeing an empty SCRIPT tag that contains several lines of space. Consequently JCH Optimize ignores these tags without contents so it leaves a big space in the source as shown in the following screenshot:

Title

You would need to find what extension is loading this SCRIPT and remove it.


The script comes from Komento.
One of the page where you can see it live is:
https://www.gmonamour.it/appartamenti-affitto-casa-vacanze-grottammare/marina-g
Could you fix that, please?
Thanks a lot, best regards
Hello Tony,

Is it possible for you to provide us with the back end and FTP access to your site to check on this issue? You may store your site access at http://stackideas.com/dashboard/site so you don't have to provide these information all the time
·
Wednesday, 05 April 2017 21:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
thanks for your help
I've update with the admin access.
About the ftp, I think that you don't need it because I have the component Profile on my backend
Thanks a lot
My best regards
·
Wednesday, 05 April 2017 21:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tony,

Could you please provide us with the FTP access? It is much safer if we modify files from the FTP because if we have made any typo, ProFiles would not be accessible since it is still a Joomla component.
·
Wednesday, 05 April 2017 22:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Ok, you've got it.
I've just updated my site details
Best regards
·
Thursday, 06 April 2017 01:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,

Seems like the backend login credential given is not working
https://www.screencast.com/t/XukAXcsgT
And may I know do you do any customization in the file:
.../components/com_komento/themes/elegant/structure/default.php before?
·
Thursday, 06 April 2017 12:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
I can't see what was on the password field on my site details, but I've rewrite the password again.
About the .../components/com_komento/themes/elegant/structure/default.php I don't remember well what was my personalization I think that it was that

<?php
$user = JFactory::getUser();


$status = $user->guest;
if($status == 1){ ?>
<a href="#commentform" title="<?php echo JText::_('COM_KOMENTO_FORM_GUEST_NOT_ALLOWED');?>" class="kt-comments-reply-link"><?php echo JText::_('COM_KOMENTO_FORM_GUEST_NOT_ALLOWED');?></a>
<?php }
else {
/** check if he is on group n. 9 */
if(in_array(9, $user->groups)) {
?>
<a href="#commentform" title="<?php echo JText::_('COM_KOMENTO_FORM_ADD_COMMENTS');?>" class="kt-comments-reply-link"><?php echo JText::_('COM_KOMENTO_FORM_ADD_COMMENTS');?></a>
<?php }
else { ?>
<a href="#commentform" title="<?php echo JText::_('COM_KOMENTO_FORM_NOT_ALLOWED');?>" class="kt-comments-reply-link"><?php echo JText::_('COM_KOMENTO_FORM_NOT_ALLOWED');?></a>
<?php }}
?>

I have a copy of it so, if you need, you can overwrite it.
Thanks a lot, my best regards
·
Thursday, 06 April 2017 13:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tony,

I have fixed it for you. Please have a look. This will be included in the next release.
·
Thursday, 06 April 2017 14:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik,
Yes, now it is perfect!
Thanks a lot
My best regards
·
Thursday, 06 April 2017 14:26
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Thursday, 06 April 2017 15:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post