This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 4 replies, has 2 voices.
Last updated by Osama Mersal 1 year, 9 months ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
September 9, 2023 at 10:19 pm #14370147 | |
jose-miguelP |
Hi, WPML worked fine with oxygen as far as pages were concerned but the Product page doesn't seem to load any translation in easy words except the default language version, in the other language versions, the products doesn't load it shows an error that I have attached in the uploaded image. |
September 11, 2023 at 5:47 am #14372725 | |
jose-miguelP |
PS: The site is developed using Oxygen / Woocommerce |
September 11, 2023 at 8:56 am #14373859 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. First of all, sorry for the late reply due to a higher workload. Please provide me with the WordPress debug.log; this will allow us to see if any PHP errors are being produced. (https://wordpress.org/support/article/debugging-in-wordpress/) To enable it, open your wp-config.php file and look for the following line: define('WP_DEBUG', false); And change it to: define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings, which is recommended on a live site. define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0); Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory. Best regards, |
September 11, 2023 at 10:26 am #14374849 | |
jose-miguelP |
Hi, here is the debug.log : https://pastebin.com/Cw3Y1vsz |
September 11, 2023 at 10:34 am #14374919 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, 1) Thanks for the debug log. The only fatal error in the log is related to Oxygen Builder. PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/components/classes/code-block.class.php(133) : eval()'d code:7 Stack trace: #0 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/components/classes/code-block.class.php(133): eval() #1 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(76): CT_Code_Block->add_shortcode() #2 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/components/classes/tab-content.class.php(47): do_oxygen_elements() #3 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(76): Oxy_Tab_Content->add_shortcode() #4 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/components/classes/tabs-contents.class.php(47): do_oxygen_elements() #5 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(76): Oxy_Tabs_Content->add_shortcode() #6 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(48): do_oxygen_elements() #7 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(76): CT_DIV_Block->add_shortcode() #8 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(48): do_oxygen_elements() #9 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(76): CT_DIV_Block->add_shortcode() #10 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen-woocommerce/elements/product-builder.php(108): do_oxygen_elements() #11 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/api/oxygen.element.class.php(138): Oxygen\WooElements\ProductBuilder->render() #12 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(76): OxygenElement->shortcode() #13 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/components/classes/section.class.php(70): do_oxygen_elements() #14 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(76): CT_Section->add_shortcode() #15 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/components/classes/section.class.php(70): do_oxygen_elements() #16 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(76): CT_Section->add_shortcode() #17 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(109): do_oxygen_elements() #18 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/includes/templates.php(183): ct_template_output() #19 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-includes/class-wp-hook.php(310): ct_templates_buffer_start() #20 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #21 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-includes/plugin.php(517): WP_Hook->do_action() #22 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/component-init.php(1218): do_action() #23 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-includes/class-wp-hook.php(310): oxy_print_cached_css() #24 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #25 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-includes/plugin.php(517): WP_Hook->do_action() #26 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-includes/general-template.php(3053): do_action() #27 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/oxygen-main-template.php(10): wp_head() #28 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-includes/template-loader.php(106): include('...') #29 /var/www/vhosts/hae.cl/v2.huellandina.com/wp-blog-header.php(19): require_once('...') #30 /var/www/vhosts/hae.cl/v2.huellandina.com/index.php(17): require('...') #31 {main} thrown in /var/www/vhosts/hae.cl/v2.huellandina.com/wp-content/plugins/oxygen/component-framework/components/classes/code-block.class.php(133) : eval()'d code on line 7 Please consult the Oxygen support team regarding this error. It might be a known error for them. 2) Please check if the issue persists in a minimal environment by following these steps. 1- Deactivate all the plugins except WPML CMS, String Translation, WooCommerce, WooCommerce Multilingual, and Oxygen builder main plugin without add-ons. If the issue is gone, activate them one by one to see which one is causing an interaction issue. ❌ Please backup your database before performing the above test ❌ Best regards, |