• I found a bug that belongs to RTL but not only.

    I had a problem that I solved, in link from the home page to the product
    (https://www.my-site.com/product/my-product).
    Instead of relating to the product, is linked to translate the word.
    “product” ==> translate “product” ==> error link

    Then I found the following comment:

    Malfunction at 3rd party Plugin detected!
    Name: WooCommerce | Author: WooThemes
    Below listed scripts has been automatically stripped because of injection:
    https://my-site/shop/wp-content/plugins/woocommerce/assets/js/admin/woocommerce_notices.min.js

    Compatibility: Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.

    ————————-

    also I found this error in the error_log file:

    [19-Mar-2015 13:54:34 UTC] PHP Fatal error: Cannot redeclare storefront_widgets_init() (previously declared in /../../public_html/my-site/shop/wp-content/themes/storefront/inc/functions/setup.php:98) in /../../public_html/my-site/shop/wp-content/themes/storefront/inc/functions/setup.php on line 131

    ————————–

    I would be happy if you write to me if there’s anything I can do about it.
    I hope you find the source of the problem and fix up the next version, there will be no further problems.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, for the WooCommerce report, you can open an issue on github: https://github.com/woothemes/woocommerce

    The Storefront error is strange. That function is definitely only declared once. Try re-uploading the theme.

    Thread Starter healiny

    (@healiny)

    I did re-uploading the theme and it did not help.
    I did not understand where I can open an issue on github
    On this link misunderstood
    https://github.com/woothemes/woocommerce

    Thread Starter healiny

    (@healiny)

    I find the bug in file – woocommerce.php
    in this function:

    ——————-

    public function load_plugin_textdomain() {
    $locale = apply_filters( ‘plugin_locale’, get_locale(), ‘woocommerce’ );

    if ( $this->is_request( ‘admin’ ) ) {
    load_textdomain( ‘woocommerce’, WP_LANG_DIR . ‘/woocommerce/woocommerce-admin-‘ . $locale . ‘.mo’ );
    load_textdomain( ‘woocommerce’, WP_LANG_DIR . ‘/plugins/woocommerce-admin-‘ . $locale . ‘.mo’ );
    }

    load_textdomain( ‘woocommerce’, WP_LANG_DIR . ‘/woocommerce/woocommerce-‘ . $locale . ‘.mo’ );
    load_plugin_textdomain( ‘woocommerce’, false, plugin_basename( dirname( __FILE__ ) ) . “/i18n/languages” );
    }

    ———————

    I repalced the “load_textdomain” with “load_plugin_textdomain”
    Otherwise there are serious problems in translation.

    Now I still have issue,
    How to transfer the file to the child theme, that the changes will not be lost in the next update?

    You can open an issue here: https://github.com/woothemes/woocommerce/issues/new

    How to transfer the file to the child theme, that the changes will not be lost in the next update?

    You can only do this with core template files (archive.php, single.php, content.php etc).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I found a bug that belongs to RTL’ is closed to new replies.