Unable to save extension settings due to a JavaScript error + widget not working
-
Good morning,
I have just discovered your extension which seems to be promising and which, in its free version, offers interesting features. Unfortunately, I’m experiencing several issues with your extension.
First of all, when I go to your WP Dark Mode extension settings, I can’t save the extension settings. Indeed, when I click on the ‘Save Changes’ button, nothing happens. So I went to my browser console, and I discovered two Javascript errors which are as follows:
PI.js:30 PUT https://florapiscis.fr/wp-json/wp-dark-mode/settings 403 (Forbidden) (anonymes) @ xhr.js:258 xhr @ xhr.js:49 R5 @ dispatchRequest.js:49 _request @ Axios.js:170 request @ Axios.js:40 (anonymes) @ Axios.js:209 (anonymes) @ bind.js:5 put @ API.js:30 k @ store.js:198 (anonymes) @ pinia.mjs:1375 as @ runtime-core.esm-bundler.js:158 G1 @ runtime-core.esm-bundler.js:166 n @ runtime-dom.esm-bundler.js:278
runtime-core.esm-bundler.js:226 st {message: 'Request failed with status code 403', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …} $d @ runtime-core.esm-bundler.js:226 Wr @ runtime-core.esm-bundler.js:208 (anonymes) @ runtime-core.esm-bundler.js:169 Promise.catch (asynchrone) G1 @ runtime-core.esm-bundler.js:168 n @ runtime-dom.esm-bundler.js:278
Secondly, I use the Hestia theme on my website https://florapiscis.fr/ and when I am on my dashboard and I open the personalization tool to modify the appearance of my website, in the ‘Widget’ section, I want to insert your WP Dark Mode widget in the navigation bar I get the error: ‘This block encountered an error and cannot be previewed.’ and I again get several errors in my browser console which are as follows:
react-dom.min.js?ver=18.2.0:10 Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at Dl (react-dom.min.js?ver=18.2.0:10:96134) at p (react-dom.min.js?ver=18.2.0:10:42708) at g (react-dom.min.js?ver=18.2.0:10:44071) at e (react-dom.min.js?ver=18.2.0:10:46135) at fr (react-dom.min.js?ver=18.2.0:10:54784) at br (react-dom.min.js?ver=18.2.0:10:59572) at yr (react-dom.min.js?ver=18.2.0:10:59277) at js (react-dom.min.js?ver=18.2.0:10:121535) at wl (react-dom.min.js?ver=18.2.0:10:88659) at bl (react-dom.min.js?ver=18.2.0:10:88587)
jquery.min.js?ver=3.7.1:2 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing. (anonymes) @ jquery.min.js?ver=3.7.1:2 $e @ jquery.min.js?ver=3.7.1:2 append @ jquery.min.js?ver=3.7.1:2 ce.fn.<computed> @ jquery.min.js?ver=3.7.1:2 run @ customize-controls.min.js?ver=6.5.2:2 initialize @ customize-controls.min.js?ver=6.5.2:2 o.Class @ customize-base.min.js?ver=6.5.2:2 i @ customize-base.min.js?ver=6.5.2:2 i @ customize-base.min.js?ver=6.5.2:2 refresh @ customize-controls.min.js?ver=6.5.2:2 (anonymes) @ customize-controls.min.js?ver=6.5.2:2 u @ underscore.min.js?ver=1.13.4:2 setTimeout (asynchrone) (anonymes) @ underscore.min.js?ver=1.13.4:2 (anonymes) @ underscore.min.js?ver=1.13.4:2 (anonymes) @ customize-controls.min.js?ver=6.5.2:2 c @ jquery.min.js?ver=3.7.1:2 fireWith @ jquery.min.js?ver=3.7.1:2 trigger @ customize-base.min.js?ver=6.5.2:2 receive @ customize-base.min.js?ver=6.5.2:2 dispatch @ jquery.min.js?ver=3.7.1:2 v.handle @ jquery.min.js?ver=3.7.1:2 postMessage (asynchrone) send @ VM1992 customize-base.min.js:2 c.requestFullRefresh @ VM1994 customize-sel…ve-refresh.min.js:2 fallback @ VM1994 customize-sel…ve-refresh.min.js:2 handleSettingChange @ VM1993 customize-pre…ew-widgets.min.js:2 Jn @ VM1991 underscore.min.js:2 (anonymes) @ VM1991 underscore.min.js:2 (anonymes) @ VM1991 underscore.min.js:2 c @ VM1974 jquery.min.js:2 fireWith @ VM1974 jquery.min.js:2 set @ VM1992 customize-base.min.js:2 t @ VM1970 customize-preview.min.js:2 (anonymes) @ VM1970 customize-preview.min.js:2 c @ VM1974 jquery.min.js:2 fireWith @ VM1974 jquery.min.js:2 trigger @ VM1992 customize-base.min.js:2 receive @ VM1992 customize-base.min.js:2 dispatch @ VM1974 jquery.min.js:2 v.handle @ VM1974 jquery.min.js:2 postMessage (asynchrone) send @ customize-base.min.js?ver=6.5.2:2 preview @ customize-controls.min.js?ver=6.5.2:2 c @ jquery.min.js?ver=3.7.1:2 fireWith @ jquery.min.js?ver=3.7.1:2 set @ customize-base.min.js?ver=6.5.2:2 _updateWidgets @ customize-widgets.mi…692724827d41c9fb5:7 setWidgets @ customize-widgets.mi…692724827d41c9fb5:7 (anonymes) @ customize-widgets.mi…692724827d41c9fb5:7 Ct @ react-dom.min.js?ver=18.2.0:10 Jt @ react-dom.min.js?ver=18.2.0:10 (anonymes) @ customize-widgets.mi…692724827d41c9fb5:7 (anonymes) @ block-editor.min.js?…218ec9fd5b103f38:26 (anonymes) @ data.min.js?ver=e6595ba…:2 (anonymes) @ data.min.js?ver=e6595ba…:2 h @ data.min.js?ver=e6595ba…:2 (anonymes) @ data.min.js?ver=e6595ba…:2 (anonymes) @ redux-routine.min.js…553dce2bee5c0f064:9 (anonymes) @ data.min.js?ver=e6595ba…:2 (anonymes) @ data.min.js?ver=e6595ba…:2 apply @ data.min.js?ver=e6595ba…:2 (anonymes) @ block-editor.min.js?…218ec9fd5b103f38:26 (anonymes) @ data.min.js?ver=e6595ba…:2 (anonymes) @ redux-routine.min.js…553dce2bee5c0f064:9 (anonymes) @ data.min.js?ver=e6595ba…:2 (anonymes) @ data.min.js?ver=e6595ba…:2 (anonymes) @ data.min.js?ver=e6595ba…:2 (anonymes) @ block-editor.min.js?…218ec9fd5b103f38:26 (anonymes) @ block-editor.min.js?…218ec9fd5b103f38:26 onClick @ block-editor.min.js?…218ec9fd5b103f38:26 n.<computed> @ components.min.js?ve…ef1c62202e4e2d1e:41 Xa @ react-dom.min.js?ver=18.2.0:10 B @ react-dom.min.js?ver=18.2.0:10 W @ react-dom.min.js?ver=18.2.0:10 qe @ react-dom.min.js?ver=18.2.0:10 Ke @ react-dom.min.js?ver=18.2.0:10 (anonymes) @ react-dom.min.js?ver=18.2.0:10 dl @ react-dom.min.js?ver=18.2.0:10 V @ react-dom.min.js?ver=18.2.0:10 Je @ react-dom.min.js?ver=18.2.0:10 pe @ react-dom.min.js?ver=18.2.0:10 fe @ react-dom.min.js?ver=18.2.0:10
/?customize_changeset_uuid=471c9b90-ae33-447d-b48f-085e0865d4df&customize_theme=hestia&customize_messenger_channel=preview-1&customize_autosaved=on:1 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing. jquery-migrate.min.js?ver=3.4.1:2 JQMIGRATE: Migrate is installed, version 3.4.1 Base.js:46 Base init Base.js:46 Base init Base.js:46 Base init Base.js:46 Base init Base.js:46 Base init Base.js:46 Base init Color.js:13 Auto Color
I would like to find a solution to make your extension work. Please tell me how to do it.
Sincerely, Gordame.
(This message was translated by Google Translate. Please spare any translation errors)
- The topic ‘Unable to save extension settings due to a JavaScript error + widget not working’ is closed to new replies.