• Fatal error: Call to undefined function: get_admin_page_title() in /home/bgsand/public_html/blog/wp-admin/admin-header.php on line 12

    I have 2 blogs – one is just fine – this one is completely messed up and I now cannot even access my admin page – the above message is what I get when I try to get to it –

Viewing 15 replies - 1 through 15 (of 23 total)
  • It looks like some of your files didn’t get uploaded properly. Try reuploading the files again.

    Thread Starter bgsand

    (@bgsand)

    oh my gosh this is a huge mess! I have uploaded my files again – and still can’t get into admin –

    .and if you want more help, youre going to need to provide more details, and perhaps the url to the blog.

    Thread Starter bgsand

    (@bgsand)

    url is https://www.bgsdesign.com/blog

    Everything was fine until I upgrded to 2.2 – then the theme looked completely messed up – at first I thought somehow the style sheet (which i had modified) got replaced – when reuploading it didn’t work, I tried to change themes –

    after going through about 4 or 5 different themes, I could suddenly no longer access the admin – got that fatal error message (above).I haven’t been able to access the admin page since then.

    go in with an ftp client – delete this file:

    wp-admin/admin-functions.php

    then reupload a fresh copy out of the wordpress 2.2 zip

    If you dont see 1. upload it

    Thread Starter bgsand

    (@bgsand)

    still no go …

    ok, now do this:

    go in with your ftp client, and download this file to your desktop, or edit one out of the wordpress 2.2 zip

    wp-admin/admin-header.php

    I want you to open it with a text editor, like notepad.

    On the 11, 12 and 13th lines you will find this:

    }

    get_admin_page_title();

    ?>

    I want you to comment out or remove:

    get_admin_page_title();

    you can comment it out by doing this:

    //get_admin_page_title();

    then upload the newly edited file, so that the one with the edit is on your server. Try to login after you have done that.

    Thread Starter bgsand

    (@bgsand)

    Ok, getting closer – i get to the dashboard – at least it looks like the dashboard – the top blue headers –

    but i get this message:
    Fatal error: Call to undefined function: get_admin_page_parent() in /home/bgsand/public_html/blog/wp-admin/menu-header.php on line 6

    oke, now youre going to edit wp-admin/menu-header.php

    On line 6 is the following

    get_admin_page_parent();

    comment that out.

    //get_admin_page_parent();

    Im going along and testing this on my own 2.2 install and making sure that your navigation wont break as you do this..

    this is not something you really want to do btw.. so dont take my advice to mean that everytime you come across this sort of error, that this is the solution.

    Its much better to figure out the cause of the error, rather than arbitrarily remove function calls.

    Thread Starter bgsand

    (@bgsand)

    OK – here’s the message:

    Warning: Invalid argument supplied for foreach() in /home/bgsand/public_html/blog/wp-admin/menu-header.php on line 8

    I also get this message under the blue header bars (where the usual admin content would be):

    No Sidebars Defined

    You are seeing this message because the theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.

    ok, we are going to back up here, because you have other things going on.

    I located another problem:

    click this link:

    https://www.bgsdesign.com/blog/wp-content/

    You apparantly followed the upgrade instructions and didnt delete your wp-content folder?

    Thread Starter bgsand

    (@bgsand)

    when I followed that link, I got this message:
    Hacked By System-RooT
    Artyk Herkes Hakkettieini Alacak , A?yklarinizi Kapatin Yoksa Yletisime Ge?in !!

    H4XPL0R3R – C3h3nn3m – System-RooT

    https://WwW.System-Hackers.Us NUMBER ONE !
    [email protected]

    No, i did not delete my wp-content folder when I followed the upgrade instructions – didn’t have any instructions to do that. I upgraded from Fantastico on my cpanel –

    this is what I reccomend that you do..

    with your ftp client. cd into wp-content/plugins/ and download EVERY plugin you are using to a folder to your desktop

    Youve then got a backup of all your plugins.

    Then go back into your ftp client, and delete EVERY plugin and plugin folder in that same directory.

    Youve essentially disabled EVERY plugin by doing that.

    After youve done that — cd into wp-content/themes/ and download your themes similarily to how you did with the plugins.

    Then..

    I suggest that you systematically delete EVERYHTHING inside wp-content/
    wp-admin/
    wp-includes/

    additionally delete and then re-upload all of the core wp files inside blog

    except for directories that might contain images.

    DO NOT delete your wp-config.php

    Then upload fresh files out of the WordPress 2.2 zip. Including the files inside wp-content/

    There are two themes in there.. you will want to upload them.

    I realize this is a pain in the ass, but since we see that your wp-content directory has been compromised, its the safest thing to do. It also alleviates the issue of having broke plugins or a broke theme breaking other things.

    the link you are following is telling you that your site has been compromised, hence my instructions in the previous post.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘fatal error after upgrade to 2.2’ is closed to new replies.