HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Recent Discussions wrong Link


Hi, I am using v3.3, an noticed that the Recent Discussions link is wrong, as you can see in the image, points to /\discussions instead of /discussions. There is another Discussions link on top menu, but that one is correct.

Any ideas why?

Thank you

Catalin

Comments

  • Options
    KasparKaspar Moderator

    Enable pretty links

    https://open.vanillaforums.com/discussion/comment/220157/#Comment_220157

    If issue persists, test with native theme Keystone.

  • Options

    Hi Kaspar,

    Thanks for the tip.

    Pretty links works, but still wrong. The Recent Discussions link becomes now "discussions", without domain, so it obviously goes into 404 error.

    It's the same in all themes, so I guess it's not the theme.

    Some links work, like categories, discussions (from top menu), but topic links goes into 404 error.

    Here is an example: http://forum.exceltoforms.com/discussion/1/welcome-to-awesome#latest

    Activity works: http://forum.exceltoforms.com/activity

    But moderator/admin activity goes into 404. (activity/mods, activity/admins)

    Dashboard fails too. Strange enough, for dashboard, pretty links goes into 404 error, but old style links work: http://forum.exceltoforms.com/index.php?p=/dashboard/settings/home

    Here is what I put in htaccess:

    <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 or whatever name you have given your forum if in a subdirectory)

      RewriteBase /

      RewriteCond %{REQUEST_FILENAME} !-d

      RewriteCond %{REQUEST_FILENAME} !-f

      RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]

    </IfModule>

    Of course, conf/config has $Configuration['Garden']['RewriteUrls'] = TRUE;

    Thanks again for your time.

    Catalin

  • Options

    The fact that the 404 error page you receive is not handled by Vanilla Forums app should tell us something.

    Also, if you inspect your browser, when on your site, you'd see some missing file errors

    example.com/api/v2/locales/en/translations.js?h=3.3

    Some links/images are even pointing to localhost.


    Suggestions

    1. Do a full reinstall. Note that copying folders and files manually to the server can be unreliable.
    2. Leave the .htaccess file alone, you have quite mangled it :)
    3. Disable all plugins/themes when testing

    Cheers

  • Options

    Ok, I did a full reinstall, I dropped the database and created another one.

    All plugins are disabled, using default theme, but Recent Discussions link is still wrong: {domain}/\discussions instead of {domain}/discussions. (without pretty links)

    There is no api folder at all in the package, any ideas why this folder is not provided in the download? Can I get it separately?

    Thank you

  • Options

    Hi,

    Just for feedback, I tried a new V3.3 install on a new dedicated server. Same problems:

    1. Recent Discussions link is still wrong
    2. Api v2 not functional: "No API definition provided" error on {domain}/index.php?p=/settings/swagger

    Don't have the morbid curiosity to find out what else does not work, decided to move forward with another forum solution.

    Cheers,

    Catalin

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Just for anybody looking at that: Vanilla requires pretty urls. They are not set up on your site, which is the reason why the API fails.

    Looking at your forum and the theme Gdn_Theme::link('discussions' works, but Gdn_Theme::link('forumroot' does not. In such a case I would take a look at the forum root settings (DefaultForumRoot in /dashboard/routes).

Sign In or Register to comment.