Fresh Install Error - Cannot Login/Register & JS Reference Error

Technical Support

Suggested Topics


  • 0 Votes
    6 Posts
    129 Views

    So for anyone wondering
    SOLUTION: Finally after searching and looking on my server configurations I saw that a virtualhost on virtualmin was 0.33 GB over its 1GB quota. I did not think that the issue was related but after changing that Quota and restarting the container the problem seems to go away. So for other people facing a similar problem check for you user Quotas and usage even if it seems unrelated

  • Redirect after login?

    Technical Support
    0 Votes
    10 Posts
    629 Views

    Here's what I ended up doing. Feels reeealy hacky.

    in footer.tpl

    window.addEventListener('DOMContentLoaded', function () { $(window).on('action:ajaxify.contentLoaded', function(data) { // attach to all login/reg buttons except for the login and register buttons on the login page. $("a[href$='/login'], a[href$='/register']").not('#login').not('#login__no-acct').each(function(i, el){ $(el).off('click').on('click', function(){ window.setCookie('login:referrer', window.location.href, 10); }); }); }); }); </script>

    in profile.tpl

    <script> var referrer = window.getCookie('login:referrer'); if (referrer && window.getCookie('login:shouldRedirect')) { window.setCookie('login:shouldRedirect', '', 0) window.setCookie('login:referrer', '', 0) window.location.href = referrer; } </script>

    in registerComplete.tpl

    <script> window.setCookie('login:shouldRedirect', 'true', 10); </script>

    ...and attaching setCookie/getCookie on window in header.

    Probably could do this all with client-side hooks now that I understand them though.

  • 0 Votes
    4 Posts
    704 Views

    @Witzker

    Webserver in this case means
    PHP / MYSQL / Apache 2

    You would need node.js based Web-Environment

  • 0 Votes
    4 Posts
    2k Views

    @pichalite Hail bro!!! thanks.

  • 1 Votes
    7 Posts
    2k Views

    @psychobunny said:

    Hey, you can install the gravatar plugin to reclaim those original images

    Thanks... I couldn't remember what plugin was called......

    There is now two of the gravatar plugins... Tried the first no go... Will give the other a try when I have time.

    Thanks again.