Css compression breaks site

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Jun 26, 2014 10:13 am
Reply with quote
Report this post
Hello,

I've set up template CSS compression to "enabled", but if I do it, my css breaks and the site appears corrupted.

How can I solve it?

Thanks in advance
User avatar
Expert Boarder

GK User
Thu Jun 26, 2014 6:26 pm
Reply with quote
Report this post
Hello,

Could you provide an URL to your website with this problem?
User avatar
Administrator

GK User
Thu Jun 26, 2014 7:32 pm
Reply with quote
Report this post
Hello, thanks for your answer...

www.museodiocesanolanciano.it

PS I noticed also that enabling javascript compression the ImageShowGK4 header loops loading the images without showing them
User avatar
Expert Boarder

GK User
Fri Jun 27, 2014 10:22 am
Reply with quote
Report this post
I don't see any problem now - it seems that CSS compression is disabled.
User avatar
Administrator

GK User
Fri Jun 27, 2014 2:31 pm
Reply with quote
Report this post
Hello,

yes CSS compression is now disabled: if I enable it, in fact, the site is screwed by the stylesheet corruption.

I was wondering why enabling it causes the problem...
User avatar
Expert Boarder

GK User
Fri Jun 27, 2014 5:02 pm
Reply with quote
Report this post
Sorry but without seeing the problem live I'm unable to find a reason - please send me a PM message with access to your back-end.
User avatar
Administrator

GK User
Sat Jun 28, 2014 12:43 pm
Reply with quote
Report this post
Please check your file permissions for the cache/gk directory - when I've tried to access this file:

http://www.museodiocesanolanciano.it/ca ... a7.css.php

I've got an Internal Server Error (500)
User avatar
Administrator

GK User
Mon Jun 30, 2014 9:09 am
Reply with quote
Report this post
Hello,

the file is 644 as well all the other files; the gk directory is 755.

Should I change somehow/something?

Maybe there could be something to change in .htaccess? Here is its content:

##
# @package Joomla
# @copyright Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
# Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
User avatar
Expert Boarder

GK User
Tue Jul 01, 2014 7:35 am
Reply with quote
Report this post
Please try temporary to set the permissions for 777 for all files inside the gk folder and for the folder gk (only for the test purpose - please revert it after the test and tell me about the results).
User avatar
Administrator

GK User
Tue Jul 01, 2014 12:46 pm
Reply with quote
Report this post
After setting both gk directory and its files to 777, the result is the same: css is broken; I also tried various combination of css compression/CssCache/gkCache in template settings with the very same result of site messed by css corruption.

By the way after setting to 777 I also tried to click on the link you provided http://www.museodiocesanolanciano.it/ca ... a7.css.php but I still get "internal server error"

If nothing can be done I will make do not using css compression...
User avatar
Expert Boarder

GK User
Tue Jul 01, 2014 6:22 pm
Reply with quote
Report this post
You can try to use the 3rd party plugins like JCH Optimize in this case.
User avatar
Administrator

GK User
Tue Jul 01, 2014 8:27 pm
Reply with quote
Report this post
Hello,

maybe there's something wrong with my provider: JCH breaks the site as well... maybe is php version, or whatever... it does not matter: I will not use css compression; the site does not seem so slow (I hope so): later I will set up the Joomla cache hoping it could help.

Maybe one day there will be some way to solve it...

Thank you for your assistance :-)
User avatar
Expert Boarder


cron