When a sidebar plugin fails, as it writes out it's html code, it puts out some php error line.
This line is long/wide and destroys the formatting of many of the tempates included with s9y.
Is it possible to catch this error line and/or reformat it so it conforms to the intended design of the tempate.
Having an php errors is, at times, unavoidable. But it shouldn't destroy the entire look of the site. Failing to provide the output of the sidebar plugin function is acceptable.
Sidebar plugin failures
-
gwilsonmail
- Regular
- Posts: 146
- Joined: Tue Jul 12, 2005 9:12 pm
- Location: Ottawa, Canada
- Contact:
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Sidebar plugin failures
Sadly no, you cannot contorl the error messages centrally.
You can however tune your PHP to not show Warnings/Errors on production machines and only log them to a file. The downside of this is that you might never see error messages and think everything is right.
You can also edit your PHP.ini file and insert a wrapping "<div class='bug'>" ... '</div>' arround PHP error messages. Then you can use CSS to format this:
Sadly this config issue can only be done in php.ini and not within serendipity.
Regards,
Garvin
You can however tune your PHP to not show Warnings/Errors on production machines and only log them to a file. The downside of this is that you might never see error messages and think everything is right.
You can also edit your PHP.ini file and insert a wrapping "<div class='bug'>" ... '</div>' arround PHP error messages. Then you can use CSS to format this:
Code: Select all
.bug {
width: 50px;
height: 50px;
overflow: scroll;
display: block;
}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/