Forum Replies Created

Viewing 1 replies (of 1 total)
  • The link to the mikeyleung fix on the Woo Themes Support Forum is here:
    <a href="https://https://forum.woothemes.com/topic.php?id=10642"> but I think a password is required (members only). Not sure. (I am a member.)

    Actually, here are portions of the exchanges…hope this is ok to post. I’ve removed identities…so buyer beware

    ****************

    [excerpted from woo themes support forum]

    This problem has to do with the WooThemes Gazette theme and not the plugin. I had the same problem some months ago and ended up having to modify the header.

    After upgrading to the new version of the theme, I of course lost my header modifications and have the exact same problem on line seventy of the header.php.

    “Fatal error: Call to a member function get_var() on a non-object in …/ifcnews/wp-content/themes/gazette/header.php on line 70”

    If I recall how I solved it last time I will post here.

    [cont’d]

    The problem is with line 139 … it should now read:

    <?php global $wpdb; $cat = get_option('woo_video_category'); $GLOBALS[vid_cat] = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name='$cat'"); ?>

    instead of what goes with the theme:

    <?php $cat = get_option('woo_video_category'); $GLOBALS[vid_cat] = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name='$cat'"); ?>

    It is this error in the theme header.php file which is causing the get_var Fatal error.

Viewing 1 replies (of 1 total)