• I just tried to update one of my sites from WP 3.0.3 to 3.0.4. Backed up the DB so I’m fine there, Clicked to do the automatic upgrade and got this Fatal Error message:

    Fatal error: Call to undefined function update_core() in /home/tendergr/public_html/wp-admin/includes/class-wp-upgrader.php on line 895

    I’ve already done this update on other sites with no issues. So why would I be getting this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try manually resetting your plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the Twenty Ten theme to activate and hopefully rule-out a theme-specific issue (theme functions can affect the Dashboard).

    If neither of those work, try downloading WordPress again and delete then replace your copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter databell96

    (@databell96)

    Well, I think I found some of the problems. Just not sure of the solutions. It seems to be when I switched themes in WP E-Commerce to one I created. When I attempted that, it screwed up a lot of stuff. The Template Path to anything on the site no longer worked. So things like search brought up errors instead of search boxes. Deactivating the plugins didn’t work because by then the damage was likely done. Switching the theme to TwentyTen did work. However, switching back to my theme (based on TwentyTen) did not. So there’s a bunch of issues going on here.

    iPage reported the following:

    I’ve set proper ‘session.save_path’ in the php.ini file for your account at: http://members.ipage.com/member/cgiManagement/PHPplus.bml , and now I’m receiving the following error while clicking on ‘Update’ button at: http://youripagesite.com/wp-admin/admin.php?page=wpsc-settings :
    Fatal error: Call to a member function submit_form() on a non-object in /hermes/bosweb/web038/b380/ipg.essentialchocolateco/wp-content/plugins/wp-e-commerce/wpsc-admin/ajax-and-init.php on line 1585

    So they’re finding errors too. But won’t fix them. I’m going to follow your lead and re-install WP to 3.0.4 and see what happens.

    Thread Starter databell96

    (@databell96)

    OK, I’ve got some updates. I deleted my install but not the DB. Kept the wp-config.php file too. I restarted with the base Twenty Ten theme and it was fine. Reinstalled WP E-Commerce and I’m still getting the 500 error on the products-page and I assume anything WPEC related.

    I then duplicated the TwentyTen theme and added the following code instead of the branding div as I had with the previous theme:

    <div id="site-top">
    <div id="site-search"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div>
    </div>

    Simple stuff. But make note of TEMPLATEPATH. This is one of the problems I’ve been experiencing.

    Reloaded and got the following errors:

    Warning: include(/hermes/bosweb/web038/b380/ipg.essentialchocolateco/wp-content/themes/essential/searchform.php) [function.include]: failed to open stream: No such file or directory in /hermes/bosweb/web038/b380/ipg.essentialchocolateco/wp-content/themes/essential/header.php on line 62

    Warning: include() [function.include]: Failed opening ‘/hermes/bosweb/web038/b380/ipg.essentialchocolateco/wp-content/themes/essential/searchform.php’ for inclusion (include_path=’.:/usr/local/lib/php-5.2.12/lib/php’) in /hermes/bosweb/web038/b380/ipg.essentialchocolateco/wp-content/themes/essential/header.php on line 62

    Guess what line 62 is?

    So it’s something to do with TEMPLATEPATH but no idea of the fix.

    Thread Starter databell96

    (@databell96)

    Hang on. I found this issue. There’s no such thing as a searchform.php page template in TwentyTen. Where is one, then?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error when trying to update to 3.0.4’ is closed to new replies.