WordPress.org

Ready to get started?Download WordPress

Forums

Manage Files Page is blank (4 posts)

  1. Mitron
    Member
    Posted 8 years ago #

    Hello,

    After having a bit of difficulties getting mod_rewrite working properly, I've run into another problem. When I go to Site Admin -> Manage -> Files I get a blank page, no error or anything just a blank white page in IE.

    My site is hosted on a Windows 2000 server running PHP 5.1.1 Apache 2.2.0 and MySQL 5.0.18. Install went fine and I can seem to do everything except for the Manage Files link.

    Any ideas on this one? I did a search, read most, if not all the documentation and even checked the forums here but so far it doesn't look like anyone else is having this problem.

    Please help. :)

  2. Mitron
    Member
    Posted 8 years ago #

    Ok, an update.

    After checking the error log, I'm seeing the following:

    PHP Parse error: parse error, unexpected '}' in ...wordpress\\wp-admin\\templates.php on line 164, referer: .../wordpress/wp-admin/edit.php

    Any help here would be appreciated. :)

  3. Mitron
    Member
    Posted 8 years ago #

    BTW, I was able to fix this problem. It seems there are a number of PHP echo statements that are missing the ; at the end of the line. I also noticed a <? instead of <?php on two of the lines.

    Simply adding the semi-colon to the end of the echo statements and changing the <? to <?php seemed to fix the problem.

    This I assume has something to do with the default configuration of Apache 2.2.0 or PHP 5.1.1 on Windows as it doesn't seem others are having this issue.

    Here are the changes I made in order to allows templates.php to load:

    wp-admin/templates.php

    FIND (lines 88-91)
    <div id="message" class="error"><?php _e('Could not save file.') ?>
    </div>
    <? else: ?>
    <div id="message" class="updated fade"><?php _e('File edited successfully.') ?>
    </div>
    <?endif; ?>

    CHANGE TO
    <div id="message" class="error"><?php _e('Could not save file.'); ?>
    </div>
    <?php else: ?>
    <div id="message" class="updated fade"><?php _e('File edited successfully.'); ?>
    </div>
    <?php endif; ?>

    FIND (line 123)
    <li><a href="templates.php?file=<?php echo $common_file?>"><?php echo get_file_description($common_file); ?></a></li>

    CHANGE TO
    <li><a href="templates.php?file=<?php echo $common_file; ?>"><?php echo get_file_description($common_file); ?></a></li>

    FIND (line 129)
    <div><textarea cols="70" rows="25" name="newcontent" id='newcontent' tabindex="1"><?php echo $content ?></textarea>

    CHANGE TO
    <div><textarea cols="70" rows="25" name="newcontent" id='newcontent' tabindex="1"><?php echo $content; ?></textarea>

    FIND (line 131)
    <input type="hidden" name="file" value="<?php echo $file ?>" />

    CHANGE TO
    <input type="hidden" name="file" value="<?php echo $file; ?>" />

    FIND (line 151)
    <h2><?php _e('Other Files') ?></h2>

    CHANGE TO
    <h2><?php _e('Other Files'); ?></h2>

    FIND (line 153)
    <?php _e('To edit a file, type its name here. You can edit any file <a href="http://codex.wordpress.org/Changing_File_Permissions" title="Read more about making files writable">writable by the server</a>, e.g. CHMOD 666.') ?>

    CHANGE TO
    <?php _e('To edit a file, type its name here. You can edit any file <a href="http://codex.wordpress.org/Changing_File_Permissions" title="Read more about making files writable">writable by the server</a>, e.g. CHMOD 666.'); ?>

    FIND (line 156)
    <input type="submit" name="submit" value="<?php _e('Edit file &raquo;') ?>" />

    CHANGE TO
    <input type="submit" name="submit" value="<?php _e('Edit file &raquo;'); ?>" />

    FIND (line 159)
    <?php _e('Note: of course, you can also edit the files/templates in your text editor of choice and upload them. This online editor is only meant to be used when you don’t have access to a text editor or FTP client.') ?>

    CHANGE TO
    <?php _e('Note: of course, you can also edit the files/templates in your text editor of choice and upload them. This online editor is only meant to be used when you don’t have access to a text editor or FTP client.'); ?>

  4. Mitron
    Member
    Posted 8 years ago #

    Wow, I can't beleive I'm the only one that had this problem. Could it be I just had a bad download or is it more akin to my server configuration?

    Just curious as I would expect more people would be seeing this issue arise when installing the latest release. I just now downloaded the latest version and the problem still exists.

    Thanks,

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags