Skip Navigation

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

Problem:

You are trying to view your translated page without errors but encountered an error message on the second/translated language page.

Solution:

We recommend performing a full site backup before proceeding with any changes. After ensuring your site is backed up, please try the workaround suggested in the following WPML support forum tickets:

Specifically, check the solution provided in this post: Workaround for frequent error messages.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open 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 1 reply, has 0 voices.

Last updated by Bigul 3 months, 2 weeks ago.

Assisted by: Bigul.

Author Posts
February 21, 2025 at 10:41 pm #16735403

dominikS-27

Background of the issue:
I am trying to view our translated page without errors. I encountered an error while accessing our second/translated language page. The error message is:

Warning: Attempt to read property "count" on null in /var/www/vhosts/manurefetish.com/httpdocs/wp-includes/class-wp-term-query.php on line 852 

. The issue can be seen at the following link: hidden link.

Symptoms:
I expected to see no errors, but instead, I got the following error:

Warning: Attempt to read property "count" on null in /var/www/vhosts/manurefetish.com/httpdocs/wp-includes/class-wp-term-query.php on line 852 

.

Questions:
How can I resolve the error related to 'count' on null in the translated page?

February 22, 2025 at 3:54 pm #16736546

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

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

This may be related to the following tickets.

https://wpml.org/forums/topic/warning-cannot-modify-header-information-error/

https://wpml.org/forums/topic/hi-im-getting-an-error-message-very-few-seconds/

Please try the workaround suggested in this ticket after a full site backup {mandatory} and make sure the bug exists or not - https://wpml.org/forums/topic/hi-im-getting-an-error-message-very-few-seconds/#post-15521241

--
Thanks!

Bigul