Support » Fixing WordPress » Updating to 3.5

  • Resolved jhayn3s



    When updating my site to 3.5 I received this error that read :

    Fatal error: Call to a member function register_handler() on a non-object in *Path to web address and line*

    I navigated to my media.php folder where the problem was called out and the error derived from this line:

    $wp_embed->register_handler( $id, $regex, $callback, $priority );

    My site was not able to be viewed when it was active. I commented it out until I can determine how to fix it. Is there an error in syntax that I can correct? I will post the full string below. Any help is appreciated. Media.php Lines 936-944
    (Inside wp-includes)
    * 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 );

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi


    Forum Moderator

    – switching to the Twenty Twelve 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 – 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

    I updated to the new version of WordPress and can;t find the publish button. Or the tags field.

    I also get this warning: Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/82/4845082/html/wp-content/themes/tarski/library/helpers/admin_helper.php on line 302 and defined in /home/content/82/4845082/html/wp-includes/wp-db.php on line

    Anyway to fix it or revert to the previous version of WordPress?

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Steve, Please start your own thread so that the issue can be properly tracked and responded to, instead of posting in somebody else’s thread. Thanks.

    This resolved my issue. Thank you very much for your promptness

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Updating to 3.5’ is closed to new replies.