Can’t save settings
-
When trying to save any settings in admin panel related to plugin nothing happens. Have next issue in dev console
-
Hi there!
Thank you for reaching out. We’d like to address the issues you’re encountering with the plugin settings in the admin panel. Could you provide more details about the specific settings you’re trying to save and any error messages you’re seeing in the developer console? Screenshots would be helpful for diagnosis. We’re here to assist you further.
Thanks in advance.
Hi there!
Greetings from WPPOOL!!
Thanks for sharing the screenshot. We will investigate further to resolve this matter.
No worries, we will let you know an update if we find any information. Please keep patience and allow us the time that we can help you.Kind Regards.
Thanks again for sharing the screenshot. To assist you further, we require some additional details
- Which theme are you currently using?
- Could you specify the settings you were trying to save in the plugin when encountering this error?
- And, if possible, could you share the debug log to help us pinpoint the issue accurately?
Providing this information will allow us to offer you the best possible.
Looking forward to hearing from you soon.
Kind Regards.
Hello!
1. It’s our custom written theme.2.Any settings to change not working
3. Error message from console
{ "message": "Request failed with status code 403", "name": "AxiosError", "stack": "AxiosError: Request failed with status code 403\n at bp (https://audiolessons2.nus.org.ua/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.4:114:1045)\n at XMLHttpRequest.b (https://audiolessons2.nus.org.ua/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.4:114:4244)\n at y2.request (https://audiolessons2.nus.org.ua/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.4:116:3114)\n at async Object.put (https://audiolessons2.nus.org.ua/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.4:117:5022)\n at async Proxy.k (https://audiolessons2.nus.org.ua/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.4:117:6637)", "config": { "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false }, "adapter": [ "xhr", "http" ], "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "env": {}, "headers": { "Accept": "application/json, text/plain, /", "Content-Type": "application/json", "X-WP-Nonce": "3d2cda6d72" }, "baseURL": "https://audiolessons2.nus.org.ua/wp-json/wp-dark-mode", "credentials": "same-origin", "method": "put", "url": "/settings", "data": "{\"frontend_enabled\":false,\"frontend_mode\":\"device\",\"frontend_time_starts\":\"06:00 PM\",\"frontend_time_ends\":\"06:00 AM\",\"frontend_custom_css\":\"\",\"frontend_remember_choice\":true,\"admin_enabled\":false,\"admin_enabled_block_editor\":true,\"floating_switch_enabled\":true,\"floating_switch_style\":1,\"floating_switch_size\":1,\"floating_switch_size_custom\":100,\"floating_switch_position\":\"right\",\"floating_switch_position_side\":\"right\",\"floating_switch_position_side_value\":10,\"floating_switch_position_bottom_value\":10,\"floating_switch_enabled_attention_effect\":false,\"floating_switch_attention_effect\":\"wobble\",\"floating_switch_enabled_cta\":false,\"floating_switch_cta_text\":\"Enable Dark Mode\",\"floating_switch_cta_color\":\"#ffffff\",\"floating_switch_cta_background\":\"#000000\",\"floating_switch_enabled_custom_icons\":false,\"floating_switch_icon_light\":\"\",\"floating_switch_icon_dark\":\"\",\"floating_switch_enabled_custom_texts\":false,\"floating_switch_text_light\":\"Light\",\"floating_switch_text_dark\":\"Dark\",\"menu_switch_enabled\":false,\"content_switch_enabled_top_of_posts\":false,\"content_switch_enabled_top_of_pages\":false,\"content_switch_style\":1,\"color_mode\":\"automatic\",\"color_presets\":[{\"name\":\"Gold\",\"bg\":\"#000\",\"secondary_bg\":\"#000\",\"text\":\"#dfdedb\",\"link\":\"#e58c17\",\"link_hover\":\"#e58c17\",\"input_bg\":\"#000\",\"input_text\":\"#dfdedb\",\"input_placeholder\":\"#dfdedb\",\"button_text\":\"#dfdedb\",\"button_hover_text\":\"#dfdedb\",\"button_bg\":\"#141414\",\"button_hover_bg\":\"#141414\",\"button_border\":\"#1e1e1e\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#141414\",\"scrollbar_thumb\":\"#dfdedb\"},{\"name\":\"Sapphire\",\"bg\":\"#1B2836\",\"secondary_bg\":\"#1B2836\",\"text\":\"#fff\",\"link\":\"#459BE6\",\"link_hover\":\"#459BE6\",\"input_bg\":\"#1B2836\",\"input_text\":\"#fff\",\"input_placeholder\":\"#fff\",\"button_text\":\"#fff\",\"button_hover_text\":\"#fff\",\"button_bg\":\"#2f3c4a\",\"button_hover_bg\":\"#2f3c4a\",\"button_border\":\"#394654\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#1B2836\",\"scrollbar_thumb\":\"#fff\"},{\"name\":\"Fuchsia\",\"bg\":\"#1E0024\",\"secondary_bg\":\"#1E0024\",\"text\":\"#fff\",\"link\":\"#E251FF\",\"link_hover\":\"#E251FF\",\"input_bg\":\"#1E0024\",\"input_text\":\"#fff\",\"input_placeholder\":\"#fff\",\"button_text\":\"#fff\",\"button_hover_text\":\"#fff\",\"button_bg\":\"#321438\",\"button_hover_bg\":\"#321438\",\"button_border\":\"#321438\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#1E0024\",\"scrollbar_thumb\":\"#fff\"},{\"name\":\"Rose\",\"bg\":\"#270000\",\"secondary_bg\":\"#270000\",\"text\":\"#fff\",\"link\":\"#FF7878\",\"link_hover\":\"#FF7878\",\"input_bg\":\"#270000\",\"input_text\":\"#fff\",\"input_placeholder\":\"#fff\",\"button_text\":\"#fff\",\"button_hover_text\":\"#fff\",\"button_bg\":\"#3b1414\",\"button_hover_bg\":\"#3b1414\",\"button_border\":\"#451e1e\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#270000\",\"scrollbar_thumb\":\"#fff\"},{\"name\":\"Violet\",\"bg\":\"#160037\",\"secondary_bg\":\"#160037\",\"text\":\"#EBEBEB\",\"link\":\"#B381FF\",\"link_hover\":\"#B381FF\",\"input_bg\":\"#160037\",\"input_text\":\"#EBEBEB\",\"input_placeholder\":\"#EBEBEB\",\"button_text\":\"#EBEBEB\",\"button_hover_text\":\"#EBEBEB\",\"button_bg\":\"#2a144b\",\"button_hover_bg\":\"#2a144b\",\"button_border\":\"#341e55\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#160037\",\"scrollbar_thumb\":\"#EBEBEB\"},{\"name\":\"Pink\",\"bg\":\"#121212\",\"secondary_bg\":\"#121212\",\"text\":\"#E6E6E6\",\"link\":\"#FF9191\",\"link_hover\":\"#FF9191\",\"input_bg\":\"#121212\",\"input_text\":\"#E6E6E6\",\"input_placeholder\":\"#E6E6E6\",\"button_text\":\"#E6E6E6\",\"button_hover_text\":\"#E6E6E6\",\"button_bg\":\"#262626\",\"button_hover_bg\":\"#262626\",\"button_border\":\"#303030\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#121212\",\"scrollbar_thumb\":\"#E6E6E6\"},{\"name\":\"Kelly\",\"bg\":\"#000A3B\",\"secondary_bg\":\"#000A3B\",\"text\":\"#FFFFFF\",\"link\":\"#3AFF82\",\"link_hover\":\"#3AFF82\",\"input_bg\":\"#000A3B\",\"input_text\":\"#FFFFFF\",\"input_placeholder\":\"#FFFFFF\",\"button_text\":\"#FFFFFF\",\"button_hover_text\":\"#FFFFFF\",\"button_bg\":\"#141e4f\",\"button_hover_bg\":\"#141e4f\",\"button_border\":\"#1e2859\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#000A3B\",\"scrollbar_thumb\":\"#FFFFFF\"},{\"name\":\"Magenta\",\"bg\":\"#171717\",\"secondary_bg\":\"#171717\",\"text\":\"#BFB7C0\",\"link\":\"#F776F0\",\"link_hover\":\"#F776F0\",\"input_bg\":\"#171717\",\"input_text\":\"#BFB7C0\",\"input_placeholder\":\"#BFB7C0\",\"button_text\":\"#BFB7C0\",\"button_hover_text\":\"#BFB7C0\",\"button_bg\":\"#2b2b2b\",\"button_hover_bg\":\"#2b2b2b\",\"button_border\":\"#353535\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#171717\",\"scrollbar_thumb\":\"#BFB7C0\"},{\"name\":\"Green\",\"bg\":\"#003711\",\"secondary_bg\":\"#003711\",\"text\":\"#FFFFFF\",\"link\":\"#84FF6D\",\"link_hover\":\"#84FF6D\",\"input_bg\":\"#003711\",\"input_text\":\"#FFFFFF\",\"input_placeholder\":\"#FFFFFF\",\"button_text\":\"#FFFFFF\",\"button_hover_text\":\"#FFFFFF\",\"button_bg\":\"#144b25\",\"button_hover_bg\":\"#144b25\",\"button_border\":\"#1e552f\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#003711\",\"scrollbar_thumb\":\"#FFFFFF\"},{\"name\":\"Orange\",\"bg\":\"#23243A\",\"secondary_bg\":\"#23243A\",\"text\":\"#D6CB99\",\"link\":\"#FF9323\",\"link_hover\":\"#FF9323\",\"input_bg\":\"#23243A\",\"input_text\":\"#D6CB99\",\"input_placeholder\":\"#D6CB99\",\"button_text\":\"#D6CB99\",\"button_hover_text\":\"#D6CB99\",\"button_bg\":\"#37384e\",\"button_hover_bg\":\"#37384e\",\"button_border\":\"#414258\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#23243A\",\"scrollbar_thumb\":\"#D6CB99\"},{\"name\":\"Yellow\",\"bg\":\"#151819\",\"secondary_bg\":\"#151819\",\"text\":\"#D5D6D7\",\"link\":\"#DAA40B\",\"link_hover\":\"#DAA40B\",\"input_bg\":\"#151819\",\"input_text\":\"#D5D6D7\",\"input_placeholder\":\"#D5D6D7\",\"button_text\":\"#D5D6D7\",\"button_hover_text\":\"#D5D6D7\",\"button_bg\":\"#292c2d\",\"button_hover_bg\":\"#292c2d\",\"button_border\":\"#333637\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#151819\",\"scrollbar_thumb\":\"#D5D6D7\"},{\"name\":\"Facebook\",\"bg\":\"#18191A\",\"secondary_bg\":\"#18191A\",\"text\":\"#DCDEE3\",\"link\":\"#2D88FF\",\"link_hover\":\"#2D88FF\",\"input_bg\":\"#18191A\",\"input_text\":\"#DCDEE3\",\"input_placeholder\":\"#DCDEE3\",\"button_text\":\"#DCDEE3\",\"button_hover_text\":\"#DCDEE3\",\"button_bg\":\"#2c2d2e\",\"button_hover_bg\":\"#2c2d2e\",\"button_border\":\"#363738\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#18191A\",\"scrollbar_thumb\":\"#DCDEE3\"},{\"name\":\"Twitter\",\"bg\":\"#141d26\",\"secondary_bg\":\"#141d26\",\"text\":\"#fff\",\"link\":\"#1C9CEA\",\"link_hover\":\"#1C9CEA\",\"input_bg\":\"#141d26\",\"input_text\":\"#fff\",\"input_placeholder\":\"#fff\",\"button_text\":\"#fff\",\"button_hover_text\":\"#fff\",\"button_bg\":\"#28313a\",\"button_hover_bg\":\"#28313a\",\"button_border\":\"#323b44\",\"enable_scrollbar\":false,\"scrollbar_track\":\"#141d26\",\"scrollbar_thumb\":\"#fff\"}],\"color_preset_id\":0,\"color_filter_brightness\":100,\"color_filter_contrast\":90,\"color_filter_grayscale\":0,\"color_filter_sepia\":10,\"image_replaces\":false,\"image_enabled_low_brightness\":false,\"image_brightness\":80,\"image_low_brightness_excludes\":false,\"image_enabled_low_grayscale\":false,\"image_grayscale\":0,\"image_low_grayscale_excludes\":false,\"video_replaces\":false,\"video_enabled_low_brightness\":false,\"video_brightness\":80,\"video_low_brightness_excludes\":false,\"video_enabled_low_grayscale\":false,\"video_grayscale\":0,\"video_low_grayscale_excludes\":false,\"animation_enabled\":false,\"animation_name\":\"fade-in\",\"performance_track_dynamic_content\":false,\"performance_load_scripts_in_footer\":false,\"performance_execute_as\":\"sync\",\"excludes_elements\":\"\",\"excludes_elements_includes\":\"\",\"excludes_posts\":false,\"excludes_posts_all\":false,\"excludes_posts_except\":false,\"excludes_taxonomies\":false,\"excludes_taxonomies_all\":false,\"excludes_taxonomies_except\":false,\"excludes_wc_products\":false,\"excludes_wc_products_all\":false,\"excludes_wc_products_except\":false,\"excludes_wc_categories\":false,\"excludes_wc_categories_all\":false,\"excludes_wc_categories_except\":false,\"accessibility_enabled_keyboard_shortcut\":true,\"accessibility_enabled_url_param\":false,\"typography_enabled\":false,\"typography_font_size\":\"1.2\",\"typography_font_size_custom\":100,\"analytics_enabled\":false,\"analytics_enabled_dashboard_widget\":true,\"analytics_enabled_email_reporting\":false,\"analytics_email_reporting_frequency\":\"daily\",\"analytics_email_reporting_address\":\"\",\"analytics_email_reporting_subject\":\"WP Dark Mode Analytics Report\"}" }, "code": "ERR_BAD_REQUEST", "status": 403 }
- This reply was modified 6 months, 3 weeks ago by yaunki.
Also on load of plugin setting pages I have error like this
Uncaught Error: Syntax error, unrecognized expression: #/frontend
at se.error (jquery.js?ver=1.0:2:13639)
at se.tokenize (jquery.js?ver=1.0:2:21650)
at se.select (jquery.js?ver=1.0:2:22477)
at Function.se as find
at S.fn.init.find (jquery.js?ver=1.0:2:25047)
at new S.fn.init (jquery.js?ver=1.0:2:25536)
at S (jquery.js?ver=1.0:2:1051)
at Object.extras (functions.js?ver=1.0:2005:8)
at Object.init (functions.js?ver=1.0:1349:21)
at HTMLDocument.init (functions.js?ver=1.0:2088:21)Hello @yaunki,
Thank you for sharing the details with us, and we apologize for the delayed response. Our team is still investigating the issue you reported. We will provide you with an update soon.Got the same issue for quite a while now:
When will this be fixed? Console logs:
jquery-migrate.min.js?ver=3.4.1:2 JQMIGRATE: Migrate is installed, version 3.4.1
API.js:30 PUT https://evilgamerz.com/wp-json/wp-dark-mode/settings 405
(anonymous) @ xhr.js:258
xhr @ xhr.js:49
R5 @ dispatchRequest.js:49
_request @ Axios.js:170
request @ Axios.js:40
(anonymous) @ Axios.js:209
(anonymous) @ bind.js:5
put @ API.js:30
k @ store.js:198
(anonymous) @ pinia.mjs:1375
as @ runtime-core.esm-bundler.js:158
G1 @ runtime-core.esm-bundler.js:166
n @ runtime-dom.esm-bundler.js:278
Show 11 more frames
runtime-core.esm-bundler.js:226 st?{message: 'Request failed with status code 405', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest,?…}code: "ERR_BAD_REQUEST"config: {transitional: {…}, adapter: Array(2), transformRequest: Array(1), transformResponse: Array(1), timeout: 0,?…}message: "Request failed with status code 405"name: "AxiosError"request: XMLHttpRequest?{onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload,?…}response: {data: '… is not allowed for this URL.\n\n', status: 405, statusText: '', headers: w2, config: {…},?…}stack: "AxiosError: Request failed with status code 405\n at bp (https://evilgamerz.com/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.6:114:1045)\n at XMLHttpRequest.b (https://evilgamerz.com/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.6:114:4244)\n at y2.request (https://evilgamerz.com/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.6:116:3114)\n at async Object.put (https://evilgamerz.com/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.6:117:5022)\n at async Proxy.k (https://evilgamerz.com/wp-content/plugins/wp-dark-mode/assets/js/admin.min.js?ver=5.0.6:117:6637)"[[Prototype]]: Error
$d @ runtime-core.esm-bundler.js:226
Wr @ runtime-core.esm-bundler.js:208
(anonymous) @ runtime-core.esm-bundler.js:169
Promise.catch (async)
G1 @ runtime-core.esm-bundler.js:168
n @ runtime-dom.esm-bundler.js:278
Show 5 more framesHello,
Thank you for sharing details with us. Our technical team has been working hard to replicate the issue from our local site, but we haven’t been successful yet. It might take some more time. Could you please provide some screenshots showing the error or can you share a screen-recorded video? This will help us identify the problem and find a solution.
We appreciate your cooperation!
Here you can find the reproduction.
We have just released a new version,?
v5.0.7
, which fixes this issue. Please update your plugin to the latest version and check if it resolves the problem.As we haven’t heard back from you, we assume the issue has been resolved and will mark this thread as resolved.
If you need further assistance, please create a new thread.
Have a great day!
- You must be logged in to reply to this topic.