Page 1 of 1

Sidebar plugin failures

Posted: Wed Jul 27, 2005 8:43 am
by gwilsonmail
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.

Re: Sidebar plugin failures

Posted: Wed Jul 27, 2005 1:20 pm
by garvinhicking
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:

Code: Select all

.bug {
width: 50px;
height: 50px;
overflow: scroll;
display: block;
}
Sadly this config issue can only be done in php.ini and not within serendipity.

Regards,
Garvin