WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme causing reloading problems in admin environment (11 posts)

  1. talvitie
    Member
    Posted 2 years ago #

    Background:
    I've developed a new theme which works locally perfectly. I am experiencing problems after I've uploaded the theme to my server.

    Problem:
    I have problems reloading admin page after I have made a change that requires data to be sent to the database. Data is saved but the page doesn't reload, it leaves me with an empty page. The reload usually freezes in pages like /wp-admin/post.php, /wp-admin/profile.php or /wp-login.php?action=logout&_wpnonce=0c8419c2a7.

    Exception is logging out which does not work.

    Tried solutions:

      Manually reinstalled WordPress.
      A new database
  2. talvitie
    Member
    Posted 2 years ago #

    Forgot to mention one thing. The problem could be related to a plugin but I have deleted it.

  3. rughooker
    Member
    Posted 2 years ago #

    I've recently run into the same problem. No solution yet, but if I strip the url in the address bar back to just website.com/wp-admin I can get back to the admin page. When I visit whatever page caused the problem, I see that it "took", it got messed up finding its way back to the updated page only.

    It's a frustration, but at least I am up and running.

    I'm having problems with Bluehost and throttling - a term I didn't even know until a few weeks ago. Never saw it on the throttled site but after a fresh install with the latest WP it showed up.

  4. Josylad
    Member
    Posted 2 years ago #

    I am experiencing the same too with my themes and most plugins too. I think they should find a fix for this as soon as possible. am tired of all these bugs

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    @talvitie: 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 Twenty Eleven theme to rule out any theme-specific problems.

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

  6. Josylad
    Member
    Posted 2 years ago #

    I have uninstalled all plugins, i even uninstalled my wordpress but its still hapening. i cant even use a theme, am stuck with the default theme and my admin panel is not loading

    [Don't bump. And try posting your own topic instead of interrupting another poster's thread.]

  7. talvitie
    Member
    Posted 2 years ago #

    I had to search with different keywords and I've found some other posts with similar problems. I think I'm close to a solution. The problem seems to be related to the theme's functions.php file, something to do with empty spaces.

  8. talvitie
    Member
    Posted 2 years ago #

    Yes! So, the key is to avoid empty spaces from the bottom, top and middle. I had several <?php ?> tags in my functions.php file and I made one big PHP tag where I moved all the code. This solved everything and no more blank screens!

  9. Mr.NoComment
    Member
    Posted 2 years ago #

    SOLVED
    Thank you "talvitie" you got it.
    I may just make it more clear from my case:

    My theme's functions.php was like this..

    <?php
    // my original php code
    ?>
    // empty line that caused the problem
    <?php
    // another php code in a new tag
    ?>

    I just removed that empty line and the caused became as follows..

    <?php
    // my original php code
    ?>
    <?php
    // another php code in a new tag
    ?>

  10. thunderdunk
    Member
    Posted 2 years ago #

    I'm having this same issue, but am still a bit confused as to the solution--

    The empty lines Mr NoComment is referring to, are they actually commented lines with //, html, or just blank space inside/outside a php tag?

    I was looking at talvitie's solution and I can't just put my whole file inside one blanket php tag since I have all my loops and custom content types in the functions.php file.

    I'll check again, but it looks like all my php tags were properly opened and closed--am I missing something?

    Didn't have this problem til I updated to WP 3.3.1

  11. Mr.NoComment
    Member
    Posted 2 years ago #

    The idea is simple don't make empty lines BETWEEN open and closed php tags ,,
    the comments here "//" just to refer to the lines causing the problem

Topic Closed

This topic has been closed to new replies.

About this Topic