• Resolved ThorHammer

    (@thorhammer)


    What on earth? problems started last night when i wrote several pages stored as drafts. Suddenly, I could not get any more permalinks produced. And then it became impossible to save the pages.

    Later on my admin was just blank. Today I tried to log into my admin again, but all I got was a white screen. Nothing else, absolutely NO output, except the URL ico-file. I tried from several machines on several locations and with several browseres.

    I havent touched anything in the wp-admin folder. What on earth is this? Any suggestion??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-related problems?

    resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter ThorHammer

    (@thorhammer)

    But how do I deactivate the plugins when I cant reach my admin panel?
    And how do i switch theme from a blank screen?

    Thread Starter ThorHammer

    (@thorhammer)

    Can THIS code I added to the top of my functions php (the very top, before register sidebar) in order to exclude posts from one category at the front page:

    <?php
    function exclude_category($query) {
    if ( $query->is_home ) {
    $query->set('cat', '-32');
    }
    return $query;
    }
    add_filter('pre_get_posts', 'exclude_category');
    ?>
    Thread Starter ThorHammer

    (@thorhammer)

    Just to share with the community: My code over does as it should, but when it stood alone and closed with ?> followed by a ewgister sidebar call <?php ... it caused everything to hang and the screen to become blank. Letting the code above float together with the following code solved all problems.

    Will these lines not do for that purpose?

    <?php query_posts('cat=-xx'); ?>
    or
    <?php if (in_category('xx') && is_home() ) continue; ?>

    S.K

    Thread Starter ThorHammer

    (@thorhammer)

    I will test you code, kichu. Thanks for the advice!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Suddenly all became blank’ is closed to new replies.