This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing a critical error on your homepage when WPML is activated. The error originates from the Blog module in the Divi theme, specifically at line 1994 in the file
Blog.php
. The error does not occur when WPML is deactivated.
Solution:
1. Check Line 1994 in Blog.php:
- Navigate to
wp-content/themes/Divi/includes/builder/module/Blog.php
.
- Open the file and locate line 1994.
- This line likely contains a
sprintf()
or similar function. Verify if the string includes placeholders like
%s
or
%d
.
2. Check String in WPML’s String Translation:
- Go to WPML > String Translation in the WordPress dashboard.
- Search for strings related to the Blog module - the one that is possibly found in that line 1994. Focus on strings with formatting placeholders.
- Translate that string (or just copy it), making sure it retains all placeholders (e.g.,
%s
,
%d
) exactly as in the original string.
If this solution does not resolve your issue or seems outdated, we 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. If the problem persists, please 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.
This topic contains 1 reply, has 0 voices.
Last updated by 1 week, 3 days ago.
Assisted by: Bruno Kos.