Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #19866

    Dear kriesi,

    I bought the replete theme, I intsalled it succesfully with woocomerce but when I activate the theme, the wp-admin down with 500 internal server error.

    Log file: [30-Jan-2013 09:47:28 UTC] PHP Fatal error: Class ‘WooCommerce_Widget_Cart_Kriesi’ not found in /mnt/stor4-wc1-dfw1/642340/www.bhcosmetics.hu/web/content/wp-includes/widgets.php on line 324

    Can you help me?

    #105325

    Now I tried to downgrade my wp to 3.4.2 but still 500 internal server error.

    #105326

    Please try following – open up wp-contentthemesrepleteconfig-woocommerceconfig.php and replace:

    register_widget( 'WooCommerce_Widget_Cart_Kriesi' );

    with:

    if(!is_admin()) register_widget( 'WooCommerce_Widget_Cart_Kriesi' );

    We included this code in the last theme update (v1.1 which we released recently). If this fix works for you I’ll ask Kriesi to include it in the next update.

    #105327

    Thanks, now working the admin, but every product page 500 error: http://bhcosmetics.hu/shop/variations-test-product/

    Log is same: [30-Jan-2013 13:43:01 UTC] PHP Fatal error: Class ‘WooCommerce_Widget_Cart_Kriesi’ not found in /mnt/stor4-wc1-dfw1/642340/www.bhcosmetics.hu/web/content/wp-includes/widgets.php on line 324

    #105328

    Ok, please revert the change and replace following code in config.php:

    class WooCommerce_Widget_Cart_Kriesi extends WooCommerce_Widget_Cart
    {
    function widget( $args, $instance ) {
    global $woocommerce;

    extract( $args );

    $title = apply_filters('widget_title', empty( $instance['title'] ) ? __('Cart', 'woocommerce') : $instance['title'], $instance, $this->id_base );
    $hide_if_empty = empty( $instance['hide_if_empty'] ) ? 0 : 1;

    echo $before_widget;

    if ( $title )
    echo $before_title . $title . $after_title;

    $woocommerce->mfunc_wrapper( 'woocommerce_mini_cart()', 'woocommerce_mini_cart', array( 'list_class' => $hide_if_empty ? 'hide_cart_widget_if_empty' : '' ) );

    echo $after_widget;

    if ( $hide_if_empty && sizeof( $woocommerce->cart->get_cart() ) == 0 ) {
    $woocommerce->add_inline_js( "
    jQuery('.hide_cart_widget_if_empty').closest('.widget').hide();
    jQuery('body').bind('adding_to_cart', function(){
    jQuery(this).find('.hide_cart_widget_if_empty').closest('.widget').fadeIn();
    });
    " );
    }
    }
    }

    with:

    class WooCommerce_Widget_Cart_Kriesi extends WP_Widget {

    var $woo_widget_cssclass;
    var $woo_widget_description;
    var $woo_widget_idbase;
    var $woo_widget_name;

    /**
    * constructor
    *
    * @access public
    * @return void
    */
    function WooCommerce_Widget_Cart_Kriesi() {

    /* Widget variable settings. */
    $this->woo_widget_cssclass = 'widget_shopping_cart';
    $this->woo_widget_description = __( "Display the user's Cart in the sidebar.", 'woocommerce' );
    $this->woo_widget_idbase = 'woocommerce_widget_cart';
    $this->woo_widget_name = __( 'WooCommerce Cart', 'woocommerce' );

    /* Widget settings. */
    $widget_ops = array( 'classname' => $this->woo_widget_cssclass, 'description' => $this->woo_widget_description );

    /* Create the widget. */
    $this->WP_Widget( 'shopping_cart', $this->woo_widget_name, $widget_ops );
    }

    function widget( $args, $instance ) {
    global $woocommerce;

    extract( $args );

    $title = apply_filters('widget_title', empty( $instance['title'] ) ? __('Cart', 'woocommerce') : $instance['title'], $instance, $this->id_base );
    $hide_if_empty = empty( $instance['hide_if_empty'] ) ? 0 : 1;

    echo $before_widget;

    if ( $title )
    echo $before_title . $title . $after_title;

    $woocommerce->mfunc_wrapper( 'woocommerce_mini_cart()', 'woocommerce_mini_cart', array( 'list_class' => $hide_if_empty ? 'hide_cart_widget_if_empty' : '' ) );

    echo $after_widget;

    if ( $hide_if_empty && sizeof( $woocommerce->cart->get_cart() ) == 0 ) {
    $woocommerce->add_inline_js( "
    jQuery('.hide_cart_widget_if_empty').closest('.widget').hide();
    jQuery('body').bind('adding_to_cart', function(){
    jQuery(this).find('.hide_cart_widget_if_empty').closest('.widget').fadeIn();
    });
    " );
    }
    }
    }

    This should fix the issue. I’ll ask Kriesi to include the fix in the next update.

    #105329

    Nothing. [30-Jan-2013 15:05:36 UTC] PHP Fatal error: Class ‘WooCommerce_Widget_Cart_Kriesi’ not found in /mnt/stor4-wc1-dfw1/642340/www.bhcosmetics.hu/web/content/wp-includes/widgets.php on line 324

    #105330

    Hi!

    Weird – please create me a wordpress admin account AND a ftp account and send me the account credentials to: (Email address hidden if logged out)

    Regards,

    Peter

    #105331

    I am having the exact same problem. If you find a fix can you please email me at (Email address hidden if logged out) . I am setting up my store with the basic theme at the moment, but would like to use the theme when it is fixed. All I get is white screen of death on my local development server when trying to activate the WooCommerce plugin.

    #105332

    I can confirm this is a pretty major issue as even on a new installation of wordpress, the same exact error message occurs. This is with new downloads of woocommerce and a fresh theme installation.

    WooCommerce version affected by this issue is: 1.6.6

    #105333

    If it helps for future development the theme is also broken with WooCommerce 2.0 at

    Fatal error: Class ‘WooCommerce_Widget_Cart’ not found in ~your-theme-folder/config-woocommerce/config.php on line 681

    #105334

    To fix the issue replace following code in wp-contentthemesrepleteconfig-woocommerceconfig.php:

    register_widget( 'WooCommerce_Widget_Cart_Kriesi' );
    class WooCommerce_Widget_Cart_Kriesi extends WooCommerce_Widget_Cart
    {
    function widget( $args, $instance ) {
    global $woocommerce;

    extract( $args );

    $title = apply_filters('widget_title', empty( $instance['title'] ) ? __('Cart', 'woocommerce') : $instance['title'], $instance, $this->id_base );
    $hide_if_empty = empty( $instance['hide_if_empty'] ) ? 0 : 1;

    echo $before_widget;

    if ( $title )
    echo $before_title . $title . $after_title;

    $woocommerce->mfunc_wrapper( 'woocommerce_mini_cart()', 'woocommerce_mini_cart', array( 'list_class' => $hide_if_empty ? 'hide_cart_widget_if_empty' : '' ) );

    echo $after_widget;

    if ( $hide_if_empty && sizeof( $woocommerce->cart->get_cart() ) == 0 ) {
    $woocommerce->add_inline_js( "
    jQuery('.hide_cart_widget_if_empty').closest('.widget').hide();
    jQuery('body').bind('adding_to_cart', function(){
    jQuery(this).find('.hide_cart_widget_if_empty').closest('.widget').fadeIn();
    });
    " );
    }
    }
    }

    with:

    add_action('widgets_init', 'register_kriesi_cart_widget');
    function register_kriesi_cart_widget() {
    register_widget( 'WooCommerce_Widget_Cart_Kriesi' );
    }

    class WooCommerce_Widget_Cart_Kriesi extends WP_Widget {

    var $woo_widget_cssclass;
    var $woo_widget_description;
    var $woo_widget_idbase;
    var $woo_widget_name;

    /**
    * constructor
    *
    * @access public
    * @return void
    */
    function WooCommerce_Widget_Cart_Kriesi() {

    /* Widget variable settings. */
    $this->woo_widget_cssclass = 'widget_shopping_cart';
    $this->woo_widget_description = __( "Display the user's Cart in the sidebar.", 'woocommerce' );
    $this->woo_widget_idbase = 'woocommerce_widget_cart';
    $this->woo_widget_name = __( 'WooCommerce Cart', 'woocommerce' );

    /* Widget settings. */
    $widget_ops = array( 'classname' => $this->woo_widget_cssclass, 'description' => $this->woo_widget_description );

    /* Create the widget. */
    $this->WP_Widget( 'shopping_cart', $this->woo_widget_name, $widget_ops );
    }

    function widget( $args, $instance ) {
    global $woocommerce;

    extract( $args );

    $title = apply_filters('widget_title', empty( $instance['title'] ) ? __('Cart', 'woocommerce') : $instance['title'], $instance, $this->id_base );
    $hide_if_empty = empty( $instance['hide_if_empty'] ) ? 0 : 1;

    echo $before_widget;

    if ( $title )
    echo $before_title . $title . $after_title;

    $woocommerce->mfunc_wrapper( 'woocommerce_mini_cart()', 'woocommerce_mini_cart', array( 'list_class' => $hide_if_empty ? 'hide_cart_widget_if_empty' : '' ) );

    echo $after_widget;

    if ( $hide_if_empty && sizeof( $woocommerce->cart->get_cart() ) == 0 ) {
    $woocommerce->add_inline_js( "
    jQuery('.hide_cart_widget_if_empty').closest('.widget').hide();
    jQuery('body').bind('adding_to_cart', function(){
    jQuery(this).find('.hide_cart_widget_if_empty').closest('.widget').fadeIn();
    });
    " );
    }
    }
    }

    #105335

    Hi, I instaled theme „Replete e-Commerce and Business” When I tried to instal the WooCommerce – eCommerce Shop plugin I have this mesage: Fatal error: Class ‘WooCommerce_Widget_Cart_Kriesi’ not found in /home/regiun92/public_html/deliafashion.ro/wp-includes/widgets.php on line 324

    I need to do what you explain above or somenting else? Thank you

    #105336

    Hey!

    Yes exactly, please follow the instructions I posted here: http://www.kriesi.at/support/topic/500-internal-server-error-1#post-94257

    Best regards,

    Peter

    #105337

    Works perfect with that fix. Thanks for the quick reply!

    #105338

    Hey!

    Great, glad that it worked :)

    Best regards,

    Peter

    #105339

    Dear kriesi,

    I am having an issue installing WooCommerce I am getting an error message:

    Downloading install package from http://downloads.wordpress.org/plugin/woocommerce.2.0.10.zip…

    Unpacking the package…

    Installing the plugin…

    Destination folder already exists. D:/Hosting/11224898/html/wp-content/plugins/woocommerce/

    Plugin install failed.

    Please instruct me to fix this problem.

    My email is (Email address hidden if logged out)

    bests,

    Gina

    #105340

    I’d use ftp in this case. Connect your ftp client to your server, then go to wp-content/plugins and delete the woocommerce folder. Then download http://downloads.wordpress.org/plugin/woocommerce.2.0.10.zip and unpack the file. Upload the uncompressed woocommerce into the wp-content/plugins directory.

Viewing 17 posts - 1 through 17 (of 17 total)

The topic ‘500 internal server error’ is closed to new replies.