Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
Tell us what you are trying to do? When I change the language to other than default and try to logout I receive an error message.

Solution:
Updating the theme resolved the problem.

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 6 replies, has 3 voices.

Last updated by Mateus Getulio 1 year, 11 months ago.

Assisted by: Mateus Getulio.

Author Posts
August 18, 2023 at 12:27 pm #14252465

raquelT-3

Tell us what you are trying to do? When I change the language to other than default and try to logout I receive an error message.

Is there any documentation that you are following? There is the theme documentation

Is there a similar example that we can see? Yes, you can use the credentials and test for yourself

What is the link to your site? hidden link

Debug.log
[18-Aug-2023 08:39:01 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:01 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:02 UTC] PHP Warning: Undefined array key "en" in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Attempt to read property "element_id" on null in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Undefined array key "en" in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Attempt to read property "element_id" on null in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Undefined array key "en" in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Attempt to read property "element_id" on null in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Undefined array key "en" in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Attempt to read property "element_id" on null in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Undefined array key "en" in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Attempt to read property "element_id" on null in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Undefined array key "en" in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Attempt to read property "element_id" on null in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Undefined array key "en" in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Attempt to read property "element_id" on null in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Undefined array key "en" in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:02 UTC] PHP Warning: Attempt to read property "element_id" on null in /bitnami/wordpress/wp-content/themes/wpresidence/templates/submit_templates/property_amenities.php on line 70
[18-Aug-2023 08:39:07 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:07 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:10 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:10 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:10 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:10 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:41 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:41 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:50 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:39:50 UTC] PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 3500
[18-Aug-2023 08:44:55 UTC] PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/bitnami/wordpress/wp-includes/class-wp-user.php on line 211

August 20, 2023 at 10:05 am #14257955

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Before your ticket is assigned to one of my colleagues, I'd like to guide you through some initial debugging steps to expedite the support process.

Could you please follow the below steps and see if this resolves your issue:

1. Please take a backup of your site first for safety reasons.

2. I have noticed that the few errors are coming from the WpResidence theme, please update WpResidence theme to the latest 4.9.4 version: hidden link

3. Please re-save permalinks from the Settings >> Permalinks page by pressing the Save Changes button.

4. Please delete all sorts of caches on your site/server cache if any / plugin cache / CDN cache, clear the browser cache, and then see if it resolves the issue afterward.

5. If the issue still persists, please rename the existing debug.log file and try to logout again and send us the latest errors if there is any.

Thank you

August 21, 2023 at 12:47 pm #14263957

raquelT-3

Hi, Noman. Thank you for your help.

I updated the theme and pressed save in permalinks but now when I change the language the search button doesn't work anymore. Could you please check what is the problem?

Kind regards,
Raquel

August 21, 2023 at 8:46 pm #14266815

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Raquel,

Thanks for your reply.

I'm not sure if I fully understood the steps you're following before having this issue, could you please clarify them a bit? Also, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. 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.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

August 22, 2023 at 5:44 pm #14273155

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thank you for providing the credentials.

Unfortunately, I'm still not sure how to reproduce the issue reported. About the first one you brought:

When I change the language to other than default and try to logout I receive an error message.

We just did it for French and Dutch, but both of them worked fine. Now, about the other issue:

I updated the theme and pressed save in permalinks but now when I change the language the search button doesn't work anymore. Could you please check what is the problem?

It is also working fine to us, the way we tried: switched the frontend language to Dutch and French, searched for the word 'test'. The results could be displayed without problems.

Am I missing some fundamental step here? Please let us know. Thank you.

Best,
Mateus.

August 23, 2023 at 9:39 pm #14280697

raquelT-3

Hi, I updated the website, and plugins, saved the permalinks, and activated the debug in WordPress. Here are the entries in the debug.log: https://pastebin.com/aH3KvFwU

And here the debug from WPML: [removed]

Thank you in advance for your help,Raquel

August 24, 2023 at 3:11 pm #14286999

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Raquel,

Thanks for sharing the logs.

It seems that none of them are caused by WPML, if you check their sources. And the only error we can see is this:

WordPress database error Table 'bitnami_wordpress.wp_4_users' doesn't exist for query 
			SELECT indexable_table.object_id
			FROM wp_4_yoast_indexable indexable_table
			LEFT JOIN wp_4_users AS source_table
			ON indexable_table.object_id = source_table.ID
			WHERE source_table.ID IS NULL
			AND indexable_table.object_id IS NOT NULL
			AND indexable_table.object_type = 'user'
			LIMIT 1000 made by do_action_ref_array('wpseo_start_cleanup_indexables'), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Cleanup_Integration->run_cleanup, Yoast\WP\SEO\Integrations\Cleanup_Integration->Yoast\WP\SEO\Integrations\{closure}, Yoast\WP\SEO\Repositories\Indexable_Cleanup_Repository->clean_indexables_for_object_type_and_source_table

So it seems there is a corruption with your database, not related to WPML as far as I can see.

If there is still a problem with WPML, could you please tell us what exactly would it be, and the exact step-by-step to experience this issue? We logged again in the wesbite and so far everything worked fine.

Looking forward to your reply. Thank you.

August 24, 2023 at 6:18 pm #14287777

raquelT-3

Updating the theme resolved the problem.