Author Topic: Emails screen not loading  (Read 4342 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Emails screen not loading
« on: February 17, 2023, 08:09:39 AM »
I have a cwp setup with around 25 client accounts

In one of the client logins, Email scree and Email forwarder scree just keeps loading. The list of emails or forwarders never gets loaded.

Where can I look for possible issues?

:2083/cwp_93cb45dd01cbe276/agspower/?module=email_accounts
:2083/cwp_a60cebb21f1ae172/pknco/?module=forwarders_email

Offline
**
Re: Emails screen not loading
« Reply #1 on: February 17, 2023, 08:13:27 AM »
Quote
Uncaught SyntaxError: Bad control character in string literal in JSON at position 743
    at JSON.parse (<anonymous>)
    at ?module=email_accounts:2955:28

This is the error I see when I do inspect

Offline
***
Re: Emails screen not loading
« Reply #2 on: February 18, 2023, 03:40:06 AM »
I have a cwp setup with around 25 client accounts

In one of the client logins, Email scree and Email forwarder scree just keeps loading. The list of emails or forwarders never gets loaded.

Where can I look for possible issues?

:2083/cwp_93cb45dd01cbe276/agspower/?module=email_accounts
:2083/cwp_a60cebb21f1ae172/pknco/?module=forwarders_email


any screenshot or short video maybe can help community to help you

Offline
*****
Re: Emails screen not loading
« Reply #3 on: March 04, 2023, 09:51:52 PM »
Maybe the client made an e-mail address with an invalid character, revealing an unescaped bug in CWP?
https://stackoverflow.com/questions/17487058/how-to-solve-json-parse-bad-control-character-in-string-literal-in-this-code

Offline
*
Re: Emails screen not loading
« Reply #4 on: March 09, 2023, 08:30:39 PM »
This is what i got on my side regarding this issue.

Look like a special char in front of a mailbox or a forwarder.


Offline
*****
Re: Emails screen not loading
« Reply #5 on: March 11, 2023, 10:17:17 AM »
Now that is truly bizarre... on one of my CWP Pro servers, the forwarder module is missing!
?module=forwaders_email does not exit!

But this solves it:
http://forum.centos-webpanel.com/index.php?topic=12025.msg41471#msg41471
And since it was for the client that is basically 1:1 utilizing the whole server, I went ahead and gave them all access to everything under Features,Themes,Languages. Hopefully they don't shoot themselves in the foot with all their new toys!
« Last Edit: March 11, 2023, 10:49:57 AM by overseer »

Offline
**
Re: Emails screen not loading
« Reply #6 on: April 28, 2023, 10:54:25 AM »
Correct.

Login to cwp admin and edit.

User cant do this as the screen doesnt load.

A bug (Either on validation side while adding an email/forward or while loading)

This is what i got on my side regarding this issue.

Look like a special char in front of a mailbox or a forwarder.



Offline
*
Re: Emails screen not loading
« Reply #7 on: June 21, 2023, 05:20:44 PM »
I´m with the same problem only 1 account my customer.
This customer has 54 emails account and 7 email forwarders and is not loading any email lists in e-mail accounts.
I checked others accounts and everything all normal, only this account it´s happening this problem.
I already suspend and unsuspend account, I already changed the package but nothing solve.
What Can i do?

Offline
*
Re: Emails screen not loading
« Reply #8 on: June 21, 2023, 05:41:59 PM »
Hi,

I posted a few minutes the problem because I was searching since 9a.m but i solved this problem now.
The problem happen because my customer created a alias/foward like email1@domain.com.br, email2@domain.com.br. My customer put a blank space after comma "," and because this He crashed the loading this screen.
I solved this problem logging in CWP as root and clicked on Menu Email > Email Aliases/Fowarders. After i search the my customer domain and corrected the problem and everything returned ok.

Thank You!

Offline
*****
Re: Emails screen not loading
« Reply #9 on: June 22, 2023, 03:04:23 AM »
Yes, the devs need to better sanitize the input of the forwarders creation form so you can't create something with illegal characters or that don't parse & display correctly. Please file a bug report so it can get addressed in a future release.