• Hello Frank,

    My site totally a blank white canvas when I enabled optimize JS Code and CSS Code.

    Please help me ASAP.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter coolyan

    (@coolyan)

    Warning Error:

    mod_fcgid: stderr: PHP Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers in wp-content/plugins/wp-realty/core/include/parse.inc.php on line 762

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, looks like an output buffer conflict with wp-realty @coolyan.

    don’t know the plugin (or theme), but check if there are minification-options in there you can disable.

    if not; taking into account that’s a premium plugin (a) I can’t test or look at the code (b) you’re entitled to premium support, so I’d suggest to contact the wp-realty developers?

    have a nice weekend,
    frank

    Thread Starter coolyan

    (@coolyan)

    Hello Frank,

    Can you help me to figure out, what is happening on this code:

    759 $req_php_tags = “#<\?php\s+(.*?)\?>#is”;
    760 if (preg_match_all($req_php_tags, $content, $match)) {
    761 for ($i = 0; $i < count($match[0]); $i++) {
    762 ob_start();
    763 @eval($match[1][$i]);
    764 $code = ob_get_clean();
    765 //ob_end_flush();
    766 $phpcode = str_replace(‘echo’, ‘return’, $match[1][$i]);
    767 //$code = eval($phpcode);
    768 $content = str_replace($match[0][$i], $code, $content);
    769 }
    770 }
    771 return $content;

    ob_start() php function is on line 762 where the error conflict output buffer with wp-realty plugin.

    Thanks.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Can’t pinpoint something specific, but that sure looks like cowboy-code to me; extracting PHP-code, executing that code (look at some of the warnings of using eval on the eval manual page) and re-injecting the result of the execution?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Autoptimze not loading html, css, js, and images’ is closed to new replies.