У этого пользователя нет любимых тем.
Любимые темы форума
Созданные темы форума
Статус |
Тема
|
Сторонник | Голоса | Посты | Свежесть |
---|---|---|---|---|---|
WCML Custom Prices error when purchasing a membership product
Started by: rayaA
in: English Support
Problem: WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 3 for query SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE meta_key IN ('_price', '_regular_price', '_sale_price', '_price_ILS', '_regular_price_ILS', '_sale_price_ILS') AND post_id IN () made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Stripe_UPE_Payment_Gateway->process_payment, WC_Stripe_UPE_Payment_Gateway->process_payment_with_deferred_intent, WC_Stripe_UPE_Payment_Gateway->process_payment_with_payment_method, WC_Stripe_Payment_Gateway->process_response, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_processing'), WP_Hook->do_action, WP_Hook->apply_filters, wc_update_total_sales_counts, do_action('woocommerce_recorded_sales'), WP_Hook->do_action, WP_Hook->apply_filters, WCML_Synchronize_Product_Data->sync_product_total_sales, WC_Data_Store->__call, WC_Product_Data_Store_CPT->update_product_sales, WC_Data_Store_WP->update_lookup_table, WC_Product_Data_Store_CPT->get_data_for_lookup_table, get_post_meta, get_metadata, get_metadata_raw, apply_filters('get_post_metadata'), WP_Hook->apply_filters, WCML_Multi_Currency_Prices->product_price_filter, WPMLFP{closure}, call_user_func_array, WPMLFPLogic::WPMLFP{closure}, WCML_Multi_Currency_Prices->{closure}, WCML_Custom_Prices->get_product_custom_prices Solution: /wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-custom-prices.php , update line 109 from: if ( ! empty( $product_meta['_min_variation_price'] ) ) { to: if ( ! empty( $product_meta['_min_variation_price'] ) && ( is_array( $product_meta['_min_variation_price'] ) && is_numeric( $product_meta['_min_variation_price'][0] ) ) ) { This change should resolve the SQL error and allow the Stripe subscription to be created correctly. If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket. |
|
0 | 16 | 1 день, 15 часов назад | |
Split: PHP Deprecated optional parameter $post_translations declared
Started by: rayaA
in: English Support
Problem: Deprecated: Optional parameter $post_translations declared before required parameter $wpdb is implicitly treated as a required parameter in /wp-content/plugins/woocommerce-multilingual/inc/class-wcml-products.php on line 33 Solution: Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum. |
|
0 | 4 | 1 день, 15 часов назад | |
Email aligment is inccorect in WooCommerce mail sent to admin
Started by: rayaA in: English Support |
|
1 | 9 | 1 месяц, 2 недели назад | |
apply_filters hook will not translate a string from a foreign language into the website’s defulat l…
Started by: rayaA
in: English Support
Problem: wpml_translate_single_string hook in WPML, but it fails to translate into the website's default language (English), while it successfully translates into Russian. wpml_translate_single_string hook does not translate into the default language because WPML assumes the string in the default language is the original value and does not store translations for it. To retrieve a translation based on the current language, use the default language string as the source and pass the current language as the target: $current_lang = apply_filters('wpml_current_language', null);<br />$translated = apply_filters('wpml_translate_single_string', 'Subject en', 'admin_texts_woocommerce_new_order_settings', '[woocommerce_new_order_settings]subject', $current_lang);<br />error_log($translated); This method uses the default language string ('Subject en') as the source, and WPML looks up the appropriate translation for the current language. For further understanding, you might find these guides helpful:
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly suggest checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum: WPML Support Forum. |
|
0 | 3 | 2 месяца назад | |
Product image should be same for translated products
Started by: rayaA
in: English Support
Problem: If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML Support Forum. |
|
0 | 4 | 3 месяца, 1 неделя назад | |
URLs are being translated
Started by: rayaA
in: English Support
Problem: Solution:We requested the client to update the pages and it's translations which fixed the issue. If this solution seems outdated or not applicable to your case, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum. |
|
0 | 3 | 4 месяца назад | |
Translations are working only when «Auto register strings for translation»
Started by: rayaA
in: English Support
Problem: This solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum for further assistance. |
|
0 | 3 | 5 месяцев, 2 недели назад | |
I would like to know if the bug correction was included in your latest version
Started by: rayaA in: Chat Support |
|
0 | 2 | 5 месяцев, 4 недели назад | |
Internal Server Error
Started by: rayaA
in: English Support
Problem: add_filter('mod_rewrite_rules', 'fix_rewritebase');<br />function fix_rewritebase($rules){<br /> $home_root = parse_url(home_url());<br /> if ( isset( $home_root['path'] ) ) {<br /> $home_root = trailingslashit($home_root['path']);<br /> } else {<br /> $home_root = '/';<br /> }<br /> <br /> $wpml_root = parse_url(get_option('home'));<br /> if ( isset( $wpml_root['path'] ) ) {<br /> $wpml_root = trailingslashit($wpml_root['path']);<br /> } else {<br /> $wpml_root = '/';<br /> }<br /> <br /> $rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules);<br /> $rules = str_replace("RewriteRule . $home_root", "RewriteRule . $wpml_root", $rules);<br /> <br /> return $rules;<br />} 3. Re-save the permalinks from the Settings >> Permalinks page by pressing the Save Changes button. If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum. |
|
0 | 3 | 6 месяцев, 2 недели назад | |
WooCommerce Email Verification to user aligned incorrectly
Started by: rayaA
in: English Support
Problem: wpml_switch_language_for_email hook to adjust the language settings for your emails. More details on this hook can be found here: https://wpml.org/wpml-hook/wpml_switch_language_for_email/ Additionally, you can modify the email template directly. Open the file at .../wp-content/plugins/wc-multivendor-membership/views/emails/email-verification.php . Replace the existing WooCommerce email header action with a new block that switches the language context based on the user's email. Here's the code you should use: // Workaround for compsupp-7719 // Workaround for compsupp-7719 // Switch language context if( apply_filters( 'wcfm_allow_wpml_email_translation', true ) ) { do_action('wpml_switch_language_for_email', $user_email); } ?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?/>" /> <meta content="width=device-width, initial-scale=1.0" name="viewport"/> <title><?php echo get_bloginfo( 'name', 'display' ); ?></title> </head> <body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"> <table width="100%" id="outer_wrapper"> <tr> <td><!-- Deliberately empty to support consistent sizing and layout across multiple email clients. --></td> <td width="600"> <div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>"> <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> <tr> <td align="center" valign="top"> <div id="template_header_image"> <?php $img = get_option( 'woocommerce_email_header_image' ); if ( $img ) { echo '<p style="margin-top:0;"><img src="' . esc_url( $img ) . '" alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" /></p>'; } ?> </div> <table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_container"> <tr> <td align="center" valign="top"> <!-- Header --> <table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_header"> <tr> <td id="header_wrapper"> <h1 style="text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>"><?php echo esc_html( $email_heading ); ?></h1> </td> </tr> </table> <!-- End Header --> </td> </tr> <tr> <td align="center" valign="top"> <!-- Body --> <table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_body"> <tr> <td valign="top" id="body_content"> <!-- Content --> <table border="0" cellpadding="20" cellspacing="0" width="100%"> <tr> </tr></table></td></tr></table></td></tr></table></td></tr></table></div></td></tr></table></body></html> Ensure to set the text alignment in the HTML body of the email template to respect the left or right text direction based on the language context. At the end of the file, add the following code to switch the language back: <?php // switch language back if( apply_filters( 'wcfm_allow_wpml_email_translation', true ) ) { do_action('wpml_restore_language_from_email'); } ?> If this solution does not resolve your issue or seems irrelevant due to updates or differences in your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket at WPML support forum for further assistance. |
|
3 | 9 | 7 месяцев, 1 неделя назад | |
Split: try to translate with CTE, it shows nothing to translate and "NaN% Complete"
Started by: rayaA in: English Support |
|
2 | 9 | 8 месяцев, 2 недели назад | |
Split: There are 6 versions of the template "Single Posts"
Started by: rayaA
in: English Support
Problem: If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket for further assistance at WPML support forum. |
|
2 | 4 | 8 месяцев, 3 недели назад | |
Fully translated page is blank
Started by: rayaA
in: English Support
Problem: Solution: Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem continues, please do not hesitate to open a new support ticket at our support forum. |
|
2 | 8 | 8 месяцев, 4 недели назад | |
«current-menu-item» class is missing in secondary language
Started by: rayaA
in: English Support
Problem: current-menu-item is not being appended to the menu item in the navigation block of the page that is currently being viewed in a secondary language, this might be due to incorrect post IDs in the translated menu. wp_posts table in your database for the menu ID and verifying the record. You should ensure that the post IDs match the translated IDs. Here is an example of what you might see and how to correct it: <!-- wp:navigation-link {"label":"Post A – es ","type":"post","id":66,"url":"https://your-site.com/es/2024/09/15/post-a-es/","kind":"post-type"} /--> This ID should be updated to the correct translated post ID, like so: <!-- wp:navigation-link {"label":"Post A – es ","type":"post","id":72,"url":"https://your-site.com/es/2024/09/15/post-a-es/","kind":"post-type"} /--> After making these changes, the menu should work correctly in the secondary language. If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket at WPML support forum. |
|
2 | 9 | 9 месяцев, 3 недели назад | |
Can’t access second page in translation queue
Started by: rayaA
in: English Support
Problem: UPDATE `{wpdbPrefix}_icl_translation_status` SET `status` = 1 WHERE `status` = 2; Make sure to replace {wpdbPrefix} with your table prefix. It's crucial to back up your database and website before proceeding. If you're unsure how to run the SQL query, please contact your hosting support for assistance. If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket. |
|
2 | 7 | 10 месяцев назад |