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.
Tagged: Exception
This topic contains 6 replies, has 2 voices.
Last updated by Waqas Bin Hasan 1 year, 8 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
March 30, 2023 at 5:01 pm #13369241 | |
nasserA-3 |
Tell us what you are trying to do? Is there any documentation that you are following? Is there a similar example that we can see? What is the link to your site? |
March 30, 2023 at 8:50 pm #13370375 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. Can you enable debugging on your site? See https://wpml.org/documentation/support/debugging-wpml/ for details. Once enabled, browse the page(s) with the said issue a few times. This will log the errors in the debug.log file which you can upload somewhere and share the download link for investigation. Further, can you try by only activating the necessary plugins (other than WPML) and see if error is still there? IMPORTANT: Take full backup of your website and database beforehand. Please let me know and I'll try my best to further assist you on the matter. Regards. |
March 31, 2023 at 12:00 pm #13375539 | |
nasserA-3 |
Hello Waqas, Thank you for your response. I have created a staging website and activated debugging as you requested. This is the debug log Then I have disabled all plugins except for WPML, Avada core, Avada builder and WP event Manager. The issue is not fixed as you can see. This is the content of wp-event-manager-functions.php file from line 1196 to 1283 Waiting for your reply. Best regards, |
March 31, 2023 at 1:59 pm #13376491 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for the debug log. But I don't see any mention of an error about a WPML plugin. Is this the complete log? I can see only 18 lines of an error and its trace: [31-Mar-2023 11:47:48 UTC] PHP Fatal error: Uncaught ArgumentCountError: 159 arguments are required, 1 given in /.../wp-content/plugins/wp-event-manager/wp-event-manager-functions.php:1280 Stack trace: #0 /.../wp-content/plugins/wp-event-manager/wp-event-manager-functions.php(1280): printf() #1 /.../wp-content/plugins/wp-event-manager/templates/event-filters.php(90): event_manager_dropdown_selection() #2 /.../wp-content/plugins/wp-event-manager/wp-event-manager-template.php(46): include('...') #3 /.../wp-content/plugins/wp-event-manager/shortcodes/wp-event-manager-shortcodes.php(779): get_event_manager_template() #4 /.../wp-includes/shortcodes.php(355): WP_Event_Manager_Shortcodes->output_events() #5 [internal function]: do_shortcode_tag() #6 /.../wp-includes/shortcodes.php(227): preg_replace_callback() #7 /.../wp-includes/class-wp-hook.php(308): do_shortcode() #8 /.../wp-includes/plugin.php(205): WP_Hook->apply_filters() #9 /.../wp-includes/post-template.php(255): apply_filters() #10 /.../wp-content/themes/Avada/page.php(24): the_content() #11 /.../wp-includes/template-loader.php(106): include('...') #12 /.../wp-blog-header.php(19): require_once('...') #13 /.../index.php(17): require('...') #14 {main} thrown in /.../wp-content/plugins/wp-event-manager/wp-event-manager-functions.php on line 1280 Can you provide the full debug log file? Regards. |
April 1, 2023 at 11:54 am #13380931 | |
nasserA-3 |
Hello Waqas, This is the whole log. There is no mention of an error about a WPML plugin but the error only occur in the translated (Arabic) page of the events The error does not show on the English (Default) events page. Thank you for your support. Best regards, |
April 5, 2023 at 2:56 am #13405301 | |
nasserA-3 |
Hello Waqas, I used the Sandbox you sent me and I was not able to reproduce the issue. Then I changed the PHP version on my website from PHP 8.0 to PHP 7.4 and the PHP Fatal error is gone. Does that mean the plugin don't support PHP 8 ? Thank you for your support. Best regards, |
April 5, 2023 at 4:37 pm #13412481 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for the updates. Yes it looks like so. I suggest to contact the plugin author and provide the details to them, so they can provide you a solution or at-least the necessary information if it is required by WPML. Regards. |