[GH-ISSUE #1346] modoboa 1.9.1 SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data #1076

Closed
opened 2026-02-27 11:15:07 +03:00 by kerem · 10 comments
Owner

Originally created by @khalidzouagui on GitHub (Jan 8, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1346

Hi,

I have installed modoboa 1.9.1, but when i try to add a new account i coud not and in the console i receive this error :
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data : jquery.min.js:3:4315

Thank you for your time and your help.

Impacted versions

  • Modoboa: 1.9.1
  • installer used: Yes/No ?
  • Webserver: Apache

Steps to reproduce

Current behavior

error :
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data : jquery.min.js:3:4315

Expected behavior

Video/Screenshot link (optional)

Originally created by @khalidzouagui on GitHub (Jan 8, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1346 Hi, I have installed modoboa 1.9.1, but when i try to add a new account i coud not and in the console i receive this error : SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data : jquery.min.js:3:4315 Thank you for your time and your help. # Impacted versions * Modoboa: 1.9.1 * installer used: Yes/No ? * Webserver: Apache # Steps to reproduce # Current behavior error : SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data : jquery.min.js:3:4315 # Expected behavior # Video/Screenshot link (optional)
kerem closed this issue 2026-02-27 11:15:08 +03:00
Author
Owner

@tonioo commented on GitHub (Jan 8, 2018):

Enable debug mode (set DEBUG to True inside settings.py and reload uwsgi) and check the response content with your JS debugger, you should have more information.

<!-- gh-comment-id:355939853 --> @tonioo commented on GitHub (Jan 8, 2018): Enable debug mode (set DEBUG to True inside settings.py and reload uwsgi) and check the response content with your JS debugger, you should have more information.
Author
Owner

@khalidzouagui commented on GitHub (Jan 8, 2018):

Thanks for your response.
I set DEBUG = True in settings.py and i when i want to reload uwsgi with :(env) $ service uwsgi reload
i get : uwsgi.service is not active, cannot reload.

<!-- gh-comment-id:355942782 --> @khalidzouagui commented on GitHub (Jan 8, 2018): Thanks for your response. I set DEBUG = True in settings.py and i when i want to reload uwsgi with :(env) $ service uwsgi reload i get : uwsgi.service is not active, cannot reload.
Author
Owner

@tonioo commented on GitHub (Jan 8, 2018):

How did you install modoboa?

<!-- gh-comment-id:355946245 --> @tonioo commented on GitHub (Jan 8, 2018): How did you install modoboa?
Author
Owner

@khalidzouagui commented on GitHub (Jan 8, 2018):

With the manual installation:
Modoboa
Apache as web server
Dovecot
Postfix

<!-- gh-comment-id:355946818 --> @khalidzouagui commented on GitHub (Jan 8, 2018): With the manual installation: Modoboa Apache as web server Dovecot Postfix
Author
Owner

@tonioo commented on GitHub (Jan 8, 2018):

Ok so reload apache.

<!-- gh-comment-id:355948021 --> @tonioo commented on GitHub (Jan 8, 2018): Ok so reload apache.
Author
Owner

@khalidzouagui commented on GitHub (Jan 8, 2018):

I reloaded apache, when i hit submit to add a new account i could not and in the console i receive this error :
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data : jquery.min.js:3:4315

<!-- gh-comment-id:355949136 --> @khalidzouagui commented on GitHub (Jan 8, 2018): I reloaded apache, when i hit submit to add a new account i could not and in the console i receive this error : SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data : jquery.min.js:3:4315
Author
Owner

@tonioo commented on GitHub (Jan 8, 2018):

You're not looking at the right tab. Inspect the response content. And also make sure you settings are correct (PDF files storage directory for example, see Modoboa > Parameters > PDF)

<!-- gh-comment-id:355949935 --> @tonioo commented on GitHub (Jan 8, 2018): You're not looking at the right tab. Inspect the response content. And also make sure you settings are correct (PDF files storage directory for example, see Modoboa > Parameters > PDF)
Author
Owner

@khalidzouagui commented on GitHub (Jan 8, 2018):

i have an issue about PDF but i resolved it, Please how do i inspect the response content?

<!-- gh-comment-id:355951898 --> @khalidzouagui commented on GitHub (Jan 8, 2018): i have an issue about PDF but i resolved it, Please how do i inspect the response content?
Author
Owner

@tonioo commented on GitHub (Jan 8, 2018):

Look at the network tab for example and search the failing request.

<!-- gh-comment-id:355953884 --> @tonioo commented on GitHub (Jan 8, 2018): Look at the network tab for example and search the failing request.
Author
Owner

@khalidzouagui commented on GitHub (Jan 8, 2018):

It was about PDF authorization, i resolved it by : # chmod ugo+rwx -R /var/lib/modoboa/pdf_credentials/
but i have other problems when i want to access Contacts and Webmail. but i think it is another issue.
Thank you Mr Antoine.

<!-- gh-comment-id:355958141 --> @khalidzouagui commented on GitHub (Jan 8, 2018): It was about PDF authorization, i resolved it by : # chmod ugo+rwx -R /var/lib/modoboa/pdf_credentials/ but i have other problems when i want to access Contacts and Webmail. but i think it is another issue. Thank you Mr Antoine.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1076
No description provided.