WordPress.org

Forums

[resolved] Updating to 3.5 (6 posts)

  1. jhayn3s
    Member
    Posted 2 years ago #

    Hello,

    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 );
    }

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Try:
    - 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

  3. steve@whatstheidea.com
    Member
    Posted 2 years ago #

    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?

  4. 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.

  5. jhayn3s
    Member
    Posted 2 years ago #

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

  6. mjm22178
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic