WordPress.org

Ready to get started?Download WordPress

Forums

Quick Cache (Speed Without Compromise)
[resolved] QC syntax error, unexpected T_STRING (3 posts)

  1. BlogLadi
    Member
    Posted 9 months ago #

    I'm getting the white screen - turned on debug and got this message:

    syntax error, unexpected T_STRING..site info...//wp-content/advanced-cache.php on line 2

    here is the upper half of the file (not sure if line is starts from beginning or from beginning of code info)

    any help is MUCH appreciated.

    ---------
    <?php
    namespace quick_cache // Root namespace.
    {
    if(!defined('WPINC')) // MUST have WordPress.
    exit('Do NOT access this file directly: '.basename(__FILE__));

    /*
    * This file serves as a template for the Quick Cache plugin in WordPress.
    * The Quick Cache plugin will fill the %% replacement codes automatically.
    * e.g. this file becomes: /wp-content/advanced-cache.php.
    *
    * Or, if you prefer; you can set the PHP constants below in your /wp-config.php file.
    * Then, you could simply drop this file into: /wp-content/advanced-cache.php on your own :-)
    * ~ Be sure to setup a CRON job that clears your QUICK_CACHE_DIR periodically.
    */

    /*
    * Quick Cache configuration constants.
    * ----------------------------------------------------------------------------
    */
    /*
    * These work as boolean flags.
    */
    if(!defined('QUICK_CACHE_ENABLE')) define('QUICK_CACHE_ENABLE', '1');
    if(!defined('QUICK_CACHE_DEBUGGING_ENABLE')) define('QUICK_CACHE_DEBUGGING_ENABLE', '0');
    if(!defined('QUICK_CACHE_ALLOW_BROWSER_CACHE')) define('QUICK_CACHE_ALLOW_BROWSER_CACHE', '0');
    if(!defined('QUICK_CACHE_GET_REQUESTS')) define('QUICK_CACHE_GET_REQUESTS', '0');
    if(!defined('QUICK_CACHE_FEEDS_ENABLE')) define('QUICK_CACHE_FEEDS_ENABLE', '0');

    https://wordpress.org/plugins/quick-cache/

  2. Raam Dev
    Member
    Plugin Author

    Posted 9 months ago #

    Quick Cache require PHP v5.3+. Can you tell me what version of PHP you're running?

  3. BlogLadi
    Member
    Posted 9 months ago #

    Thought it was 5.5 - Double checked it, had to up it. thanks

Reply

You must log in to post.

About this Plugin

About this Topic