Yellow Swordfish said
Let’s go for the simple question first which is – what on earth did you use to make the file edits?
Clearly something was wrong with the edits you made and if you are still getting parse errors after you remove the changes then something is still wrong. And the headers already sent message might just be because of other errors or it might again be because of the way the file was edited. So – what tool was used is the first question.
YS,
All changes to the PHP file were made with a standard TEXT EDITOR. I can assure you that after 30 years in programming, I did not make any mistakes.
Here is the message I just sent to Mr. Papa,
YS and Papa,
As suggested I preformed that following modifications to the filter file.
May I suggest that it would be much easier if you would make the changes to the file and email me as gelb.com
if (empty($width[1])) {
$size = @getimagesize(str_replace(‘ ‘, ‘%20’, $srcfile));
if ($size) {
if ($size[0]) {
$width[1] = $size[0];
}
} elseif (ini_get(‘allow_url_fopen’) == true && $size == false) {
return ‘[‘.sp_text(‘Image Can Not Be Found’).’]’;
}
============================
if (empty($width[1])) {
$size = @getimagesize(str_replace(‘ ‘, ‘%20’, $srcfile));
if ($size) {
if ($size[0]) {
$width[1] = $size[0];
$height[1] = $size[1];
} else {
$width[1] = 0;
$height[1] = 0;
}
} elseif (ini_get(‘allow_url_fopen’) == true && $size == false) {
return ‘[‘.sp_text(‘Image Can Not Be Found’).’]’;
}
=====================================================
# insepct the image itself
global $gis_error;
$gis_error = ”;
set_error_handler(‘sp_gis_error’);
$display_width = ”;
$display_height = ”;
$size = @getimagesize(str_replace(‘ ‘, ‘%20’, $src[1]));
restore_error_handler();
if ($gis_error == ”) {
# Did image exist?
if ($size[0] && $size[1]) {
# check width
if (isset($width[1]) && ($width[1] <= $sfsigimagesize[‘sfsigwidth’] || $sfsigimagesize[‘sfsigwidth’] == 0)) {# width specified and less than max allowed
$display_width = ‘ width=”‘.$width[1].'”‘;
} elseif ($sfsigimagesize[‘sfsigwidth’] > 0 && $size[0] > $sfsigimagesize[‘sfsigwidth’]) {
$display_width = ‘ width=”‘.$sfsigimagesize[‘sfsigwidth’].'”‘;
}
Regards,
Ed