Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Justin Sainton

    (@justinsainton)

    Hi yourgoal,

    The fatal error listed on your website seems to reference your theme, not our plugin.

    I was able to track down your theme to this URL -> http://www.theme-junkie.com/themes/channel/

    I downloaded the theme and tracked down the specific line in functions.php that seems to be causing it – it is as follows:

    echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');

    The get_category_parents function does indeed return a WP_Error object when it fails. It’s failing right now because the is_single() check is passing as true, but they assume that any post type that is singular will also have the category taxonomy, which is a faulty assumption. You could modify the code here any number of ways (and I’d recommend emailing the theme provider and suggesting they do so). But for this specific error, simply adding && has_category() should be sufficient to monkey patch this for now.

    To do that, you’d change Line 274 in functions.php to the following:

    } elseif ( is_single() && has_category() ) {

    Thread Starter yourgoal

    (@yourgoal)

    Hi,

    Thank you Justin, it cleared the problem

    But I am stuck as mentioned below.

    I am creating an online store for selling of vegetables and the price should change as per the quantity selected.

    I have entered the required details in variations. But there is no change in the front end.

    For example: Say a user selects 1000 Grams for purchasing of Onions and the price does not change below the quantity. However it changes in the cart.

    Can you please help me on how I can show the price of the product for the quantity selected.

    2) After the product is added to the cart, the button next to the product is shown as “submit”, please let me know where I can change this to “delete”

    Edward

    (@edwardinstinct)

    Would you mind switching to a default wordpress theme such as 2010 – 2014 for a moment so I can observe the site using a default theme.

    Be sure after switching to default theme to go to the Store Settings and click the “Presentation” tab on that page click “CLEAR THEME CACHE”

    Please let me know when you have done this.

    Regards
    Edward

    Plugin Author Justin Sainton

    (@justinsainton)

    Edward’s got you on the right track. Your theme is loading jQuery 1.4.3, instead of using WordPress’s default jQuery script. This is going to break a LOT of things.

    Around Line 181 in your theme, you’ll want to remove these two lines:

    wp_deregister_script( 'jquery' );
    
    		wp_enqueue_script('jquery', get_bloginfo('template_url').'/js/jquery.min.js', true, '1.4.3');

    That said – this theme is garbage and I’d highly recommend finding a different one.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Getting Fatal error:’ is closed to new replies.