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.

[SOLVED] 500 Internal Server Error when viewing discussion

anycraftanycraft New
edited August 2014 in Vanilla 2.0 - 2.8

Hello, our problem is that when you try to view a discussion you get a 500 internal server error. Vanilla has been newly installed this morning and it has not worked yet at all. If you need more details just ask. You can view the forum at http://any-craft.tk/forum/index.php

Comments

  • ShadowdareShadowdare r_j MVP
    edited August 2014

    Try clearing all the .ini files from your Vanilla's cache folder.

    Additionally, it looks like you're using IIS. You may want to enable clean URLs for your Vanilla forum: http://vanillaforums.org/discussion/27568/enabling-clean-urls-on-iis-installations

    Add Pages to Vanilla with the Basic Pages app

  • That just made things worse. @Shadowdare‌ :( Now even if I try to access a page outside of the forum (e.g. http://any-craft.tk/index.html) It gives me this error. I need help urgently now! P.S. Yes, I do use IIS on a Windows Server 2008 R2 x64 machine.

  • ShadowdareShadowdare r_j MVP
    edited August 2014

    Try changing the IIS settings to show the error message behind the 500 Internal Server Error: http://serverfault.com/a/19566

    For the clean URLs, I think you have to put the rewrite rules in a Web.config file within the /forum sub-folder and not on the main folder of your website.

    Either that or changing two lines might work (I haven't tested these): <match url="^(.*)$" ignoreCase="false" /> to <match url="^forum/(.*)$" ignoreCase="false" /> and <action type="Rewrite" url="index.php\?p={R:1}" appendQueryString="true" /> to <action type="Rewrite" url="forum/index.php\?p={R:1}" appendQueryString="true" />.

    Add Pages to Vanilla with the Basic Pages app

  • Again, @Shadowdare‌ , the error 500 now only comes up for pages in the /forum directory, which makes it better than before at least. Any more help would be appreciated as I am a NOOB at PHP.

  • ShadowdareShadowdare r_j MVP
    edited August 2014

    I used to run a couple Vanilla forums on IIS, but not any longer, so I can't check how the rewrite rules for sub-folders work. Please set the RewriteUrls config.php setting back to false and remove the rewrite block from the Web.config for now. We can look into a fix for it later on.

    Hopefully, the real error message behind the 500 page shows up on the discussion link now. If you see a bonk or Vanilla "an error has occurred" page, add this line to the /conf/config.php file: $Configuration['Debug'] = true;

    Add Pages to Vanilla with the Basic Pages app

  • Nah, @Shadowdare‌ , the message still doesn't appear. If anyone else has any suggestions, then they would be welcomed.

  • ShadowdareShadowdare r_j MVP
    edited August 2014

    Did you set existingResponse to PassThrough in the httpErrors section of the IIS settings? Getting errors to show up with IIS is irritating sometimes.

    Also, try going to http://any-craft.tk/forum/index.php?p=utility/structure and run the script there to see if any database structuring needs to be done.

    Add Pages to Vanilla with the Basic Pages app

  • @Shadowdare‌ When I set it to PassThrough, all pages in the forum come up with the message. It's like that now, live if you want to see for yourself.

  • ShadowdareShadowdare r_j MVP
    edited August 2014

    At least it's showing a more in-depth error message now. What does the C:\inetpub\wwwroot\web.config file look like? If you're still using rewrite rules, make sure the IIS Rewrite module is installed.

    Add Pages to Vanilla with the Basic Pages app

  • anycraftanycraft New
    edited August 2014

    It won't let me post it so I screenshot it:

    CLick here

  • anycraftanycraft New
    edited August 2014

    @Shadowdare‌ I modified the web.config to the original state, and then added the rewrite with the plugin now installed and it is giving me this when I try to view the discussion:

    PHP Fatal error: Call to undefined function mb_detect_encoding() in C:\inetpub\wwwroot\forum\library\vendors\simplehtmldom\simple_html_dom.php on line 988

    P.S. I read your profile and you say that you like minecraft, so I just thought I'd mention that my website is for my minecraft server :P

  • @Shadowdare‌ How do I mark this as solved?

  • Ur, I think someone did it for me.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @anycraft‌

    Thanks for posting the solution.

    I've edited the thread to title to show it as solved.

  • anycraftanycraft New
    edited August 2014

    Haha I posted too quickly lol Thanks @whu606

Sign In or Register to comment.