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
Answers
also a change to your help sidebar
How to Ask
add
. please scan the discussions and/or
. use the search feature
. read or scan the documentation
. before asking your question.
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
- Spam
- Abuse
- Troll
2 • Off Topic Insightful 2Awesome LOL •Not sure about the something bunky happened
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •that was a residual when I was testing to make sure I was hitting the page I thought I was - it was "funky".
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
- Spam
- Abuse
- Troll
2 • Off Topic Insightful 2Awesome LOL •Something bonky happened...
Really good idea, peregrine. I'm sure this would have saved me some trouble sometime back in the day... Yikes, come to think of it I've been using Vanilla for six years.
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •Even better a debug cookie, to be restricted to and turned on by admin. All they have to do is click on a link in the message.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
- Troll
2 • Off Topic Insightful 2Awesome LOL •Vanilla newbie here. Where do I replace the file "error.master.php" in my vanilla directory?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •After the fact. This was mostly a suggestion to Vanilla folks, not for you to do at home :).
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
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •During a bonk, you cannot assume any Garden assets are available at all. Otherwise, it defeats the purpose of a having a graceful failure page.
Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •@Xarcell You don't, you add a NEW one to your theme, which overrides the existing one.
Also, 'bonk' has had a more professional-looking revision for 2.1. (Makes me sad, but I'm sure many will appreciate it)
Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •I like the term 'graceful failure'! Sorry for the off topic, please continue.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •"Graceful" in the sense that it's covering its mouth and burping instead of puking errors and code all over you. :D
Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
2 • Off Topic Insightful 2Awesome LOL •Oh, so finally we can get rid of the "I changed 1 line in conf/config.php and nothing happened" questions?
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •