teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

要点をまとめました。

2020/10/23 06:01

投稿

officehojo
officehojo

スコア11

title CHANGED
File without changes
body CHANGED
@@ -13,26 +13,10 @@
13
13
 
14
14
  商品単体や、カテゴリは表示されます。
15
15
 
16
- コンソールではshop > indexにエラーが出ていました。
17
16
 
18
- ```
19
- ?v=2.0:6 WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403
20
- g @ ?v=2.0:6
21
- 11?v=2.0:6 WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403
22
- g @ ?v=2.0:6
23
- T @ ?v=2.0:6
24
- j @ ?v=2.0:6
25
- ```
26
-
27
- ### 該当のソースコード
28
-
29
- ```ここに言語名を入力
30
- =new WebSocket("wss://public-api.wordpress.com"+a)).onopen=function(e){c("pinghub.conn_open_dc."+_wpcomProxyRequestDC,(new Date).getTime()-n,"ms"),t({body:{type:"open"},code:207})},e.onclose=function(e){c("pinghub.conn_close_code."+e.code,(new Date).getTime()-n,"ms"),w(o),t({body:{type:"close"},code:200})},e.onerror=function(e){c("pinghub.conn_err",(new Date).getTime()-n,"ms"),w(o),t({body:{type:"error"},code:500})},e.onmessage=function(e){t({body:{type:"message",data:e.data},code:207})})}var o,t,n,v,k=!1,C=!1,_=_wpcomProxyRequestHasCookie?"true":"false";function T(e,o){var t,n,a=m(e.callback,o,e.supports_args);if("undefined"==typeof WebSocket)return k=k||c("pinghub.restproxy.ws_unsupported","1","c"),void a({body:{type:"error",data:"unsupported"},code:500});k=k||c("pinghub.restproxy.ws_supported","1","c"),C=_?C||c("pinghub.restproxy.cookie","1","c"):C||c("pinghub.restproxy.nocookie","1","c"),"connect"===e.action&&g(e.path,a),"disconnect"===e.action&&(t=e.path,n=a,t in b?(b[t].close(),w(t),n({body:{type:"disconnect"},code:200})):n({body:{type:"error",data:"not connected"},code:200})),"send"===e.action&&function(e,o,t){if(e in b)try{b[e].send(o),t({body:{type:"sent"},code:201})}catch(e){t({body:{type:"error"},code:600})}else t({body:{type:"error"},code:404})}(e.path,e.message,a)}function j(e){var o,t=!1;if(i===e.origin)if(a)r.push({data:e.data,origin:e.origin});else{if("string"==typeof e.data){try{o=JSON.parse(e.data)}catch(e){return}t=!0}else o=e.data;if("object"==typeof o){if(o.metaAPI)return void 0!==o.metaAPI.accessAllUsersBlogs&&(d=!!o.metaAPI.accessAllUsersBlogs),void m(o.callback,t)({body:"metaAPIupdated",code:200});var n="/pinghub/";(o.path&&o.path.slice(0,n.length)===n?T:p)(o,t)}}}window.addEventListener("message",j),o=i,t=function(e){return e?(a=!1,r.forEach(j)):window.removeEventListener("message",j),void(r=[])},-1<e.indexOf(o)||o.match(/^https://[a-z0-9-]+.calypso.live$/)||o.match(/^https://([a-z0-9-]+.)+wordpress.com$/)?t(!0):(n=window.location.protocol+"//public-api.wordpress.com/rest/v1/sites/"+encodeURIComponent(o)+"?http_envelope=1&check_wpcom=1",(v=new XMLHttpRequest).open("GET",n),v.responseType="json",u&&v.setRequestHeader("Authorization","X-WPCOOKIE "+u+":0:"+o),v.onload=function(){var e,o=!1;200!==this.status||(e=h(this))&&e.body&&!0===e.body.isWPcom&&(o=!0),t(o)},v.send()),y("ready")}();</script>
31
- ```
32
-
33
17
  ### 試したこと
34
18
 
35
- ・テーマ(unero)とプラグインの再インストールとアップデート
19
+ ・テーマとプラグインの再インストールとアップデート
36
20
  ・ショップページを違う固定ページで指定
37
21
  ・すべて最新版にバージョンアップ
38
22
 
@@ -40,7 +24,4 @@
40
24
 
41
25
  商品パーマリンク設定の変更ができなくなりました。
42
26
  ずっとカスタムベースにチェックが入っており、違う項目の選択&保存できません。
43
- 横に「ベースを設定する必要があります。そうしないと、WordPress はデフォルトを代わりに使用します」という注意書きが表示されています。
27
+ 横に「ベースを設定する必要があります。そうしないと、WordPress はデフォルトを代わりに使用します」という注意書きが表示されています。
44
-
45
- 仕事の関係で、どうにか解決したいです。
46
- 恐れ入りますがどうぞよろしくお願いいたします。