WordPress.org

Support

Support » How-To and Troubleshooting » WordPress 3.5 – Error on Line 944

WordPress 3.5 – Error on Line 944

  • I’ve just downloaded WordPress 3.5 and am getting the following error on all pages of my website (including wp-admin):

    Fatal error: Call to a member function register_handler() on a non-object in /websites/123reg/LinuxPackage21/ig/ma/ns/igmansfield.co.uk/public_html/wordpress/wp-includes/media.php on line 944

    Can anyone help? I’ve tried doing a manual upgrade but with no result.

    Thank you!

Viewing 15 replies - 1 through 15 (of 39 total)
  • Make sure :

    1. Your Webhost is running the required version of PHP.
    2. You have deactivated Cache Plugins, specially related to Database cache.
    3. You have deleted the cache.

    Got a different error on mine. Automatic install of 3.5 screwed everything up, totally.

    Re-installed 3.4.2 and it seems to be fine. Might be the only viable solution for now.

    Think I’ll wait for the inevitable 3.51 or 3.6 and all the bugs are ironed out.

    I installed 3.5 for my friend just few hours ago, its working fine :

    http://flinton.in/

    The domain and installation is new.
    I honestly got no error on update on mine. I was using 3.5 RC though on all production site except 1-2. There might be some plugin incompatibility, because I never keep any plugin active.

    Thanks for the replies. I’ve tried reinstalling 3.4.2 but the error remains.

    Abhishek – how do I do the things you suggest?

    I have exactly the same error as igmansfield.

    Fatal error: Call to a member function register_handler() on a non-object in /home/myusername/domains/mydomain.com/public_html/wp-includes/media.php on line 944

    I upgraded from 3.4.2 to 3.5 using the WordPress updater.

    I use PhP 5.3.10 and MySql 5.5.22 and Apache 2.2.22

    Before upgrading I made a copy. When I re-installed backup it still returns errors.

    I’m kinda stuck right now.

    I have the exact same error, no back up fixes it, no backwards re-install fixes it. I have yet to re-install the previous database.

    Please advise us as soon as possible what this error means. It is not a MYSQL or any other update issue as far as I can tell.

    – R

    I have the exact same error, no back up fixes it, no backwards re-install fixes it. I have yet to re-install the previous database.

    Please advise us as soon as possible what this error means. It is not a MYSQL or any other update issue as far as I can tell.

    Fatal error: Call to a member function register_handler() on a non-object in /homepages/42/d384486456/htdocs/chemtrailsfactorfiction/wp-includes/media.php on line 944

    – R

    I get a almost similar error except on line 903

    Warning: Invalid argument supplied for foreach() in /home/bodosp85/public_html/pocketdroid.net/wp-includes/media.php on line 903

    Line 903: foreach ( $taxonomy->object_type as $object_type ) {

    I updated 10 sites and only one didn’t take.

    Fatal error: Call to a member function register_handler() on a non-object in D:\Hosting\4363600\html\blog\wp-includes\media.php on line 944

    I did not deactivate plugins as instructed, which may be causing issue, and now I’ve locked myself out.

    I believe this is my only WP site hosted on GoDaddy. If any one finds a fix, please come back here and post your find.

    FIXED!!
    1. I commented out lines 942-944 and 1073-1076 in wp-includes/media.php
    2. This gave me access to admin side of site, where I deactivated ALL plugins.
    3. I re-installed WP 3.5
    4. Reactivated plugins and now all is clean.

    Nice BNwilson, you cheeky coder!

    Thank you for sharing your solution!

    Yeah, my error was on 1 and 1 hosting which is equally challenging as Godaddy somtimes.

    Can you show us the lines you commented out precisely and how you coded it <snippet>?

    I would like to offer you a favor to use any one of my applications for free for some time, on me – this line helped me so much! Contact us any time at theme zoom dot com.

    – Russell

    Thank you, bnwilson!!

    Although I have still other issue after following your direction, I can access to dashboard finally!!!

    This is my lines:
    942-945
    /* function wp_embed_register_handler( $id, $regex, $callback, $priority = 10 ) {
    global $wp_embed;
    $wp_embed->register_handler( $id, $regex, $callback, $priority ) ;
    } */

    1073-1077
    /* function wp_maybe_load_embeds() {
    if ( ! apply_filters( ‘load_default_embeds’, true ) )
    return;
    wp_embed_register_handler( ‘googlevideo’, ‘#http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)#i’, ‘wp_embed_handler_googlevideo’ );
    }*/

    After those corrections,
    I’ve got this error message on my pages:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘wp_maybe_load_embeds’ was given in /home/a4527299/public_html/wp-includes/plugin.php on line 406

    BNWilson,

    Just wanted more clarification on how to do this.

    I updated all of my WordPress sites to 3.5 and now I can’t even get into my control panel through the admin login. I did it though the Simple Scripts updater for all of my sites on Bluehost.

    The error message for every site reads:

    Server error
    The website encountered an error while retrieving http://www.242.org/. It may be down for maintenance or configured incorrectly.
    Here are some suggestions:
    Reload this webpage later.
    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

    I get a almost similar error except on line 903

    Warning: Invalid argument supplied for foreach() in /home/zks/public_html/zelfklusshop.nl/wp-includes/media.php on line 903

    Line 903: foreach ( $taxonomy->object_type as $object_type ) {

    I’m seeing it is in my template.. becouse when i use the new twentytwelve it is solved. But what to do in this situation?

    If using any member’s unofficial method works its well and good and you are lucky.

    Those who are still having issues, I will suggest to go back to the old last working version, that is 3.4.x for the most manually. Take a backup : Table by table SQL backup from PHPMyAdmin after optimizing the overheads plus the wp-content and important FTP files / folders.

    Test the backup in a test server by installing a new WP 3.4.2 (i.e. same version) and deleting and replacing the important Tables and FTP files. Do not activate any plugin. As on localhost we have the physical machine in hand we practically can test the backend visually. Now try to update to 3.5. It will probably take a database update (I am almost sure for some reason the problem happens in SQL update process and with cPanel, Plesk like webhosting control panel, another third party thing is in between and both are in new version and has bugs). Now take the backup and install on live server 3.5 freshly by deleting everything and installing 3.5. Restore the backup carefully (do not replace all th files).

    Those who have less idea about which SQL tables are important, read my old answer : http://wordpress.org/support/topic/migration-to-plesk-gone-wrong?replies=2#post-3506688

    Those who need a blank server for some reason (with IP only, no control panel, have to work with command line; can use HP Cloud or Rackspace Unmanaged as both has hourly charge).
    Also you can check with hotfix plugin – http://wordpress.org/extend/plugins/hotfix/
    (sounds bad like hotfix for Microsoft’s most products, its difficult to say from the ratings whether it works, there is predominantly 5 star and 1 star).

    For 500 Error (LAMP server) check the php error log file. You can search this forum with 500 Error.

Viewing 15 replies - 1 through 15 (of 39 total)
  • The topic ‘WordPress 3.5 – Error on Line 944’ is closed to new replies.