Skip Navigation

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: 

This topic contains 19 replies, has 3 voices.

Last updated by Andrey 1 year, 5 months ago.

Assisted by: Andrey.

Author Posts
October 23, 2023 at 1:33 pm #14638467

mikaelL-10

I am trying to: open a course setup from plugin company "Modern Event Calendar" as a trainer (not admin)

Link to a page where the issue can be seen: (Yuo cant - you need to be a special setup seeing this page)

I expected to see: (The setup as usually

Instead, I got:
Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php:259 Stack trace: #0 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php(113): WPML_Element_Translation->maybe_populate_cache(Object(WP_Post)) #1 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/Post.php(24): WPML_Element_Translation->get_element_lang_code(Object(WP_Post)) #2 [internal function]: WPML\Element\API\Post::WPML\Element\API\{closure}(Object(WP_Post)) #3 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #4 [internal function]: WPML\FP\{closure}(Object(WP_Post)) #5 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/traits/Curryable.php(57): call_user_func_array(Object(Closure), Array) #6 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Review/ReviewTranslation.php(47): WPML\Element\API\Post::__callStatic('getLang', Array) #7 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(17): WPML\TM\ATE\Review\ReviewTranslation->WPML\TM\ATE\Review\{closure}(Array, Array, Array) #8 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\FP\{closure}(Array) #9 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(257): WPML\FP\Right->map(Object(Closure)) #10 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(24): WPML\FP\Right->chain(Object(Closure)) #11 /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php(50): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #12 /home/agilepeople/public_html/wp-includes/class-wp-hook.php(312): WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}(Array, Array, Array) #13 /home/agilepeople/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #14 /home/agilepeople/public_html/wp-includes/class-wp-user.php(808): apply_filters('user_has_cap', Array, Array, Array, Object(WP_User)) #15 /home/agilepeople/public_html/wp-includes/capabilities.php(985): WP_User->has_cap('edit_post', Object(WP_Post)) #16 /home/agilepeople/public_html/wp-includes/capabilities.php(877): user_can(Object(WP_User), 'edit_post', Object(WP_Post)) #17 /home/agilepeople/public_html/wp-content/plugins/modern-events-calendar/app/features/fes.php(106): current_user_can('edit_post', Object(WP_Post)) #18 /home/agilepeople/public_html/wp-content/plugins/modern-events-calendar/app/features/fes.php(163): MEC_feature_fes->current_user_can_upsert_event('97961') #19 /home/agilepeople/public_html/wp-includes/shortcodes.php(433): MEC_feature_fes->vform(Array, '', 'MEC_fes_form') #20 [internal function]: do_shortcode_tag(Array) #21 /home/agilepeople/public_html/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(MEC_fe...', 'do_shortcode_ta...', '[MEC_fes_form]') #22 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/widgets/shortcode.php(130): do_shortcode('[MEC_fes_form]') #23 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2265): Elementor\Widget_Shortcode->render() #24 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode() #25 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content() #26 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Widget_Base->print_content() #27 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element() #28 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content() #29 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element() #30 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content() #31 /home/agilepeople/public_html/wp-content/plugins/elementor/core/base/document.php(1739): Elementor\Element_Base->print_element() #32 /home/agilepeople/public_html/wp-content/plugins/elementor/core/base/document.php(1134): Elementor\Core\Base\Document->print_elements(Array) #33 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/frontend.php(1179): Elementor\Core\Base\Document->print_elements_with_wrapper(Array) #34 /home/agilepeople/public_html/wp-content/plugins/elementor/includes/frontend.php(1074): Elementor\Frontend->get_builder_content(55158) #35 /home/agilepeople/public_html/wp-includes/class-wp-hook.php(310): Elementor\Frontend->apply_builder_in_content('<h1>Agile Peopl...') #36 /home/agilepeople/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('<h1>Agile Peopl...', Array) #37 /home/agilepeople/public_html/wp-includes/post-template.php(256): apply_filters('the_content', '<h1>Agile Peopl...') #38 /home/agilepeople/public_html/wp-content/themes/hello-elementor/template-parts/single.php(25): the_content() #39 /home/agilepeople/public_html/wp-includes/template.php(787): require('/home/agilepeop...') #40 /home/agilepeople/public_html/wp-includes/template.php(720): load_template('/home/agilepeop...', false, Array) #41 /home/agilepeople/public_html/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #42 /home/agilepeople/public_html/wp-content/themes/hello-elementor/index.php(21): get_template_part('template-parts/...') #43 /home/agilepeople/public_html/wp-includes/template-loader.php(106): include('/home/agilepeop...') #44 /home/agilepeople/public_html/wp-blog-header.php(19): require_once('/home/agilepeop...') #45 /home/agilepeople/public_html/index.php(17): require('/home/agilepeop...') #46 {main} thrown in /home/agilepeople/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 259
There has been a critical error on this website.

Learn more about troubleshooting WordPress.

October 23, 2023 at 8:40 pm #14641297

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

Could you please check if you are not experiencing the following issue?
https://wpml.org/errata/woocommerce-subscriptions-fatal-error-on-viewing-woocommerce-subscription-related-orders/

The workaround is available there. Before proceeding with any changes, please make sure to back up your database first.

October 24, 2023 at 6:32 am #14642455

mikaelL-10

Hi, Thanks for getting back.
I did not solve the problem. (same)
But it might have something to do with the code. Could you check if this code is correct? I get a " Syntax error, unexpected '(' " at row 2.
See picture.

chrome_oZkXXfFXCs.png
October 24, 2023 at 8:49 am #14644195

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

It looks to be correct. Just in case, try again to copy and paste the code from the link above.

If this is still the issue, please update your WPML plugin to the latest version 4.6.7 and add-ons to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem, however, in order to troubleshoot the issue best we need to work on the latest code available.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

Please remember to backup your database first before you proceed. You can use a plugin for this if you like (example: http://wordpress.org/plugins/duplicator/)

Let me know if the issue persists after an update has been done.

October 24, 2023 at 12:58 pm #14647845

mikaelL-10

I updated — still the same problem.
I have also been in contact with Webnus. They can also see a similar problem (blank page) after testing.

October 24, 2023 at 2:09 pm #14648587

mikaelL-10

Copy of email from Webnus.

Hello,
I can confirm that the editing page in FES redirects to a blank page. Although it is not a critical error, it still does not function properly. I am reporting this issue to the dev team for further investigation and resolution. Thank you for bringing this issue to our attention.

Kind Regards.
_________________________________________________

MEC Documentation | Add-Ons Documentation | Troubleshooting | FAQ | Feature Request

Trent Calvert
Support Agent
Website: hidden link

For us, it displays a critical error as described initially.

October 24, 2023 at 2:58 pm #14649113

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Than you for the update. I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Please provide the exact steps to replicate the issue.

October 25, 2023 at 6:52 pm #14664243

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for the update. I encountered a fatal error. Could you please restore the staging site?

If I need to further debug the problem, I want to ask you about the possibility of replicating your site locally. For this, I'll need to install a "Duplicator" plugin on your site temporarily. This will allow me to create a copy of your site and your content. If you prefer to do it independently, you can provide me with the snapshot and send me the installer file and the zipped package you downloaded.

Let me know how you feel about this.

October 26, 2023 at 7:54 am #14667227

mikaelL-10

I do not understand what you mean by "restore the staging site"? I gave you access to the staging site. Did you fix the problem and want me to update the "live" site with the staging site? That will not happen. We have so many "live" changes on the live site, so whatever solution you see fixes the problem, we need to do the same fix on the live site.
The second sentence I do not understand either. I set up a fresh copy of the site (staging site) for you locally yesterday.
Please elaborate on your intentions. I am not experienced enough to understand what you are asking for.

October 26, 2023 at 3:01 pm #14671933

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

There is no need to update the "live" site with the staging site. Your staging site is currently giving a fatal error. I cannot log in. Could you please check this?

The second question concerns making a copy of your site to test it on my local environment. For this, I need to install the plugin called Duplicator. Can I install this plugin on your stating site?

October 27, 2023 at 8:04 am #14675903

mikaelL-10

It is not the same password on the staging site. Look in your info.
And yes you can add duplicator on the staging site.

October 27, 2023 at 8:05 am #14675939

mikaelL-10

if you need them again. Give me a "hidden" message or send me a direct message on email

October 27, 2023 at 8:15 am #14676047

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thanks, let me activate the private message.

October 30, 2023 at 8:16 pm #14694969

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for the details. I have taken a copy and reported it to our team. I will update you as soon as I know more.

October 31, 2023 at 10:22 am #14698339

mikaelL-10

Hi, Our users have a lot of problems with this.
So please see if you can fix this problem ASAP.
Let me know if we can be of any assistance.