Forums

[resolved] Weirdest Admin problem (caused by Theme) (9 posts)

  1. Begin
    Member
    Posted 7 months ago #

    I have a theme that I made of a really big site (teachers index),
    and it has a weird admin behavior:

    For exemple, when I add a new category, after I fill the details for the category
    and press "add category" button it doesn't add the category and make
    the new category filleds blank again like it suppose to, unless I do a refresh
    to the page.

    The same is happening with post's custom fields when I add new ones,
    and with a few other things...

    The thing is I know the problem is caused by my theme cause when I
    change to wordpress default theme this admin functions work fine again,
    but I have no idea what is wrong in the theme that does that....

    I really need to solve that some how because it also damage some important
    plug-ins functionality.

    I will really appreciate if some one could try to think of a reason that
    could cause this behavior.

    Thank's!

  2. keesiemeijer
    moderator
    Posted 7 months ago #

    The obvious place to look is in your functions.php Maybe you're loading javascript that conflicts with WordPress.

    Try adding categories with javascript turned of in your browser.
    Try backing up your functions.php and deleting all code from it.

  3. Begin
    Member
    Posted 7 months ago #

    thank's keesiemeijer!

    It does solve the problem when I delete all my functions content,
    but I don't have any javascript in there...

    can you take a look at this, and check if you see something
    that you think that can cause that problem?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thank you very much!!!

  4. keesiemeijer
    moderator
    Posted 7 months ago #

    Please paste the code in a pastebin, submit it and give us a link back here.

  5. Begin
    Member
    Posted 7 months ago #

    http://pastebin.com/YfZNcGgg

    Sorry, didn't know that rule..

  6. keesiemeijer
    moderator
    Posted 7 months ago #

    Try it with this functions.php: http://pastebin.com/ZMTvV9tw

  7. Begin
    Member
    Posted 7 months ago #

    Wow, just those "?>+" made all this mess !!!

    Thank you very very very much!!!

    You just made my day!

    Thank you so much keesiemeijer!

  8. keesiemeijer
    moderator
    Posted 7 months ago #

    It probably was the space or newline between the php tags. That sometimes causes problems. Glad you got it resolved.

  9. Begin
    Member
    Posted 7 months ago #

    I'm glad you got it resolved ! :-)

Reply

You must log in to post.

About this Topic