Please upgrade here. These earlier versions are no longer being updated and have security issues.

RewriteUrls = TRUE leads to white page

Hello!

I just try to get some pretty links. So I set the RewriteUrls-Option in the config.php to TRUE.

This is how my htaccess looks like:

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
</IfModule>

Unfortunately only white pages are displayed if i click on a category. Does anyone have an idea how this can be solved?

Best regards!

Comments

  • hgtonighthgtonight ∞ · New Moderator

    Welcome to the community!

    You need to enabled debug mode by adding $Configuration['Debug'] = TRUE; to your /conf/config.php file.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Hi!
    Thanks, but I already tried to activate the debug mode. The page still remains blank :(

  • you need to look at your server logs.

    grep is your friend.

  • I think it must have something to do with the last update to 2.1.8p2. I have a fresh installation in another directory (also 2.1.8.p2) which works fine!

    One thing that already produced an error was my bootstrap.after.php, which looks like the following:

    <?php if (!defined('APPLICATION')) exit();
        if (!function_exists('SocialSignInButton')) {
        function SocialSignInButton($Name, $Url, $Type = 'button', $Attributes = array()) {
        TouchValue('title', $Attributes, sprintf(T('Sign In with %s'), $Name));
        $Title = $Attributes['title'];
        $Class = val('class', $Attributes, '');
        switch ($Type) {
        case 'icon':
        $Result = Anchor('<span class="Icon"></span>',
        $Url, 'SocialIcon SocialIcon-'.$Name . ' ' . $Class, $Attributes);
        break;
        case 'button':
        default:
        $Result = Anchor('<span class="Icon"></span><span class="Text">'.$Title.'</span>',
        $Url, 'SocialIcon SocialIcon-'.$Name.' HasText ' . $Class, $Attributes);
        break;
        }
        return $Result;
        }
        }
    
  • As I wasn't able to find the Error, I re-installed vanilla. Now it works fine.

    hgtonightShadowdare
Sign In or Register to comment.