Skip Navigation

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

Problem:

The client is experiencing PHP warnings specifically when navigating to 'Properties' to list and edit properties or when adding a new property. The issue does not appear on other pages.

Solution:

We recommend enabling the WordPress debug mode to gather more detailed information about the warnings. To do this, modify the

wp-config.php

file as follows:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
 
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
 
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
 
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

After enabling debugging, reproduce the issue and check the

/wp-content/debug.log

file for any errors or warnings related to WPML. If possible, share the debug log via Pastebin for a cleaner discussion.

If the debug log does not show any WPML-related errors, the issue might be due to a plugin or theme compatibility problem. Follow these steps:

1. Ensure you back up your site.
2. Deactivate all non-WPML and non-Houzez theme related plugins.
3. Check if the issue persists.
4. If resolved, reactivate the plugins in small groups to identify the problematic plugin.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant, please check the related known issues, verify the version of the permanent fix, and ensure you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum.

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

Last updated by Bigul 2 months, 4 weeks ago.

Assisted by: Bigul.

Author Posts
November 21, 2024 at 5:35 am #16427279

draganF

I think the problem with database is solved. But now I got PHP Warning.
You can see everything on screenshot attached.

16426662-Screenshot_21.png
November 21, 2024 at 11:02 am #16428579

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

Are you getting this warning in all the pages? Please share with us the WordPress debug.log(not WPML debug information) for collecting more details on this. Refer to the following pages for instructions

https://wpml.org/documentation/support/debugging-wpml/

https://wordpress.org/documentation/article/debugging-in-wordpress/

To enable WordPress Debug log, open your wp-config.php file of site root and look for define('WP_DEBUG', false);. Change it to:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
 
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
 
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check you are getting any errors or warnings related to WPML in the log file.

If you can paste your debug.log to http://pastebin.com/index.php and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).

--
Thanks!

Bigul

November 21, 2024 at 1:29 pm #16429252

draganF

Here is link.
https://pastebin.com/CLpQezRr

I noticed so far that I got this error only when go to Properties (to list properties and Edit...) or Add new property.
I did not noticed it anywhere else.

November 21, 2024 at 5:24 pm #16430488

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates and Debug log details. However, the Debug log shows no warnings or errors related to the WPML. So please make sure any WPML warning or error is tracked in the Debug log while doing the following steps.

I noticed so far that I got this error only when go to 
Properties (to list properties and Edit...) or Add new property.

Maybe you are facing this issue because of compatibility conflicts. So to make sure if possible, please do the following steps.

a) Backup your site first[Mandatory]
b) Deactivate all the plugins that are not related to WPML and Houzez theme
c) Then check the issue is existing or not
d) If the issue is gone, activate the plugins as a group of three or four to find which one has an interaction issue

--
Thanks!

Bigul