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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | - |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
Tagged: Compatibility, Go Global Application
This topic contains 0 replies, has 0 voices.
Last updated by Waqas Bin Hasan 1 day, 3 hours ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
January 9, 2025 at 7:15 am | |
shilos |
Background of the issue: Symptoms: Questions: |
January 9, 2025 at 7:55 am | |
January 9, 2025 at 7:56 am #16576291 | |
shilos |
Shall we continue here? |
January 9, 2025 at 8:01 am #16576297 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Reference to our recent chat, I've enabled debugging in your site. I installed WP File Manager plugin for easy access to files and added following to your site's wp-config.php file: define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); Then I placed an order at hidden link (in English language checkout page), which produced a 500 Internal Server Error as below: PHP Fatal error: Uncaught TypeError: array_reduce(): Argument #1 ($array) must be of type array, string given in /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woo-pelecard-gateway/includes/Gateway.php:411 Stack trace: #0 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woo-pelecard-gateway/includes/Gateway.php(411): array_reduce() #1 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woo-pelecard-gateway/includes/Gateway.php(423): Pelecardwc\Gateway->get_custom_payment() #2 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woo-pelecard-gateway/includes/Api.php(48): Pelecardwc\Gateway->get_maximum_payments() #3 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woo-pelecard-gateway/includes/Gateway.php(1036): Pelecardwc\Api::get_checkout_iframe_url() #4 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/class-wp-hook.php(324): Pelecardwc\Gateway->receipt_page() #5 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #6 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woocommerce/templates/checkout/order-receipt.php(44): do_action() #8 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...') #9 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(245): wc_get_template() #10 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(61): WC_Shortcode_Checkout::order_pay() #11 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output() #12 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper() #13 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/shortcodes.php(434): WC_Shortcodes::checkout() #14 [internal function]: do_shortcode_tag() #15 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #16 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/checkout.php(4324): do_shortcode() #17 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2366): ElementorPro\Modules\Woocommerce\Widgets\Checkout->render() #18 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(636): Elementor\Controls_Stack->render_by_mode() #19 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(775): Elementor\Widget_Base->render_content() #20 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Widget_Base->print_content() #21 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor/modules/element-cache/module.php(73): Elementor\Element_Base->print_element() #22 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/shortcodes.php(434): Elementor\Modules\ElementCache\Module->Elementor\Modules\ElementCache\{closure}() #23 [internal function]: do_shortcode_tag() #24 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #25 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor/core/base/document.php(1865): do_shortcode() #26 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor/core/base/document.php(1200): Elementor\Core\Base\Document->print_elements() #27 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor/includes/frontend.php(1209): Elementor\Core\Base\Document->print_elements_with_wrapper() #28 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/elementor/includes/frontend.php(1104): Elementor\Frontend->get_builder_content() #29 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/class-wp-hook.php(324): Elementor\Frontend->apply_builder_in_content() #30 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #31 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/post-template.php(256): apply_filters() #32 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/themes/hello-elementor/template-parts/single.php(25): the_content() #33 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/template.php(812): require('...') #34 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/template.php(745): load_template() #35 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/general-template.php(206): locate_template() #36 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/themes/hello-elementor/index.php(21): get_template_part() #37 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-includes/template-loader.php(106): include('...') #38 /home/tourw1bw/domains/tourplus.co.il/public_html/wp-blog-header.php(19): require_once('...') #39 /home/tourw1bw/domains/tourplus.co.il/public_html/index.php(17): require('...') #40 {main} thrown in /home/tourw1bw/domains/tourplus.co.il/public_html/wp-content/plugins/woo-pelecard-gateway/includes/Gateway.php on line 411 As you can see that error is pointing to woo-pelecard-gateway plugin and in the above mentioned error dump, there's no mentioning of any WPML plugins. Since the "Woo Pelecard Gateway" is not compatible with WPML (https://wpml.org/plugin/). I recommend you to contact the plugin author and request a compatibility update. WPML offers very useful information for developers aiming to make their themes/plugins compatible. Please see https://wpml.org/documentation/support/ and https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/ for details. Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well. Please feel free to return with any technical information from their plugin support, if you or they think is needed to be done on our side. We'd love to take care of that. Regards. |
January 9, 2025 at 8:37 am #16576553 | |
shilos |
I will check with them and let you know |
January 9, 2025 at 8:49 am #16576616 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Sure, please take your time and feel free to reply when you're ready. |
January 9, 2025 at 9:53 am #16576892 | |
shilos |
The problem is because he tried to translate Flachard's iframes, or generally both plugins together? |
January 9, 2025 at 10:29 am #16577007 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
My apologies for not understanding your recent message. Can you please explain more about it? |
January 9, 2025 at 10:45 am #16577092 | |
shilos |
I'm asking if we will turn off some of the add-on's functions, so maybe it won't get stuck together? |
January 9, 2025 at 12:02 pm #16577535 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
I'm really not sure which addon you're referring to, as I'm not sure about the "Woo Pelecard Gateway" plugin's working. If you can provide some detailed insights, we can look into that. Have you also checked with the plugin author by providing theme the error details (as mentioned earlier)? |