Background of the issue:
I am trying to use Contact Form 7 on my website, which is translated from Polish to English using WPML. The site URLs are hidden link and hidden link. The email settings are the same for both language versions.
Symptoms:
The English version of the contact form does not send emails, while the Polish version works correctly.
Questions:
Why is the English version of the contact form not sending emails?
To enable it, open your wp-config.php file and look for
define('WP_DEBUG', false);
Change it to:
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);
After this, repeat the action that causes the problem on your site-- send a message using the contact form in the English language hidden link">here, and receive the error message. In this case, the errors will be saved to a debug.log log file inside the /wp-content/ directory. Then, please share the errors with us.
In previous support ticket you asked me for FTP. I wanted to send it in the ticket but the ticket is closed. Can you reopen the ticket concerning TWIG?
It didn't reveal anything. The PHP notices are like this
[13-Jun-2025 10:37:45 UTC] PHP Notice: [ Timber ] Timber::get_posts() was called incorrectly. Using `numberposts` only works when using `get_posts()`, but not for Timber::get_posts(). Use `posts_per_page` instead. Please see Debugging in WordPress (https://wordpress.org/support/article/debugging-in-wordpress/) as well as Debugging in Timber (hidden link) for more information. (This message was added in Timber version 2.0.0.) in /home/alsanitsrv/domains/alsanit.pl/public_html/wp-content/themes/starter-empressia/vendor/timber/timber/src/Helper.php on line 400
[13-Jun-2025 10:37:45 UTC] PHP Notice: [ Timber ] Timber::get_posts() was called incorrectly. Using `numberposts` only works when using `get_posts()`, but not for Timber::get_posts(). Use `posts_per_page` instead. Please see Debugging in WordPress (https://wordpress.org/support/article/debugging-in-wordpress/) as well as Debugging in Timber (hidden link) for more information. (This message was added in Timber version 2.0.0.) in /home/alsanitsrv/domains/alsanit.pl/public_html/wp-content/themes/starter-empressia/vendor/timber/timber/src/Helper.php on line 400
[13-Jun-2025 10:37:46 UTC] PHP Notice: [ Timber ] Timber::get_posts() was called incorrectly. Using `numberposts` only works when using `get_posts()`, but not for Timber::get_posts(). Use `posts_per_page` instead. Please see Debugging in WordPress (https://wordpress.org/support/article/debugging-in-wordpress/) as well as Debugging in Timber (hidden link) for more information. (This message was added in Timber version 2.0.0.) in /home/alsanitsrv/domains/alsanit.pl/public_html/wp-content/themes/starter-empressia/vendor/timber/timber/src/Helper.php on line 400
[13-Jun-2025 10:37:46 UTC] PHP Notice: [ Timber ] Timber::get_posts() was called incorrectly. Using `numberposts` only works when using `get_posts()`, but not for Timber::get_posts(). Use `posts_per_page` instead. Please see Debugging in WordPress (https://wordpress.org/support/article/debugging-in-wordpress/) as well as Debugging in Timber (hidden link) for more information. (This message was added in Timber version 2.0.0.) in /home/alsanitsrv/domains/alsanit.pl/public_html/wp-content/themes/starter-empressia/vendor/timber/timber/src/Helper.php on line 400
[13-Jun-2025 10:37:47 UTC] PHP Notice: [ Timber ] Timber::get_posts() was called incorrectly. Using `numberposts` only works when using `get_posts()`, but not for Timber::get_posts(). Use `posts_per_page` instead. Please see Debugging in WordPress (https://wordpress.org/support/article/debugging-in-wordpress/) as well as Debugging in Timber (hidden link) for more information. (This message was added in Timber version 2.0.0.) in /home/alsanitsrv/domains/alsanit.pl/public_html/wp-content/themes/starter-empressia/vendor/timber/timber/src/Helper.php on line 400
[13-Jun-2025 10:37:47 UTC] PHP Notice: [ Timber ] Timber::get_posts() was called incorrectly. Using `numberposts` only works when using `get_posts()`, but not for Timber::get_posts(). Use `posts_per_page` instead. Please see Debugging in WordPress (https://wordpress.org/support/article/debugging-in-wordpress/) as well as Debugging in Timber (hidden link) for more information. (This message was added in Timber version 2.0.0.) in /home/alsanitsrv/domains/alsanit.pl/public_html/wp-content/themes/starter-empressia/vendor/timber/timber/src/Helper.php on line 400
We suspect a collision with the theme or another plugin might cause this problem. If possible, set up your site in a minimal environment, switching to a default WordPress theme like TwentyTwenty-Four and activating only WPML.
First, check if the problem persists when only the theme is switched to TwentyTwenty-Four (for example). If the issue persists, deactivate all plugins except WPML and its add-ons, and Contact Form 7. Then, please check if the problem persists. If the issue persists, start by activating the plugins individually and check when the issue returns. Then, report to me which plugin was the culprit.
**** Important! Please make a full site backup (files and DB) before you proceed with those steps****
*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***
If you are not able to proceed with this test, please allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All In One Migration. Please let me know if you agree.