Title: Getting Fatal error:
Last modified: August 22, 2016

---

# Getting Fatal error:

 *  Resolved [yourgoal](https://wordpress.org/support/users/yourgoal/)
 * (@yourgoal)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/getting-fatal-error-6/)
 * Hi,
 * I installed this plugin and when I click on the product, I am getting the below
   mentioned error.
 * Request you to kindly help me
 * my website url is [http://www.itsmybangalore.com/ecommerce/product/vegetables/onions/](http://www.itsmybangalore.com/ecommerce/product/vegetables/onions/)
 * [https://wordpress.org/plugins/wp-e-commerce/](https://wordpress.org/plugins/wp-e-commerce/)

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

 *  Plugin Author [Justin Sainton](https://wordpress.org/support/users/justinsainton/)
 * (@justinsainton)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/getting-fatal-error-6/#post-5175300)
 * 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/](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](https://wordpress.org/support/users/yourgoal/)
 * (@yourgoal)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/getting-fatal-error-6/#post-5175310)
 * 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](https://wordpress.org/support/users/edwardinstinct/)
 * (@edwardinstinct)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/getting-fatal-error-6/#post-5175321)
 * 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](https://wordpress.org/support/users/justinsainton/)
 * (@justinsainton)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/getting-fatal-error-6/#post-5175322)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-e-commerce_ebebeb.svg)
 * [WP eCommerce](https://wordpress.org/plugins/wp-e-commerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-e-commerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-e-commerce/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-e-commerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-e-commerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-e-commerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Justin Sainton](https://wordpress.org/support/users/justinsainton/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/getting-fatal-error-6/#post-5175322)
 * Status: resolved