Skip Navigation

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

Problem:
The client is experiencing a critical error on their website when accessing the French language page after updating all plugins, including a conflict between the Pods plugin and WPML.
Solution:
We recommend checking if the French homepage is now functioning correctly. We resolved the issue by deleting specific strings from the string translation that were causing the conflict. The strings removed were:

View %s

New %s

If this solution does not apply to your case, or if it seems outdated, 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. If the problem persists, please open a new support ticket.

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

Last updated by mathiasD-3 2 days ago.

Assisted by: Osama Mersal.

Author Posts
January 6, 2025 at 8:53 am #16565326

mathiasD-3

Background of the issue:
I am trying to update all plugins to the latest versions on my site hidden link. The issue occurs with the fr language at hidden link, which causes a critical error associated with the Pods (pods.io) plugin. It works fine in the default language.

Symptoms:
There has been a critical error on this website when accessing the fr language page.

Questions:
Are you aware of a conflict between Pods and WPML?
Is there a solution or workaround you can give me?

January 6, 2025 at 11:19 am #16566092

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please provide the WordPress debug.log; this will allow us to see if any PHP errors are being produced. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

To enable it, open your wp-config.php file and look for the following line:

define('WP_DEBUG', false);

And 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, which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Then, try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory.
It would be great if you could paste your debug.log to https://pastebin.com/ and provide me with that link!

Best regards,
Osama

January 6, 2025 at 11:30 am #16566154

mathiasD-3

Hi Osama,
https://pastebin.com/VXFg9Hic
Thanks,
Tim

January 6, 2025 at 11:42 am #16566209

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Tim,

1) Thanks for the debug log. The Pods plugin causes the fatal error:

[06-Jan-2025 11:26:57 UTC] PHP Fatal error:  Uncaught ValueError: Missing format specifier at end of string in /home/customer/www/itcconsulting.eu/public_html/wp-content/plugins/pods/classes/PodsInit.php:2023
Stack trace:
#0 /home/customer/www/itcconsulting.eu/public_html/wp-content/plugins/pods/classes/PodsInit.php(2023): sprintf('Nouveau %', 'Pod Template')
#1 /home/customer/www/itcconsulting.eu/public_html/wp-content/plugins/pods/components/Templates/Templates.php(129): PodsInit::object_label_fix(Array, 'post_type')
#2 /home/customer/www/itcconsulting.eu/public_html/wp-content/plugins/pods/components/Templates/Templates.php(79): Pods_Templates->register_config()
#3 /home/customer/www/itcconsulting.eu/public_html/wp-content/plugins/pods/classes/PodsComponent.php(17): Pods_Templates->init()
#4 /home/customer/www/itcconsulting.eu/public_html/wp-content/plugins/pods/classes/PodsComponents.php(320): PodsComponent->__construct()
#5 /home/customer/www/itcconsulting.eu/public_html/wp-includes/class-wp-hook.php(324): PodsComponents->load('')
#6 /home/customer/www/itcconsulting.eu/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(Array, Array)
#7 /home/customer/www/itcconsulting.eu/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /home/customer/www/itcconsulting.eu/public_html/wp-settings.php(634): do_action('setup_theme')
#9 /home/customer/www/itcconsulting.eu/public_html/wp-config.php(109): require_once('/home/customer/...')
#10 /home/customer/www/itcconsulting.eu/public_html/wp-load.php(50): require_once('/home/customer/...')
#11 /home/customer/www/itcconsulting.eu/public_html/wp-blog-header.php(13): require_once('/home/customer/...')
#12 /home/customer/www/itcconsulting.eu/public_html/index.php(17): require('/home/customer/...')
#13 {main}
  thrown in /home/customer/www/itcconsulting.eu/public_html/wp-content/plugins/pods/classes/PodsInit.php on line 2023

2) I checked the known issues and found two known issues:

1- https://wpml.org/errata/pods-custom-post-type-has-issues-saving-translation/

2- https://wpml.org/errata/pods-gallery-images-not-copied-when-using-manual-editor-for-translation/

The issue seems related to the templates. Please let me know if you use templates for the home page.

Best regards,
Osama

January 7, 2025 at 10:02 am #16568807

mathiasD-3

Thanks Osama,
The homepage in either language do not use any pods templates.
There are 4 pods templates in the site, one in EN/FR for a list item and one in EN/FR for a single item.
There are no input fields in the templates so the first issue should not apply https://wpml.org/errata/pods-custom-post-type-has-issues-saving-translation/): and it is old I think >2.8 in Feb 24, and this issue has only just arisen with the latest WPML updates.
There's no related images so the second issue (https://wpml.org/errata/pods-gallery-images-not-copied-when-using-manual-editor-for-translation/) should not apply either.
Any more clues?
Thanks,
Tim

January 7, 2025 at 10:32 am #16568963

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Tim,

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

January 7, 2025 at 10:58 am #16569098

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check the provided access details. I got the following error. (Error: The password you entered for the username *** is incorrect. Lost your password?)

Best regards,

January 7, 2025 at 12:08 pm #16569422

mathiasD-3

Please try again now

January 7, 2025 at 2:51 pm #16570216

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. Please check if the French home page works correctly. (hidden link)

I deleted the following strings from the string translation:
* View %s
* New %s

Best regards,
Osama

January 7, 2025 at 4:46 pm #16570826

mathiasD-3

Thanks Osama,
Well done. I can see it's only the pods related string that's affecting the live. Fixed now. Thanks again. Kind regards,
Tim