Issues in mobile version of NodeBB
-
I am running NodeBB 0.9.4 with the persona them. While accessing my forum on mobile devices, users are unable to post or reply to any topic. Clicking the new topic or reply button does absolutely nothing. I tried restarting nodebb but it didn't help. Any suggestions ?
The URL is - http://diskuz.com -
@Gaurav-Grv-Robinson there are websocket and missing modules errors on your site
-
@pichalite Where can you see the errors and what should I do to resolve them ?
-
@Gaurav-Grv-Robinson in the browser console
try starting NodeBB using
./nodebb dev
and check for errors during startup.if the problems persist, try disabling non-default plugins and check
-
@pichalite I am getting the following warnings.
warn: [socket.io] Clustering detected, you are advised to configure Redis as a websocket store.
warn: [plugins/nodebb-plugin-sso-google] Hook
filter:user.delete
is deprecated, please use an alternativevalidator deprecated you tried to validate a undefined but this library (validator.js) validates strings only. Please update your code as this will be an error soon. src/user/data.js:97:30
validator deprecated you tried to validate a undefined but this library (validator.js) validates strings only. Please update your code as this will be an error soon. src/categories/data.js:45:29
-
@Gaurav-Grv-Robinson you can ignore those warnings... if you don't see any errors during startup then try disabling all plugins and see if it works properly.
You can disable all plugins using
./nodebb reset
-
@pichalite Disabled all plugins and restarted nodebb, still does not work.
-
@Gaurav-Grv-Robinson the JS errors are gone now but your websockets are not working. Do you have cloudflare enabled for your site?
-
@Gaurav-Grv-Robinson by the way... you disabled all the plugins so posting and replying won't work now... don't worry about that.
make sure your websockets issue is fixed
-
This post is deleted!
-
if you are using a proxy... make sure it's properly setup.
-
@pichalite No idea on how to fix websockets issue. Using nginx.
-
@Gaurav-Grv-Robinson post your nginx config. we can see if there is any error.
-
user www-data;
worker_processes 1;
pid /run/nginx.pid;events {
worker_connections 768;}
http {
sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*;
}
-
@nhl.pl
/etc/nginx/sites-enabled/default
server { listen 80; server_name diskuz.com; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567/; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
-
@Gaurav-Grv-Robinson looks good to me.
anyway try enabling plugins one by one, restart nodebb and make sure there are no JS errors. start with the default plugins.