Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter getsited

    (@getsited)

    When debugging this I noticed System Tools wrongly reported the Uploads Folder didn’t exist (wp-content is hardcoded in to the test). Fixed with this update to system-status.php:

    <tr class="alt">
        <td class="row-title">Uploads Folder</td>
        <td>
            <?php
            $upload_dir = wp_upload_dir();
            if ( !is_dir( trailingslashit( $upload_dir['basedir'] ) . 'awesome-support' ) ) {
                if ( !is_writable( $upload_dir['basedir'] ) ) {
                    echo '<span class="wpas-alert-danger">' . __( 'The upload folder doesn\'t exist and can\'t be created', 'awesome-support' ) . '</span>';
                } else {
                    echo '<span class="wpas-alert-success">' . __( 'The upload folder doesn\'t exist but can be created', 'awesome-support' ) . '</span>';
                }
            } else {
                if ( !is_writable( trailingslashit( $upload_dir['basedir'] ) . 'awesome-support' ) ) {
                    echo '<span class="wpas-alert-danger">' . __( 'The upload folder exists but isn\'t writable', 'awesome-support' ) . '</span>';
                } else {
                    echo '<span class="wpas-alert-success">' . __( 'The upload folder exists and is writable', 'awesome-support' ) . '</span>';
                }
            }
            ?>
        </td>
    </tr>

    We use mod_rewrite caching but encountered a similar problem with the plugin not finding the cached home page when WordPress is installed in a sub-directory. Try updating line 726 in wp-cache.php from this:
    $home_path = parse_url( site_url() );
    to this:
    $home_path = parse_url( home_url() );

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