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.

This topic contains 17 replies, has 2 voices.

Last updated by overhaulM 1 year, 11 months ago.

Assisted by: Bobby.

Author Posts
June 12, 2023 at 9:42 pm #13812787

overhaulM

No sidebar and error message on editing language other than english (English is fine) after updating to 6.2 and updating plugins

"Field's value in original language:
1
There has been a critical error on this website. Please check your site admin email inbox for instructions."

June 12, 2023 at 11:30 pm #13812993

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for sharing the fatal error!

Are you able to change your current PHP Version? I believe this error might be triggered by PHP 8, if that is the case our team will need to verify this and review it further, however, do the following to verify, please.

Change the PHP version to 7.4 (you can do this from the hosting cpanel)

Test and let me now your results

June 13, 2023 at 12:27 am #13813061

overhaulM

Looks like it works with WP 6.2.2 and PHP 7.4 - but what happens when we need to go to PHP 8?

June 13, 2023 at 12:28 am #13813063

overhaulM

It also does not error, but it somehow hides the display of those fields on load. I need to catch it as it flashes by onload.

Screen Shot 2023-06-12 at 6.28.36 PM.png
Screen Shot 2023-06-12 at 6.26.25 PM.png
June 13, 2023 at 6:02 pm #13819771

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Most likely it is because now the Debug Display is activated and with PHP 7.4 it is a warning instead of a Fatal Error.

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

June 20, 2023 at 2:40 pm #13860831

overhaulM

Hello, just seeing if there was anything else we could do/provide?

June 20, 2023 at 5:56 pm #13862467

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

If possible, please verify the wp-admin access details as I am not able to access the backend at the moment. (you can edit the previous private reply if needed)

The FTP details are working as expected and I can review the file manager OK.

Thank you!

June 20, 2023 at 7:22 pm #13862767

overhaulM

I have updated the password for you and verified it works this time.

June 20, 2023 at 11:27 pm #13863379

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the access details!

We released a new version of WPML and WPML String Translation.

https://wpml.org/downloads/

I have updated WPML and WPML String translation to their latest version.

If possible also update the following:

- Advanced Custom Fields Multilingual -> currently at 1.6.0 which is 3 years old
https://wpml.org/download/acfml/?section=changelog

I have not updated it as it is quite old and want to verify there is no specific reason an older version is being used.

Once done, you can switch back to PHP 8 and let me know your results.

Also if the issue persists share with me the exact post or cpt you are editing so we are testing the same content.

Thank you!

June 21, 2023 at 3:00 pm #13869749

overhaulM

Updated everything (all plugins) and went back to PHP8 and now the french page = critical error (hidden link)

June 21, 2023 at 5:11 pm #13870593

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for updating me! I currently have access to another staging site that is still on the 7.4PHP version.

Is it possible to provide me access to the one you are referencing or update the PHP Version to the one I have access to already.

June 21, 2023 at 5:15 pm #13870627

overhaulM

Shoot, my bad. I'll do the same thing to the staging env and report back.

June 21, 2023 at 8:22 pm #13871629

overhaulM

OK everything is up to date on staging and still (full error) on editing french for the expert hidden link

Can you take a look again please?

June 22, 2023 at 9:58 pm #13881059

overhaulM

I thought i'd add the error on that page for you

Error Details
=============
An error of type E_ERROR was caused in line 259 of the file /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php. Error message: Uncaught TypeError: Illegal offset type in isset or empty in /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php:259
Stack trace:
#0 /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php(60): WPML_Element_Translation->maybe_populate_cache(Array)
#1 /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(4575): WPML_Element_Translation->element_id_in(Array, 'fr')
#2 /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/inc/template-functions.php(381): SitePress->get_object_id(Array, 'attachment', true, 'fr')
#3 /nas/content/live/canadaicistg/wp-includes/class-wp-hook.php(308): wpml_object_id_filter(Array, 'attachment', true)
#4 /nas/content/live/canadaicistg/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#5 /nas/content/live/canadaicistg/wp-content/plugins/acfml/classes/class-wpml-acf-attachments.php(29): apply_filters('wpml_object_id', Array, 'attachment', true)
#6 /nas/content/live/canadaicistg/wp-includes/class-wp-hook.php(310): WPML_ACF_Attachments->load_translated_attachment(Array)
#7 /nas/content/live/canadaicistg/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array)
#8 /nas/content/live/canadaicistg/wp-content/plugins/advanced-custom-fields-pro/includes/acf-hook-functions.php(109): apply_filters_ref_array('acf/load_value/...', Array)
#9 /nas/content/live/canadaicistg/wp-includes/class-wp-hook.php(308): _acf_apply_hook_variations(Array, 1900, Array)
#10 /nas/content/live/canadaicistg/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#11 /nas/content/live/canadaicistg/wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php(118): apply_filters('acf/load_value', Array, 1900, Array)
#12 /nas/content/live/canadaicistg/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php(307): acf_get_value(1900, Array)
#13 /nas/content/live/canadaicistg/wp-content/plugins/acfml/classes/strategy/repeater-sync/PostHooks.php(39): get_field_objects(1900)
#14 /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(17): ACFML\Repeater\Sync\PostHooks->displayCheckbox('experts', Object(WP_Post))
#15 /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\FP\{closure}(Array)
#16 /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(257): WPML\FP\Right->map(Object(Closure))
#17 /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(24): WPML\FP\Right->chain(Object(Closure))
#18 /nas/content/live/canadaicistg/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php(50): WPML\FP\Promise->resolve(Object(WPML\FP\Right))
#19 /nas/content/live/canadaicistg/wp-includes/class-wp-hook.php(308): WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}('experts', Object(WP_Post))
#20 /nas/content/live/canadaicistg/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#21 /nas/content/live/canadaicistg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#22 /nas/content/live/canadaicistg/wp-admin/includes/meta-boxes.php(1701): do_action('add_meta_boxes', 'experts', Object(WP_Post))
#23 /nas/content/live/canadaicistg/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Object(WP_Post))
#24 /nas/content/live/canadaicistg/wp-admin/post.php(206): require('/nas/content/li...')
#25 {main}
thrown

June 23, 2023 at 6:13 pm #13887143

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for updating me!

Please try again with one more update and let me know your results.

We just released the latest versions of WPML and WPML string translation.

Go to https://wpml.org/downloads/ and download the latest version 4.6.4 which should have a fix for this issue included.

Or you can go to Plugins->Add new->Commercial tab->check for updates and update.

Let me know your results, please.