• Resolved moyarich

    (@moyarich)


    [Wed Mar 11 08:39:00.876207 2020] [php7:error] [pid 15988:tid 1208] [client 192.168.1.220:60972] PHP Parse error: syntax error, unexpected ‘<‘, expecting end of file in \wp-content\\plugins\\w3-total-cache\\PgCache_ContentGrabber.php(1869) : eval()’d code on line 1

    [Wed Mar 11 08:39:00.877204 2020] [php7:error] [pid 15988:tid 1208] [client 192.168.1.220:60972] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

    PHP version: 7.3.12

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @moyarich

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Have you made any changes after which that warning started?
    Are you using Page Fragment Cache? Have you recently installed or updated W3 Total Cache?
    Thank you!

    Thread Starter moyarich

    (@moyarich)

    The plugin is freaking out because of the page fragment syntax.

    Please if you work on the plugin — update the documentation on how to use it.

    There is incorrect information in it

    https://github.com/W3EDGE/w3-total-cache/wiki/FAQ:-Developers#how-do-i-implement-page-fragment-caching

    //—– works ——————————

    The security string has to come before the mfunc string

    
    <!-- <?php echo W3TC_DYNAMIC_SECURITY; ?> mfunc -->
    <?php 
    echo 'The time is '.date( 'H:i:s', time() );
    ?>
    <!--/mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> -->
    

    //—– does not work ——————–

    
    <!-- mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> -->
    <?php 
    echo 'The time is '.date( 'H:i:s', time() );
    ?>
    <!--/mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> -->
    
    • This reply was modified 5 years ago by moyarich.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @moyarich

    Thank you for the information.
    Just to confirm, after you made the changes you are not experiencing the PHP Parse error issue anymore?
    Thank you!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @moyarich

    Once again thank you for the information.
    We’ll look into the documentation.
    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘There is a bug – syntax error’ is closed to new replies.