• Resolved wph4

    (@wph4)


    Hi,

    upgrading a site. it took a long time and looks like it was frozen.

    now I can not access wp-admin. it gives me this error

    Fatal error: Call to undefined function wp_removable_query_args() in MYSITE/wp-admin/includes/misc.php on line 900

    How to solve it?

    Thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter wph4

    (@wph4)

    this is the line 900

    $removable_query_args = wp_removable_query_args();

    I have a site with the italian version on it. I have also wpml plug in and already made the english version of the site, that is not yet visible to public.
    Yesterday I tried to upgrade the site to 4.4 italian version. It took a long time and than after the maintainance period it was not upgraded.
    Fortunately, the site afte a while reappeared and apparently has no problems, but it was not upgraded to 4.4 version. Currently there is a link to upgrade to version 4.4, but only in English. How do I reactivate the link for updating it in Italian and try again? I am not so espert to do it manually, I fear to do it.
    If I upgrade to the english version what can happens ? My site is in Italian, the english is only one translation and I have to add other languages.
    Pls help me.
    Sonia

    Thread Starter wph4

    (@wph4)

    Hi sscacc,

    I am not that technical, that’s why I am asking for help.

    if it is too much to do I will think abouot bringing yesterday backup back.

    Cheers!

    Getting many errors after updating to 4.4. Changes to the site pages take forever. Really, really slow now after latest update.

    The problem is how can I bring back to the old back up. I use as back up the plugin updraft plus but I have never restore a back up. Before doing it and may be destroy everything I would like to see if there is another solution,
    thanks wph4

    Hi, had the same problem and looked at a back up of my old misc.php file.
    I don’t know much about php but the difference in the files in the last function at 900 was easy to spot.

    using an FTP program (filezilla) I edited the misc.php and replaced the last function with the fuction below. Just make copy and paste. Ensure to leave the last two line after </script>.

    I have no idea what effect this has on other things but it got me back to my dashboard. I looks like just the defintions of the array was missing.

    function wp_admin_canonical_url() {
    $removable_query_args = array(
    ‘message’, ‘settings-updated’, ‘saved’,
    ‘update’, ‘updated’, ‘activated’,
    ‘activate’, ‘deactivate’, ‘locked’,
    ‘deleted’, ‘trashed’, ‘untrashed’,
    ‘enabled’, ‘disabled’, ‘skipped’,
    ‘spammed’, ‘unspammed’,
    );

    /**
    * Filter the list of URL parameters to remove.
    *
    * @since 4.2.0
    *
    * @param array $removable_query_args An array of parameters to remove from the URL.
    */
    $removable_query_args = apply_filters( ‘removable_query_args’, $removable_query_args );

    if ( empty( $removable_query_args ) ) {
    return;
    }

    // Ensure we’re using an absolute URL.
    $current_url = set_url_scheme( ‘https://&#8217; . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’] );
    $filtered_url = remove_query_arg( $removable_query_args, $current_url );
    ?>
    <link id=”wp-admin-canonical” rel=”canonical” href=”<?php echo esc_url( $filtered_url ); ?>” />
    <script>
    if ( window.history.replaceState ) {
    window.history.replaceState( null, null, document.getElementById( ‘wp-admin-canonical’ ).href + window.location.hash );
    }
    </script>

    UPDATE: I know see that 4.4 failed to update. Think I will wait for 4.5 before going any further.

    Stuartfisher do you think that I can wait for 4.5. Can I have any problem not to upgrade to 4.4 ?

    s

    Thread Starter wph4

    (@wph4)

    Hi,

    I still donot have an answer to my error.

    Can someone help on this?

    To the others…

    Would you please open a new thread for your questions?
    It is now difficult to know why this thread was open…

    Thanks!

    Thread Starter wph4

    (@wph4)

    to the @forum @moderators.

    Is it possible to split messages to new threads. So we can separate different issues?

    Thanks!

    got the same error, and needed restore the website from backup.
    Is something wrong with that upgrade?

    Thread Starter wph4

    (@wph4)

    @martix79

    I donot know much further.

    Maybe it was something with the webhosting. I really donot know.

    Because no one came with an answer I have restored backup. Later again I have upgraded it with no errors at all.

    Cheers!

    Hmmm… I was able upgrade one website, other as I said get the error. Both of them at the same host.

    Thread Starter wph4

    (@wph4)

    first upgrade gave me the error.

    After backup back I have upgraded it again. no problems at all.
    It looks like it was temporarily a problem with server. Exactly by the first upgrade…. donot know… ??

    Thanks, I’ll try again in the while

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘upgrading to 4.4 gave me this error’ is closed to new replies.