wtmtg
Forum Replies Created
-
…and restart the Apache2 server…I always forget this one…
# sudo systemctl restart apache2
Ok, I figured it out, with inspiration from a post on StackExchange. Here is that post:
My specific error has nothing to do with the Jetpack plugin (which is great by the way, keep up the great work =D ).
My error was in my configuration of my Apache2 web server.
When I was troubleshooting, I thought maybe my code for redirecting HTTP requests to HTTPS was incorrect…
But that was fine. Here it is:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]Then I took another look at my CONF file:
000-default-le-ssl.conf
A guide online suggested I use this:
<Directory /var/www/html/example.com/public_html>
Require all granted
</Directory>The “Require all granted” was the problem.
The final working code was:
<Directory /var/www/html/example.com/public_html>
#Require all granted
AllowOverride All
</Directory>Thank you Jetpack time for spending some time on this. Cheers. Happy Holidays.
Ok, I submitted the form, with my site URL and a link to this thread.
Thank you in advance.
And I have already disabled the ufw firewall:
$ sudo ufw disable
Ok, I clicked on the “Response” tab for the red errors. Here they are:
The requested URL /wp-json/jetpack/v4/plugins was not found on this server.
The requested URL /wp-json/jetpack/v4/site was not found on this server.
The requested URL /wp-json/jetpack/v4/site/features was not found on this server.
Request URL:wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data
Request Method:GET
Status Code:403 ForbiddenMmm, the Jetpack plugin is the only one active…
No cache plugin installed…
Mmm… when I refresh the “Settings” page for Jetpack, there are some GET errors:
GET https://store.example.com/wp-json/jetpack/v4/site?_cacheBuster=1511810581637
404 ()
Mmm… something to do with websocket?
WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed: Error during WebSocket handshake: Unexpected response code: 403
WrappedWebSocket @ VM436:164Thank you, Richard.
Ok, I am on Chrome, and opened the Developer’s JavaScript Console.
Here are the errors:
Failed to load resource: the server responded with a status of 404 ()
/wp-json/jetpack/v4/module/protect/data?_cacheBuster=1511809439982 Failed to load resource: the server responded with a status of 404 ()
/wp-json/jetpack/v4/module/akismet/key/check?_cacheBuster=1511809439993 Failed to load resource: the server responded with a status of 404 ()
/wp-json/jetpack/v4/module/stats/data?range=day&_cacheBuster=1511809439960 Failed to load resource: the server responded with a status of 404 ()
/wp-json/jetpack/v4/site?_cacheBuster=1511809439953 Failed to load resource: the server responded with a status of 404 ()
/wp-json/jetpack/v4/updates/plugins?_cacheBuster=1511809440005 Failed to load resource: the server responded with a status of 404 ()
/wp-json/jetpack/v4/module/akismet/data?_cacheBuster=1511809440001 Failed to load resource: the server responded with a status of 404 ()
/wp-json/jetpack/v4/plugins?_cacheBuster=1511809439951 Failed to load resource: the server responded with a status of 404 ()
/wp-json/jetpack/v4/connection/data?_cacheBuster=1511809440014 Failed to load resource: the server responded with a status of 404 ()
VM436:164 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed: Error during WebSocket handshake: Unexpected response code: 403
WrappedWebSocket @ VM436:164
/wp-json/jetpack/v4/jumpstart Failed to load resource: the server responded with a status of 404 ()
3VM436:164 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed: Error during WebSocket handshake: Unexpected response code: 403Please continue thread here…
Ok, sorry…
Mmm, gonna try editing the HTACCESS file to force any http request to be rewritten using https…
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]I will then restart APACHE2…
$ sudo systemctl restart apache2
My current Permalink Settings:
“Day and name”
and
“Shop base” – for woocommerce products
When I log into https://wordpress.com , I see the site is connected, and the traffic stats did in fact get to wordpress.com .
Appreciate any help. Thanks in advance.