• Hi Frederick,
    I’m trying to use the function mclude (<!– mclude path/to/file.php –><!– /mclude –>) but, I’m getting blank pages.

    The function works on the first page load, but dies from the second load.

    The error_log says:
    16-Dec-2010 21:11:45] PHP Parse error: syntax error, unexpected '<' in /home/xxxxxxxxxx/public_html/wp-content/plugins/w3-total-cache/lib/W3/PgCache.php(1337) : eval()'d code on line 1

    I’m using WordPress 3.0.1 and W3TC 0.9.1.3.
    Page Cache basic is enable. only enabled Database Cache and Page Cache.

    Thank you very much for your help

    http://wordpress.org/extend/plugins/w3-total-cache/

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

    (@gokobox)

    Update:
    Well, none of the methods (mfunc or mclude)mentioned by Frederick in the FAQ work.
    Even with a minimum of code as an echo rand ();
    Ex: <!-- mfunc echo rand(); --><!-- /mfunc -->
    work on the first page load but show blank pages to refresh.

    <!-- mfunc -->echo rand();<!-- /mfunc -->
    shows echo rand();

    I prefer mclude but does not work.
    Does anyone use fragment caching? Does it work?

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Indeed, it works for people I’ve spoken to. Can you submita bug submission form from the support tab of the plugin?

    Thread Starter gokobox

    (@gokobox)

    Thank you, i’ll do it.

    Update: I think I found the problem.
    I’m trying to use a function from a plugin that queries the database. But to place this function in a mclude or mfunc, everything works on the first load page. When deleting the browser caché and reloading the page, this die showing a blank page.

    How I can make queries to the database using mfunc or mclude? Is this possible?

    Thank you

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Are you sure that the function actually returns in every case? Checking for the cache occurs before other plugins are loaded.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: W3 Total Cache] Blank pages’ is closed to new replies.