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.

Discussions aren't displaying [RESOLVED]

Nira33000Nira33000 New
edited December 2015 in Vanilla 2.0 - 2.8

Hello friends!

I have installed the latest version without any changes. But in that forum, discussions aren't working. Mend, when click on any discussion in the home page, it's displaying an empty page.
(when redirecting for view)

Here is the hidden URI - http://goo.gl/m0dxWb (07.12.2015)

(500 error)

Please support me to fix this. Thank you all..!

Tagged:

Comments

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

    In your conf.php file, try changing this line

    $Configuration['Garden']['RewriteUrls'] = FALSE;

    change FALSE to TRUE.

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

    @R_J said

    There is a difference between a blank page and a http code 500 error. Please look here: http://docs.vanillaforums.com/developers/troubleshooting/ to find out more about that blank page

    (moved from duplicate thread.)

  • Nira33000Nira33000 New
    edited December 2015

            $Discussion = val($Row['LastDiscussionID'], $Discussions);
            $NameUrl = 'x';
            if ($Discussion) {
                $Row['LastTitle'] = Gdn_Format::text($Discussion['Name']);
                $Row['LastUserID'] = $Discussion['InsertUserID'];
                $Row['LastDiscussionUserID'] = $Discussion['InsertUserID'];
                $Row['LastDateInserted'] = $Discussion['DateInserted'];
                $NameUrl = Gdn_Format::text($Discussion['Name'], true);
                $Row['LastUrl'] = DiscussionUrl($Discussion, false, '/').'#latest';
            }
            $Comment = val($Row['LastCommentID'], $Comments);
            if ($Comment) {
                $Row['LastUserID'] = $Comment['InsertUserID'];
                $Row['LastDateInserted'] = $Comment['DateInserted'];
                $Row['DateLastComment'] = $Comment['DateInserted'];
            } else {
                $Row['NoComment'] = true;
            }
    
            touchValue('LastTitle', $Row, '');
            touchValue('LastUserID', $Row, null);
            touchValue('LastDiscussionUserID', $Row, null);
            touchValue('LastDateInserted', $Row, null);
            touchValue('LastUrl', $Row, null);
        }
        return $Joined;
    }
    
  • @whu606

    Not yet it's fixed with your solutions. Please look at the errors in my top-comment, I found.

    Thank you for your valuable time!

  • R_JR_J Ex-Fanboy Munich Admin

    The above only shows Notices. They are not relevant.
    Look at my link, see what you have to do, open the "blank page" and tell us what you see.

  • Nira33000Nira33000 New
    edited December 2015

    @R_J
    I have followed your Link & it's solutions too.
    http://docs.vanillaforums.com/developers/troubleshooting/

    Please note, this is a new fresh-installation & yet it haven't any additional content.

    If you can do more for me, I can PM of my FTP login details too.

    With firefox can't see anything, but with below image you can see how it's displaying in chrome.

    Here is the hidden URI of this Forum - http://goo.gl/m0dxWb (07.12.2015)

    Thank you for your valuable time!

  • R_JR_J Ex-Fanboy Munich Admin

    Sorry, I wasted your time. You have a 500 server error. Please check your servers log files to get a hint why it fails. This is more server specific than Vanilla specific.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Try reinstalling by reuploading the files via FTP and post the htaccess file content here. You can also find more information about the error if you look at the cgi error logs from where you are hosting this installation.

    Or by adding this to the config.php and then removing it or commenting it out with // at the front as soon as you are finished troubleshooting. Take a screenshot of the error page and post it here.

    $Configuration['Garden']['Errors']['MasterView']= 'deverror.master.php';

  • Nira33000Nira33000 New
    edited December 2015

    @vrijvlinder

    I have installed with FTP in a Folder as "mysite.com/forum". But the error has still again.
    http://goo.gl/q7edl8


    htaccess

    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]


    error_log

    [08-Dec-2015 02:48:46 UTC] PHP Fatal error: Call to undefined function mb_detect_encoding() in /home/cyberbuw/public_html/forum/library/vendors/simplehtmldom/simple_html_dom.php on line 988


    /forum/library/vendors/simplehtmldom/simple_html_dom.php

    /forum/library/vendors/simplehtmldom/simple_html_dom.php.txt > http://goo.gl/mZ2c2B


  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    This issue looks like a server misconfiguration, the function depends on the mbstring extension. Make sure mb_string is enabled.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Also :

    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 /forum
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
    

    And make it $Configuration['Garden']['RewriteUrls']= TRUE; in the config.php

  • Discussions aren't displaying - SOLVED - Vanilla 2.* Forum

    @vrijvlinder said:
    This issue looks like a server misconfiguration, the function depends on the mbstring extension. Make sure mb_string is enabled.

    YES, YOU ARE THE MAN.. After enabled the mbstring in the VPS, that the error has Solved.

    Thank you all for your great support..

    =) Have a nice day!

Sign In or Register to comment.