WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to a member function register_handler(). Help?! (4 posts)

  1. notshyofthediy
    Member
    Posted 7 months ago #

    Hi

    I just updated to the latest version of word press after having an outdated version for some time, i cannot access my site or wpadmin either now and just get the following error messege

    Fatal error: Call to a member function register_handler() on a non-object in /home/notshyof/public_html/wp-includes/media.php on line 1304

    any help would be appreciated, thanks!

    1296-1305 is as follows

    /**
     * Register an embed handler. This function should probably only be used for sites that do not support oEmbed.
     *
     * @since 2.9.0
     * @see WP_Embed::register_handler()
     */
    function wp_embed_register_handler( $id, $regex, $callback, $priority = 10 ) {
    	global $wp_embed;
    	$wp_embed->register_handler( $id, $regex, $callback, $priority );
    }
  2. esmi
    Forum Moderator
    Posted 7 months ago #

    Try:
    - switching to the default theme by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

    - resetting the plugins folder by FTP or phpMyAdmin.

    - re-uploading all files & folders - except the wp-content folder and the wp-config.php & root .htaccess files - from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    - running the upgrade manually via wp-admin/upgrade.php

  3. notshyofthediy
    Member
    Posted 7 months ago #

    thanks, have tried switching to default as i saw that in the previous topic. resetting plugins didnt seem to work either

    as for re-uploading all my files and folders, there is no option to upload folders only individual files one at a time through cpanel.

    i cant access wpadmin to upgrade manually.

    is there anything else i could try?

  4. WPyogi
    Volunteer Moderator
    Posted 7 months ago #

    as for re-uploading all my files and folders, there is no option to upload folders only individual files one at a time through cpanel.

    if Cpanel won't work well, set up and use FTP to access your site files - ask your hosts for your FTP access info and see:

    http://codex.wordpress.org/FTP_Clients

Reply

You must log in to post.

About this Topic

Tags

No tags yet.