Support » Plugin: Memphis Documents Library » LOST PREVIEW

  • Resolved George

    (@trustgovernance)


    I’m not sure when this problem started but we’ve lost Preview for our most recently loaded files. We get this message when we go to Preview. Website is library.ssiwatersheds.ca.

    about us<br /><div style=”border: 1em solid red; background: #fff; color: #f00; margin:2em; padding: 1em;”>Premature output is preventing Memphis Documents Library from working properly. Outputs has started in on line 0.</div>

Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Author bhaldie

    (@bhaldie)

    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();
    } */

    Plugin Author bhaldie

    (@bhaldie)

    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.
    Plugin Author bhaldie

    (@bhaldie)

    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?

    Plugin Author bhaldie

    (@bhaldie)

    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();	
    }
    */
    
Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘LOST PREVIEW’ is closed to new replies.