ElkArte Community

Project Support => General ElkArte discussions => Topic started by: kucing on August 17, 2014, 11:19:19 pm

Title: Topic display is broken
Post by: kucing on August 17, 2014, 11:19:19 pm
Maybe this is related to my problem here: http://www.elkarte.net/community/index.php?topic=1869.0

After migrating to a VPS, the display of the topic is broken: e.g. http://dfns.org/index.php?topic=67.msg3614#new
But the display of main page or category is fine.

Edit:

Looks like it only broken on mobile version? I don't know why on my netbook it using mobile display (1024x600).
Title: Re: Topic display is broken
Post by: ahrasis on August 18, 2014, 01:40:39 am
I think it is broken only if you enter board index directly. Going to other pages is generally ok. Anyway, is your VPS working fine? Sometimes, improper htaccess may cause that too.
Title: Re: Topic display is broken
Post by: emanuele on August 18, 2014, 03:57:22 am
Something looks broken in the building of the hives of the minified css and javascripts.
If you can, try downloading the latests "master" code from github and upload it. I don't remember any big fix on that area (just something related to debugging), but it doesn't hurt.

If I were you, I would also check the paths of the themes.

The hives also have strange names in Display:
Code: [Select]
http://dfns.org/cache/A.hive-705cffeeb6a6a4f2bfedcb9a2a24814bcd622baa.css,qd5e71b88.pagespeed.cf.YXyHdzdca7.css
Starting from the "A." at the beginning, then the file names of the css loaded (pagespeed, YXyHdzdca7).

If I were you, I would also check all the paths (cache dir, themes dir, attachments dir, etc.) there is something definitely broken in that area because the avatars are not showing up.
Title: Re: Topic display is broken
Post by: kucing on August 18, 2014, 04:20:21 am
Will do, already fixed the directory name in settings.php.

I restored the forum using the files and databases from the backup 2 months ago. Another thing is, before the server is Apache (shared hosting) now I'm using nginx.

Edit:
QuoteThe hives also have strange names in Display:
Code: [Select]
http://dfns.org/cache/A.hive-705cffeeb6a6a4f2bfedcb9a2a24814bcd622baa.css,qd5e71b88.pagespeed.cf.YXyHdzdca7.css
Starting from the "A." at the beginning, then the file names of the css loaded (pagespeed, YXyHdzdca7).

Looks like it's from Nginx Pagespeed module. I will disable it.
https://developers.google.com/speed/pagespeed/module
https://github.com/pagespeed/ngx_pagespeed
Title: Re: Topic display is broken
Post by: emanuele on August 18, 2014, 04:42:25 am
Did you also disable the cache?
Oh, I didn't see the edit....
Title: Re: Topic display is broken
Post by: kucing on August 18, 2014, 09:02:40 am
How to disable the cache manually?

To disable pagespeed I must reinstall nginx.
Title: Re: Topic display is broken
Post by: emanuele on August 18, 2014, 09:24:18 am
Do a touch (I mean the *nix command) on Load.php, that should invalidate the cache and let you regenerate a new set of hives (the minified files), of just empty out the cache directory.
But first you have to be sure paths are correct, so first thing is fix the other problem with the sessions. ;)
Title: Re: Topic display is broken
Post by: Spuds on August 19, 2014, 11:22:42 am
Quote from: kucing – How to disable the cache manually?

To disable pagespeed I must reinstall nginx.
You should be able to disable the css and js combiners since ElkArte takes care of that for you.
Code: [Select]
    pagespeed DisableFilters combine_css,combine_javascript;
or turn them all of with
Code: [Select]
    pagespeed RewriteLevel PassThrough;
in your sites .conf file
Title: Re: Topic display is broken
Post by: kucing on September 08, 2014, 09:33:39 pm
Hi Spuds, I disabled PageSpeed for now. Thanks for the solution.