WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Error in wp-content/w3tc/min/index.php (1 post)

  1. llch
    Member
    Posted 1 year ago #

    I got this error when I access the minify script:

    W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove /var/srv/wordpress/wp-content/w3tc/min.

    When I check the generated index.php, I found out:
    `define('W3TC_DIR', realpath(dirname(__FILE__) . '/../plugins/w3-total-cache'));

    As the current path is /var/srv/wordpress/wp-content/w3tc/min, it is definitely wrong. It should be /../../plugins/w3-total-cache instead. Anyone encounter the same problem?

    My full wp-content/w3tc/min/index.php

    <?php

    /**
    * W3 Total Cache Minify module
    */
    define('W3TC_IN_MINIFY', true);

    if (! defined('ABSPATH')) {
    require_once dirname(__FILE__) . '/../../../wp-load.php';
    }

    if (! defined('W3TC_DIR')) {
    define('W3TC_DIR', realpath(dirname(__FILE__) . '/../plugins/w3-total-cache'));
    }

    if (! is_dir(W3TC_DIR) || ! file_exists(W3TC_DIR . '/inc/define.php')) {
    @header('X-Robots-Tag: noarchive, noodp, nosnippet');
    die(sprintf('W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove %s.', dirname(__FILE__)));
    }

    require_once W3TC_DIR . '/inc/define.php';
    require_once W3TC_DIR . '/lib/W3/Minify.php';

    $w3_minify = & W3_Minify::instance();
    $w3_minify->process();

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.