Comment on How to Update WordPress Themes by SEO Dave.

Stallion Responsive WordPress Theme I don’t know what causes this error, another customer had the same error.

I use the code from http://w-shadow.com/blog/2011/06/02/automatic-updates-for-commercial-themes/ with no modifications (other than adding the relevant theme data so it works) and have looked through the code for something to fix, but without being able to replicate the problem It’s difficult to find a fix.

Some errors are caused by other plugins being incompatible, this code is used by other commercial plugin/theme developers, maybe having a plugin you use uses this code and it’s causing a problem. Have you tried disabling plugins see if the issue is resolved? If you do find it’s a plugin let me know so I can look into it and find a fix.

For a short term solution you can update via FTP, use the latest zip file

Looking at what that line of code that’s causing the error (line 177) does it’s only activated when the theme has an update, updating via FTP will remove the error until the next update.

If you can’t solve the issue and error messages are getting in the way you could remove the update feature by editing the functions.php file. Delete the last line of code from the file (below is Stallion 7.0.1 code):

<?php if (is_user_logged_in()) { ?><?php include_once 'plugins/update.php'; $example_update_checker = new ThemeUpdateChecker('stallion-seo-theme','http://www.stallion-theme.com/updates/themes/stallion-seo-theme/info.json'); ?><?php } ?>

The above code is improved in Stallion 7.0.1, in Stallion 6.2 the update code was loaded all the time, in Stallion 7 it’s only loaded when a user is logged in. So your visitors won’t see any errors related to this code in Stallion 7+ even when you do (when logged in).

David