PDA

View Full Version : Refreshing Problem


Mr basil
07-07-2015, 08:11 PM
Hello there.

I recently installed vBulletin 4.2.2 patch, but I have a problem on it.

I can't view any new in the forum until I manually refresh the page (F5), so for example if I posted a new thread and clicked "Forum" tab or any other tab, nothing new will appear in the forum until I refresh the browser, I can't even login because of this issue, also when I logged in before I couldn't access admincp to edit the forum.

I've tried to:
1) Disable all the plugins from config.php, and tested if the problem solved in all the styles include default style.

2) Disabled CloudFlare

But unfortunately nothing work.

My forum link is http://forum.klimax.lt
PHP Version 5.5.40-0+wheezy1
Using Linux VPS hosting

Please I want help to solve this problem :(

kh99
07-07-2015, 08:38 PM
I'm not an expert on this stuff, but it looks like your http headers allow caching for 1 hour (Cache-Control: private, max-age=3600). But I don't know if F5 reloads the cache - I guess it depends on your browser and OS.

fxdigi-cash
07-08-2015, 02:53 AM
I think there are two possibilities:

1- he is caching everything on his website using web server caching too or a CDN or both at the same time.

2- his browser is caching everything and that happens only if the caching time has been setup by person using or without using an add-on.

:)

Mr basil
07-08-2015, 02:59 AM
So any solutions if it's cache problem?

kh99
07-08-2015, 03:17 AM
So any solutions if it's cache problem?

I don't know a lot about it really. Do you have an .htaccess file? I know it's possible to set caching there. And probably in the web server configuration.

fxdigi-cash
07-08-2015, 06:33 AM
it is very simple, all you need is to install a fresh copy of a browser such as Chrome or FF and see how it goes... then check whether the issue is still there or not!!

make sure you don't have anything to loss if you had to re-install a new copy of browser like bookmarks and possibly other browser settings.

Mr basil
07-08-2015, 06:33 AM
I don't know a lot about it really. Do you have an .htaccess file? I know it's possible to set caching there. And probably in the web server configuration.

Here my .htaccess

# BEGIN W3TC Browser Cache
<IfModule mod_mime.c>
AddType text/css .css
AddType text/x-component .htc
AddType application/x-javascript .js
AddType application/javascript .js2
AddType text/javascript .js3
AddType text/x-js .js4
AddType text/html .html .htm
AddType text/richtext .rtf .rtx
AddType image/svg+xml .svg .svgz
AddType text/plain .txt
AddType text/xsd .xsd
AddType text/xsl .xsl
AddType text/xml .xml
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
AddType image/bmp .bmp
AddType application/java .class
AddType video/divx .divx
AddType application/msword .doc .docx
AddType application/vnd.ms-fontobject .eot
AddType application/x-msdownload .exe
AddType image/gif .gif
AddType application/x-gzip .gz .gzip
AddType image/x-icon .ico
AddType image/jpeg .jpg .jpeg .jpe
AddType application/json .json
AddType application/vnd.ms-access .mdb
AddType audio/midi .mid .midi
AddType video/quicktime .mov .qt
AddType audio/mpeg .mp3 .m4a
AddType video/mp4 .mp4 .m4v
AddType video/mpeg .mpeg .mpg .mpe
AddType application/vnd.ms-project .mpp
AddType application/x-font-otf .otf
AddType application/vnd.ms-opentype .otf
AddType application/vnd.oasis.opendocument.database .odb
AddType application/vnd.oasis.opendocument.chart .odc
AddType application/vnd.oasis.opendocument.formula .odf
AddType application/vnd.oasis.opendocument.graphics .odg
AddType application/vnd.oasis.opendocument.presentation .odp
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.text .odt
AddType audio/ogg .ogg
AddType application/pdf .pdf
AddType image/png .png
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
AddType audio/x-realaudio .ra .ram
AddType application/x-shockwave-flash .swf
AddType application/x-tar .tar
AddType image/tiff .tif .tiff
AddType application/x-font-ttf .ttf .ttc
AddType application/vnd.ms-opentype .ttf .ttc
AddType audio/wav .wav
AddType audio/wma .wma
AddType application/vnd.ms-write .wri
AddType application/font-woff .woff
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
AddType application/zip .zip
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css A31536000
ExpiresByType text/x-component A31536000
ExpiresByType application/x-javascript A31536000
ExpiresByType application/javascript A31536000
ExpiresByType text/javascript A31536000
ExpiresByType text/x-js A31536000
ExpiresByType text/html A3600
ExpiresByType text/richtext A3600
ExpiresByType image/svg+xml A3600
ExpiresByType text/plain A3600
ExpiresByType text/xsd A3600
ExpiresByType text/xsl A3600
ExpiresByType text/xml A3600
ExpiresByType video/asf A31536000
ExpiresByType video/avi A31536000
ExpiresByType image/bmp A31536000
ExpiresByType application/java A31536000
ExpiresByType video/divx A31536000
ExpiresByType application/msword A31536000
ExpiresByType application/vnd.ms-fontobject A31536000
ExpiresByType application/x-msdownload A31536000
ExpiresByType image/gif A31536000
ExpiresByType application/x-gzip A31536000
ExpiresByType image/x-icon A31536000
ExpiresByType image/jpeg A31536000
ExpiresByType application/json A31536000
ExpiresByType application/vnd.ms-access A31536000
ExpiresByType audio/midi A31536000
ExpiresByType video/quicktime A31536000
ExpiresByType audio/mpeg A31536000
ExpiresByType video/mp4 A31536000
ExpiresByType video/mpeg A31536000
ExpiresByType application/vnd.ms-project A31536000
ExpiresByType application/x-font-otf A31536000
ExpiresByType application/vnd.ms-opentype A31536000
ExpiresByType application/vnd.oasis.opendocument.database A31536000
ExpiresByType application/vnd.oasis.opendocument.chart A31536000
ExpiresByType application/vnd.oasis.opendocument.formula A31536000
ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
ExpiresByType application/vnd.oasis.opendocument.text A31536000
ExpiresByType audio/ogg A31536000
ExpiresByType application/pdf A31536000
ExpiresByType image/png A31536000
ExpiresByType application/vnd.ms-powerpoint A31536000
ExpiresByType audio/x-realaudio A31536000
ExpiresByType image/svg+xml A31536000
ExpiresByType application/x-shockwave-flash A31536000
ExpiresByType application/x-tar A31536000
ExpiresByType image/tiff A31536000
ExpiresByType application/x-font-ttf A31536000
ExpiresByType application/vnd.ms-opentype A31536000
ExpiresByType audio/wav A31536000
ExpiresByType audio/wma A31536000
ExpiresByType application/vnd.ms-write A31536000
ExpiresByType application/font-woff A31536000
ExpiresByType application/vnd.ms-excel A31536000
ExpiresByType application/zip A31536000
</IfModule>
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
<IfModule mod_mime.c>
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
</IfModule>
</IfModule>
<FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2 |JS3|JS4)$">
FileETag MTime Size
<IfModule mod_headers.c>
Header set Pragma "public"
Header append Cache-Control "public"
</IfModule>
</FilesMatch>
<FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML| HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
FileETag MTime Size
<IfModule mod_headers.c>
Header set Pragma "public"
Header append Cache-Control "public"
</IfModule>
</FilesMatch>
<FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx |eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid |midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf| odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|pp t|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wa v|wma|wri|woff|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WA X|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF| GZ|GZIP|ICO|JPG|JPEG|JPE|JSON|MDB|MID|MIDI|MOV|QT| MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|O DG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM |SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|WOF F|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
FileETag MTime Size
<IfModule mod_headers.c>
Header set Pragma "public"
Header append Cache-Control "public"
</IfModule>
</FilesMatch>
# END W3TC Browser Cache
# BEGIN W3TC CDN
<FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
# END W3TC CDN
# BEGIN W3TC Page Cache core
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*\/)?w3tc_rewrite_test/?$ $1?w3tc_rewrite_test=1 [L]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteRule .* - [E=W3TC_ENC:_gzip]
RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
RewriteRule .* - [E=W3TC_PREVIEW:_preview]
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} =""
RewriteCond %{REQUEST_URI} \/$
RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wptouch_switch_toggle) [NC]
RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
</IfModule>
# END W3TC Page Cache core
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress


it is very simple, all you need is to install a fresh copy of a browser such as Chrome or FF and see how it goes... then check whether the issue is still there or not!!

make sure you don't have anything to loss if you had to re-install a new copy of browser like bookmarks and possibly other browser settings.

This solution is not logical and I'm sure 100% it wont work, I already have this problem in my PC/phone, also other members have the same issue, they don't have to re-install they browsers for nothing.

kh99
07-08-2015, 09:10 AM
Try commenting out the text/html ExpiresByType, like:
# ExpiresByType text/html A3600

or you could just delete the line.

Mr basil
07-08-2015, 03:24 PM
Try commenting out the text/html ExpiresByType, like:
# ExpiresByType text/html A3600

or you could just delete the line.

I've tried to remove this line from .htaccess but still the same problem.

kh99
07-08-2015, 03:56 PM
Did you leave it out or did you put it back? I still see the max-age=3600 on that page. Maybe that info is also in one of the apache config files (like httpd.conf)? Otherwise I'm not sure where else to look for it. Like fxdigi-cash said, it could also be in a plugin or in the code somewhere. I'm not sure why it would be, but it's the only other thing I can think of.

Of course I could also be wrong about that causing the problem.

Mr basil
07-08-2015, 04:56 PM
Did you leave it out or did you put it back? I still see the max-age=3600 on that page. Maybe that info is also in one of the apache config files (like httpd.conf)? Otherwise I'm not sure where else to look for it. Like fxdigi-cash said, it could also be in a plugin or in the code somewhere. I'm not sure why it would be, but it's the only other thing I can think of.

Of course I could also be wrong about that causing the problem.

I put this line back, sorry I am not experienced about what you talking about, so I searched for httpd.conf file but didn't find it, can you please redirect the thread to someone can give me solution?

kh99
07-08-2015, 05:32 PM
I put this line back, sorry I am not experienced about what you talking about, so I searched for httpd.conf file but didn't find it, can you please redirect the thread to someone can give me solution?

There's no way to redirect it. If someone else sees the thread and has something to add, they will.

I really think you should remove that line though. The vbulletin code takes care of setting the cache headers for different pages. It may not be the only thing causing this problem, but I don't think you want it.

Mr basil
07-08-2015, 07:26 PM
There's no way to redirect it. If someone else sees the thread and has something to add, they will.

I really think you should remove that line though. The vbulletin code takes care of setting the cache headers for different pages. It may not be the only thing causing this problem, but I don't think you want it.

I removed the line :)
Now what :P still need help

Skyrider
07-08-2015, 07:33 PM
Might be a stupid suggestion, but have you considered removing everything from the .htaccess (or altering the filename) to see if it's htaccess related?

It would at least scrap 1 thing from your list to check.

kh99
07-08-2015, 08:18 PM
^^^ That's a good idea.

The 'max-age' is gone now. You're sure you still have the problem?

Mr basil
07-08-2015, 08:52 PM
^^^ That's a good idea.

The 'max-age' is gone now. You're sure you still have the problem?

Yes I still, I decided to re-install the forum, btw when I empty .htaccess it give me error

Skyrider
07-09-2015, 03:59 AM
Ya, I figured that would have caused an error because there are rewrite rules in your htaccess. It would have been important as well to disable all plugins:

https://www.vbulletin.com/docs/html/disable_plugins (or only the plugin that uses the caching)

As well as temp change the Friendly URL to default:

https://www.vbulletin.com/docs/html/options_seofriendly_urls (if used in htaccess)

But seeing you reinstalled your entire forums, I assume that the whole issue has been solved.

Mr basil
07-09-2015, 09:40 PM
Guys I re-installed the forum and it seems fine, so I imported the previous database's but I have a problem with members database, I can see the members in member list, when I search for any user in the admin cpanel it shows me blank boxes, but when I try to add the current user it say the user is already registered in the forum, also when I back up the threads it show's that the creator user of the thread are guest

http://prntscr.com/7qvrd6
http://prntscr.com/7qvrg0
http://prntscr.com/7qvrke

Any solutions?

kh99
07-09-2015, 09:49 PM
What did you do exactly, did you import the entire database? If you just imported the user table, then I think you also need the userfield and usertextfield tables.

Mr basil
07-09-2015, 10:07 PM
What did you do exactly, did you import the entire database? If you just imported the user table, then I think you also need the userfield and usertextfield tables.

Alright thanks, fixed it