Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

After signin forwarded to missing page

Ok when I go to my forum and click on a thread. Then click SIGN IN from that thread page, I am able ot login but then it tries to forward me to a page that doesn't exist. When I look at the URL it's forwarding me to /forum/forum/discussion/1941/sacred-geometry-in-dreams instead of /forum/discussion/1941/sacred-geometry-in-dreams

so it's adding an additional /forum to the URL as the after sign in Target URL. Any idea where this is happening? I'm using the Boostrap theme.

Comments

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    It is not forwarding you to a missing page, it is adding the forum root to the URL again . I have seen this before and it has been discussed before. Let me see if I can find the discussions for you.

  • Options
    peregrineperegrine MVP
    edited November 2014

    I saw this issue too occasionally.

    curious though can you post your .htaccess to see if it is correct.

    also what version NUMBER of vanilla are you using?

    it appears the signin link when viewing a discussion is a different target than the signin button in top left panel.

    e.g. via signin link.

    http://localhost/vanilla/entry/signin?Target=%2Fvanilla%2Fdiscussion%2F142%2Fperegrinepost

    vs. button

     http://localhost/vanilla/entry/signin?Target=discussion%2F142%2Fpereginepost
    

    I thought this was posted as issue or bug on github, but it may not be.

    I wonder if the problem is with (non-popup signins).

    https://github.com/vanilla/vanilla/blob/2.1/applications/vanilla/views/discussion/helper_functions.php#L411

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    It actually does forward me to an OOPS missing page message but i grabbed the URL prior to the forward to see why it was "missing" which is when I discovered the forum/forum I'll look and see if i can find where this is happening.

  • Options

    the problem the SiginUrl has forum in it

    and the target has forum in it

    and when they get appended it becomes /forum/forum

    at least one line is here.

    https://github.com/vanilla/vanilla/blob/2.1/applications/vanilla/views/discussion/helper_functions.php#L411

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    you still didn't post your .htaccess

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    webdiva69webdiva69 New
    edited December 2014

    htaccess

    # Original
    # If you modify this file then change the above line to: # Modified
    <IfModule mod_rewrite.c>
       RewriteEngine On
       # Certain hosts may require the following line.
       # If vanilla is in a subfolder then you need to specify it after the /. 
       # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
       # RewriteBase /
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
    </IfModule>
    
  • Options
    webdiva69webdiva69 New
    edited December 2014
    # Original
    # If you modify this file then change the above line to: # Modified
            <IfModule mod_rewrite.c>
               RewriteEngine On
               # Certain hosts may require the following line.
               # If vanilla is in a subfolder then you need to specify it after the /. 
               # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
               # RewriteBase /
               RewriteCond %{REQUEST_FILENAME} !-d
               RewriteCond %{REQUEST_FILENAME} !-f
               RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
            </IfModule>
    
  • Options
    peregrineperegrine MVP
    edited November 2014

    what folder is Vanilla installed in?

    make sure you modify .htaccess after every upgrade so it reflects the correct installation folder on the rewritebase line.

    http://vanillaforums.org/discussion/28420/faq

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    peregrineperegrine MVP
    edited November 2014

    you might want to see the FAQ question 22

    http://vanillaforums.org/discussion/comment/220157/#Comment_220157

    it won't solve the duplication, but it might solve the issue of 404 errors.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    yeah didn't solve the problem still throwing me to forum/forum

  • Options

    are you having a problem with this signin link.

    always good to show screenshots of what you are trying to solve

    short of changing core to this and just going to signin without a target. I don't know, maybe @linc can suggest a fix, if the solution is not already in github.

    'SignInUrl' => Url(SignInUrl()),
     'RegisterUrl' => Url(RegisterUrl()),
    

    https://github.com/vanilla/vanilla/blob/2.1/applications/vanilla/views/discussion/helper_functions.php#L411

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.