Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Todd: Suggestion for Bonk Page Replacement.

replace error.master.php with this file or something like it.

   <?php
    @ob_end_clean();
    echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-ca">
    <head>
       <title>Bonk</title>
       <?php
       if ($CssPath !== FALSE)
          echo '<link rel="stylesheet" type="text/css" href="',Asset($CssPath),'" />';
       ?>
    </head>
    <body>
       <div id="Content">
          <div class="SplashInfo">
             <h1>Bonk</h1>
             <p>Something bunky happened. Please bear with us while we iron out the kinks.</p>
             <?php
             if (Gdn::Session()->CheckPermission('Garden.Settings.Manage')){
                     echo "to further debug put these lines in config.php";
                     echo "<br />\$Configuration['Garden']['Debug'] = TRUE;";
                     echo "<br />\$Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php\';";
                     echo "<br />";
                     echo "if you are changing a theme, the permission the following directories must exist and have permissions of 755.  If 755 does not work for you try 777";
                     echo "<br />";
                     echo "cache/ <br />  cache/Smarty/
     <br />   cache/Smarty/cache";
                   }             

             ?>
          </div>
       </div>
    </body>
    </html>

factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

Best Answer

Answers

Sign In or Register to comment.