Before you ask please READ THIS

PHP Fatal error: ThemeUpdateChecker::injectUpdate():

edited January 2013 in Hypershot Posts: 1
After installation and when this version was the newest all worked
When the update came out, wp-admin has stopped working

PHP Fatal error: ThemeUpdateChecker::injectUpdate(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "ThemeUpdate" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in wp-content/themes/hypershot/advance/inc/theme-update-checker.php on line 180

Hypershot v1.0.3
wordpress 3.5
Apache/2.2.15 (Unix)
php -v
PHP 5.3.19 (cli) (built: Nov 22 2012 07:17:55)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH

Comments

  • AirAir
    Posts: 10,970
    Hello.

    It is plugin we use for checking for theme updates. I have just read that it happens when one uses cache plugins. You can read same issue http://w-shadow.com/blog/2011/06/02/automatic-updates-for-commercial-themes/comment-page-4/#comment-206966

    You have two options - update to newest Hypershot version manually or fix current version.

    To fix current one:
    Under this link author provide patch http://1.shadowcdn.com/files/theme-updates-store-json.zip
    You will have to copy it to wp-content\themes\hypershot\advance\inc\theme-update-checker.php

    But it won't fix your theme right away probably cause first you will have to deactivate cache plugin(like explained in above comments in link). So we have to get to wp admin.

    Go to wp-content\themes\hypershot\advance\apollo13.php and delete lines from ~104-108:
            require_once (TPL_ADV_DIR . '/inc/theme-update-checker.php');
    $update_checker = new ThemeUpdateChecker(
    'hypershot',
    'http://apollo13.eu/themes_update/hypershot.json'
    );
    Now you should be able to get to Admin. After turning off cache plugin you can get this lines back :-)

    Now do what you wish.
    -------

    I will examine later what are differences between this patch file and version we use and decide is it ok to add it to update.

    Thanks for reporting!

    With regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion