• Members 12 posts
    Dec. 9, 2021, 11:38 p.m.

    Hello everyone,
    Thanks for this unique forum script. So recently i created a forum and everything runs smoothly until when user want to register..then that's where the "unknown error" occur..also if i set to admin approval also it does not work.
    Attached below is some errors i found in console.

    Any help solving that will be appreciated.

    WhatsApp Image 2021-12-10 at 1.37.23 AM.jpeg

    WhatsApp Image 2021-12-10 at 1.37.22 AM.jpeg

    WhatsApp Image 2021-12-10 at 1.37.23 AM.jpeg

    JPG, 214.2 KB, uploaded by ikipkip on Dec. 9, 2021.

    WhatsApp Image 2021-12-10 at 1.37.22 AM.jpeg

    JPG, 152.9 KB, uploaded by ikipkip on Dec. 9, 2021.

  • Dec. 10, 2021, 6:44 p.m.

    Did you really report same issue in three places? ☹️

    Can you share error logs of your Misago installation? I'm wondering if e-mail is setup incorrectly or our mailgun integration needs update?

  • Members 12 posts
    Dec. 10, 2021, 6:49 p.m.

    I commented on a similar post but didn't get a feedback, so i decided to make a thread. Sorry my bad...I'm desperate to fix that issue..I can't approve users manually and the register doesn't send mails..

  • Members 12 posts
    Dec. 10, 2021, 6:59 p.m.

    ```[2021-12-09 11:34:09,333] ERROR Internal Server Error: /api/users/
    Traceback (most recent call last):
    File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
    File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
    File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, callback_args, callback_kwargs)
    File "/usr/local/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args,
    kwargs)
    File "/usr/local/lib/python3.7/site-packages/rest_framework/viewsets.py", line 116, in view
    return self.dispatch(request,
    args, kwargs)
    File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 495, in dispatch
    response = self.handle_exception(exc)
    File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 455, in handle_exception
    self.raise_uncaught_exception(exc)
    File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 492, in dispatch
    response = handler(request, *args,
    kwargs)
    File "/usr/local/lib/python3.7/site-packages/misago/users/api/users.py", line 92, in create
    return create_endpoint(request)
    File "/usr/local/lib/python3.7/site-packages/django/utils/decorators.py", line 142, in _wrapped_view
    response = view_func(request, args, kwargs)
    File "/usr/local/lib/python3.7/site-packages/misago/users/api/userendpoints/create.py", line 66, in create_endpo>
    send_welcome_email(request, new_user)
    File "/usr/local/lib/python3.7/site-packages/misago/users/registration.py", line 20, in send_welcome_email
    context={"settings": settings},
    File "/usr/local/lib/python3.7/site-packages/misago/core/mail.py", line 40, in mail_user
    message.send()
    File "/usr/local/lib/python3.7/site-packages/django/core/mail/message.py", line 291, in send
    return self.get_connection(fail_silently).send_messages([self])
    File "/usr/local/lib/python3.7/site-packages/django/core/mail/message.py", line 248, in get_connection
    self.connection = get_connection(fail_silently=fail_silently)
    File "/usr/local/lib/python3.7/site-packages/django/core/mail/init.py", line 35, in get_connection
    return klass(fail_silently=fail_silently,
    kwds)
    File "/usr/local/lib/python3.7/site-packages/django/core/mail/backends/smtp.py", line 33, in init
    "EMAIL_USE_TLS/EMAIL_USE_SSL are mutually exclusive, so only set "
    ValueError: EMAIL_USE_TLS/EMAIL_USE_SSL are mutually exclusive, so only set one of those settings to True.
    [2021-12-09 11:44:41,696] ERROR Internal Server Error: /api/users/
    Traceback (most recent call last):
    File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
    File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
    File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request,
    callback_args, callback_kwargs)
    File "/usr/local/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args,
    kwargs)
    File "/usr/local/lib/python3.7/site-packages/rest_framework/viewsets.py", line 116, in view
    return self.dispatch(request, args,*kwargs)

    ```

  • Dec. 10, 2021, 7:48 p.m.
    check_box

    Marked as best answer by Dec. 10, 2021, 7:56 p.m..

    Here's your problem:

    "EMAIL_USE_TLS/EMAIL_USE_SSL are mutually exclusive, so only set one of those settings to True.

    ;)

  • Members 12 posts
    Dec. 10, 2021, 7:55 p.m.

    Have just changed that..in set tls only on misago.env hope that is the fix

    Update..i have no idea what I'm doing lol

  • Members 12 posts
    Dec. 10, 2021, 8:03 p.m.

    Still the same "unknown error" changed ssl to no in the misago.env.. after that i did ./appctl restart

  • Members 12 posts
    Dec. 10, 2021, 8:25 p.m.

    okay let me find them

  • Members 12 posts
    Dec. 10, 2021, 8:34 p.m.

    Quick question.. let's say i want to add the ads.txt to the root..where will i add it..Please this the last question..i promise.

  • Dec. 10, 2021, 8:36 p.m.

    Please stick to one question/problem = one thread practice. Makes it easier to search and link to things for others :)