Forum Activity for @dannya

alt=
@dannya
04/03/14 05:20:14PM
584 posts

Mod deflate vs mod filter


Installation and Configuration

Could there be something turning the filter module off, e,g, developer mode? According to sysadmin its not working but it does work if you switch to deflate.

According to sysadmin

>
> deflate module is installed and loaded by default already. To turn on compression for the content, AddOutputFilterByType directive should be used. And as I see, someone already tried to turn this on, but used the wrong module - one should use "mod_deflate.c" instead of "mod_filter.c". Here is exact working patch for .htaccess:
>
> --- .htaccess 2014-04-01 17:23:26.845800224 -0400
> +++ .htaccess.orig 2014-04-01 02:53:52.000000000 -0400
> @@ -15,7 +15,7 @@
>
>
> # Compress everything we can
> -
> +
> AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript text/javascript-x application/javascript
>
>
>
> I have tested this config and it works as expected:
>
> $ wget --header="Accept-Encoding: gzip,*" -S -O /dev/null
> http://dev.xtraxx.com/
> --2014-04-02 00:29:06-- http://dev.xtraxx.com/ Resolving dev.xtraxx.com... 23.23.111.58 Connecting to dev.xtraxx.com|23.23.111.58|:80... connected.
> HTTP request sent, awaiting response...
> HTTP/1.1 200 OK
> Date: Tue, 01 Apr 2014 21:23:32 GMT
> Server: Apache/2.2.15
> X-Powered-By: PHP/5.4.22
> Expires: Thu, 19 Nov 1981 08:52:00 GMT
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
> Pragma: no-cache
> Connection: close
> Set-Cookie: sess14d4c22aa091=freo2lo427ent8hsjdm833n267; path=/
> Vary: Accept-Encoding
> Content-Encoding: gzip
> Content-Length: 6401
> Content-Type: text/html; charset=utf-8
> Length: 6401 (6.3K) [text/html]
> Saving to: `/dev/null'
>
> 100%[===================================================================================================================> ] 6,401 --.-K/s in 0.1s
>
> 2014-04-02 00:29:09 (45.9 KB/s) - `/dev/null' saved [6401/6401]
>
>
>
> $ wget -S -O /dev/null http://dev.xtraxx.com/
> --2014-04-02 00:41:19-- http://dev.xtraxx.com/ Resolving dev.xtraxx.com... 23.23.111.58 Connecting to dev.xtraxx.com|23.23.111.58|:80... connected.
> HTTP request sent, awaiting response...
> HTTP/1.1 200 OK
> Date: Tue, 01 Apr 2014 21:35:46 GMT
> Server: Apache/2.2.15
> X-Powered-By: PHP/5.4.22
> Expires: Thu, 19 Nov 1981 08:52:00 GMT
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
> Pragma: no-cache
> Connection: close
> Set-Cookie: sess14d4c22aa091=751ro61u0a5l1q1if34vkp4kt6; path=/
> Content-Length: 51593
> Vary: Accept-Encoding
> Content-Type: text/html; charset=utf-8
> Length: 51593 (50K) [text/html]
> Saving to: `/dev/null'
>
> 100%[===================================================================================================================> ] 51,593 188K/s in 0.3s
>
> 2014-04-02 00:41:26 (188 KB/s) - `/dev/null' saved [51593/51593]
>
>
> Please draw attention to "Content-Encoding: gzip" and different "Content-Length" with and without compression in the above example. I haven't done any real changes to current content on the server and git repo as am waiting until we sort out all those things with ignores, pushes, commits. But in general, as I already stated, all that is needed to turn on compression is to use this code in .htaccess:
>
>
> AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
> text/javascript text/javascript-x application/javascript
alt=
@dannya
04/03/14 03:27:48PM
584 posts

checktype error


Jamroom Developers

No, Same install, however we recently updated the jrcore files to latest release and actually configured the foxycart module
alt=
@dannya
04/03/14 03:11:43PM
584 posts

Publishing from development server to production server


Installation and Configuration

the marketplace requires ftp access to the server and is not secure. I don't know why someone would put that on a production system
alt=
@dannya
04/03/14 02:28:25PM
584 posts

Mod deflate vs mod filter


Installation and Configuration

Great thanks. Strange that Google didn't pick this up.
alt=
@dannya
04/03/14 02:20:10PM
584 posts

Fatal error


Installation and Configuration

Could this possibly be fixed by deleting the files in the cache?
alt=
@dannya
04/03/14 02:16:41PM
584 posts

Publishing from development server to production server


Installation and Configuration

Thanks guys.

steve, that would be fine the first time but doesn't work on an ongoing basis. i.e., every time you make changes to your code, you wouldn't re-install and reconfigure everything, you just copy over the changed files. The problem is files in the data directory are changed on both servers so you wouldn't want to overwrite each others.
alt=
@dannya
04/03/14 01:48:01PM
584 posts

Mod deflate vs mod filter


Installation and Configuration

Is there a reason JR uses mod_filter instead of mod_deflate. Mod_deflate is being recommended by google pagespeed as well as my sysadmin. Want to make sure there is not a problem with this.
updated by @dannya: 05/04/14 11:30:49PM
alt=
@dannya
04/03/14 01:41:06PM
584 posts

checktype error


Jamroom Developers

I am getting error "invalid jrCore_checktype: split". When custom "checktype (agree and split)" is added into custom module and when we activate the "foxycart" module then these "checktype" is
not loaded into "jrcore_checktype_cache".

Any idea?
updated by @dannya: 05/04/14 11:22:13PM
alt=
@dannya
04/03/14 01:15:56PM
584 posts

Publishing from development server to production server


Installation and Configuration

If I want to make sure the same code runs on 2 different environments what files should be excluded when I publish so as to break the configuration?

e.g. if i copy the code from my development server to my production environment, i should not copy over the data/config/config.php file because it will overwrite the configuration unique to the production server. What other files/folders are unique to an installation and should not be overwritten? the rest of the /data folder? htaccess files?
updated by @dannya: 05/03/14 07:32:03PM
alt=
@dannya
04/03/14 01:08:16PM
584 posts

Fatal error


Installation and Configuration

Getting the following message in error log:

[03-Apr-2014 19:15:47 Europe/Dublin] PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/xtraxx/public_html/data/cache/jrCore/1aea9ddb51fe3c9904e6cac833e9a431.tpl" on line 37 "{xtAjax_get_meta_tags('xtSong', {$_post._1})}" unknown function "xtAjax_get_meta_tags" Smarty Compiler: Syntax error in template "/home/xtraxx/public_html/data/cache/jrCore/1aea9ddb51fe3c9904e6cac833e9a431.tpl" on line 37 "{xtAjax_get_meta_tags('xtSong', {$_post._1})}" unknown function "xtAjax_get_meta_tags"
updated by @dannya: 05/04/14 11:30:41PM
  56