Author Topic: [bug] UserPanel "Unlocked" button unresponsive  (Read 2205 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
[bug] UserPanel "Unlocked" button unresponsive
« on: January 22, 2022, 03:40:04 PM »
After accessing the user panel and login in to a user. The button that says "Unlocked" on the top right of the panel is unresponsive when clicked.
When diagnosed, two things happens when pressed;
- A # added to the end of the URL.
- The console says this when the button is pressed:
Code: [Select]
Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
    complete https://panel.hostname.com:2083/cwp_6745e59e3ad517d1/s4h/?:138
    i https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    fireWith https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    A https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    c https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    send https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    ajax https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    <anonymous> https://panel.hostname.com:2083/cwp_6745e59e3ad517d1/s4h/?:138
    dispatch https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    handle https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    add https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    xa https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    each https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    each https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    xa https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    on https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    b https://panel.hostname.com:2083/s4h/cwp_theme/original/js/minified/dashboard.7d6641aeb870196.js:2
    <anonymous> https://panel.hostname.com:2083/cwp_6745e59e3ad517d1/s4h/?:138

The message changes a bit when I use this:
Code: [Select]
echo '{"compress_js":false,"compress_html":false}' > /usr/local/cwp/.conf/.devtools_config
The message is now:
Code: [Select]
Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
    complete https://panel.hostname.com:2083/cwp_6745e59e3ad517d1/s4h/?:4442
    jQuery 6
    <anonymous> https://panel.hostname.com:2083/cwp_6745e59e3ad517d1/s4h/?:4438
    jQuery 9
    <anonymous> https://panel.hostname.com:2083/cwp_6745e59e3ad517d1/s4h/?:4436

Offline
***
Re: [bug] UserPanel "Unlocked" button unresponsive
« Reply #1 on: January 26, 2022, 11:07:55 PM »
I have new update onto how this bug comes into existence.

- Go to the Features, Themes, Languages
- Create a new feature by giving it a name, choose Type: package and select a package that users are using. Then Select "Mark All" and save.
- Login into user panel and try to click on the "lock" button. It's now bugged.

The above steps were done on my test server and CWP demo server. Both had the lock button working and then broke after configuring the "Features".

I could not find a way to remove this bug. I tried to remove the Feature Packages and it didn't help.

Edit:
Small new info: Deleting the Feature Package and wait for around 10-15 minutes (cache?) and then try to check on the button again, it will work again. Tested on demo panel.
« Last Edit: January 26, 2022, 11:50:13 PM by iraqiboy90 »

Offline
*****
Re: [bug] UserPanel "Unlocked" button unresponsive
« Reply #2 on: January 27, 2022, 01:04:51 PM »
Case solved, it will be available for you in our next version

Offline
***
Re: [bug] UserPanel "Unlocked" button unresponsive
« Reply #3 on: January 27, 2022, 02:55:37 PM »
Case solved, it will be available for you in our next version

thank you