try this… open up the file memphis-documents.php comment out lines 74 to 79:
elseif (!is_numeric(stripos($_SERVER['REQUEST_URI'], '/feed'))) {
$message = sprintf('Premature output is preventing Memphis Documents Library from working properly. Outputs has started in %s on line %d.', $file, $line);
echo '<div style="border: 1em solid red; background: #fff; color: #f00; margin:2em; padding: 1em;">', htmlspecialchars($message), '</div>';
trigger_error($message);
die();
}
Thread Starter
George
(@trustgovernance)
Thanks for that suggestion. I tried that tonight but had to look up what ‘comment out’ means. I’ve placed /* before the text and */ after it so it reads as shown below. Hasn’t fixed the issue so I may not have commented out correctly.
/* elseif (!is_numeric(stripos($_SERVER[‘REQUEST_URI’], ‘/feed’))) {
$message = sprintf(‘Premature output is preventing Memphis Documents Library from working properly. Outputs has started in %s on line %d.’, $file, $line);
echo ‘<div style=”border: 1em solid red; background: #fff; color: #f00; margin:2em; padding: 1em;”>’, htmlspecialchars($message), ‘</div>’;
trigger_error($message);
die();
} */
I have a new version coming out soon that will try and address this issue. More than likely it will be out Monday or Tuesday of next week.
When you update to that version let me know what the results are.
Thread Starter
George
(@trustgovernance)
The latest update doesn’t seem to have resolved the issue so we’re rebuilding the website using a default WordPress theme.
-
This reply was modified 6 years, 6 months ago by
George.
let me know what the outcome is.
Thread Starter
George
(@trustgovernance)
I’ve reset my website and am beginning to rebuild using twenty seventeen theme and the only plugin active being Memphis Docs Lib.
I uploaded one test file. Download and Description both work but I’m still getting error messages in Preview. Any thoughts on where to go next to try to effect a fix?
if you still have that line commented out you should not receive that error at all. There is not other reference to that specific text in mdocs. Are you sure that you have commented out those lines.
here again is what it should look like.
/*
elseif (stripos($_SERVER['REQUEST_URI'], '/feed') === false) {
$message = sprintf('Premature output is preventing Memphis Documents Library from working properly. Outputs has started in %s on line %d.', $file, $line);
echo '<div style="border: 1em solid red; background: #fff; color: #f00; margin:2em; padding: 1em;">', htmlspecialchars($message), '</div>';
trigger_error($message);
//die();
}
*/