• Resolved pourbrew

    (@pourbrew)


    I edited .htaccess for a 301 redirect correctly and all appeared to be well. I could sign in, edit files, the site renders fine. However, the other super admin to the site cannot sign in, nor can I update posts.
    The .htaccess file looks like this:

    # BEGIN WordPress
    # redirect www to non-www
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.degrees2dreams\.com
    RewriteRule (.*) http://degrees2dreams.com/$1 [R=301,L]
    # end redirect
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . /index.php [L]
    
    # END WordPress

    Running multisite w/path-based sites. http://degrees2dreams.com/

    Thoughts?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    However, the other super admin to the site cannot sign in, nor can I update posts.

    But you can log in?

    Start with plugins. Turn ’em all off.

    Thread Starter pourbrew

    (@pourbrew)

    I can log in.

    Shall I just deactivate or should I delete them all out and reinstall?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Normall I’d say rename the plugins folder to plugins-old, but you didn’t say what the error was (just ‘not loading’ which isn’t an error – usually browsers give some sort of error).

    You could try flipping the .htaccess back to the basic:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . /index.php [L]
    Thread Starter pourbrew

    (@pourbrew)

    I’ll work the plugins method first.

    There is no error message when post.php doesn’t load, it’s just a white screen.

    Many thanks and kudos on the Half-Elf-ness; I aspire to that.

    Thread Starter pourbrew

    (@pourbrew)

    Alright, so I disabled all the plugins as you suggested (plugins-old) and post.php still doesn’t load after I attempt to write/edit a post & update.

    wp-admin.php doesn’t load either (white screen), I’m signed in already so I don’t have to input my credentials, but anyone not signed in can’t access that page to sign in.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    A white screen is a PHP error (which is terribly vague sometimes).

    Do you have access to your error logs? If so, look and see if you have anything showing up for the posts?

    http://degrees2dreams.com/wp-admin/ fails but http://degrees2dreams.com/wp-login.php works … O.O

    You don’t have anything in the mu-plugins folder, do you?

    Thread Starter pourbrew

    (@pourbrew)

    Resetting .htaccess to its original state did not appear to change anything.

    No mu-plugins folder that I can find.

    Turned on debug logging and here’s what came up:

    https://docs.google.com/document/pub?id=1tGBieXhbLgnKUC1DYq6ABB-9wt5UXEmLiD5bxpecUYU

    Thread Starter pourbrew

    (@pourbrew)

    A little more information as I crank through possibilities.

    All the blogs in the multisite work fine and there are no white screen errors. Only on the main blog (located at the multisite root) do white screen errors happen.

    Where white screen errors do occur, the action is performed, the page just doesn’t render. So, for example, when I post a new post I get a white screen, but the post itself still posts.

    I ran a better debug and came up with these errors:

    WARNING: wp-includes/functions.php:924 – Cannot modify header information – headers already sent by (output started at /mnt/stor12-wc2-dfw1/597084/630172/www.degrees2dreams.com/web/content/wp-content/themes/pureFizzy/functions.php:408)

    WARNING: wp-includes/functions.php:3513 – Cannot modify header information – headers already sent by (output started at /mnt/stor12-wc2-dfw1/597084/630172/www.degrees2dreams.com/web/content/wp-content/themes/pureFizzy/functions.php:408)

    WARNING: wp-admin/admin-header.php:9 – Cannot modify header information – headers already sent by (output started at /mnt/stor12-wc2-dfw1/597084/630172/www.degrees2dreams.com/web/content/wp-content/themes/pureFizzy/functions.php:408)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well that’s ‘good’ – makes it look like a theme error with PureFizzy.

    Pop open that file and see if there are blank lines out site of the <?php... lines.

    Thread Starter pourbrew

    (@pourbrew)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    At the very end… Change this:

    <?php }
    add_action ('wp_footer', 'load_slabtext');
    ?>

    to this

    <?php }
    add_action ('wp_footer', 'load_slabtext');

    Yes, I know what I just said 🙂 You don’t need the end.

    Thread Starter pourbrew

    (@pourbrew)

    done.

    still encountering the same problems. the debug says something is up w/line 415?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Headers Already Sent is a common PHP error and the line/file don’t always matter.

    What’s at issue here is that you have a PHP file with whitespace outside the php calls.

    Check your wp-config.php

    Also did ytou make any plugin/theme changes recently?

    Thread Starter pourbrew

    (@pourbrew)

    Ah, I thought it was just that file. Will broaden my search. We’ve been changing all sorts of files, so I’ll parse it out the files.

    Haven’t made any plugin changes, but many theme changes.

    Many thanks for all your help. I’ll post when I’ve found it.

    Thread Starter pourbrew

    (@pourbrew)

    Found it! A few empty spaces right at lines 406 and 486 in functions.php in the theme file. Many thanks for all your help.

    This FAQ in the codex helped greatly as well, once you ID’d the error for me:

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘post.php not loading, users can't sign in after .htaccess changes’ is closed to new replies.