Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 7 replies, has 2 voices.

Last updated by Prosenjit Barman 6 months, 1 week ago.

Assisted by: Prosenjit Barman.

Author Posts
November 16, 2024 at 6:30 am #16410218

aloysE

Background of the issue:
I am trying to display the English version of my site correctly. Recently, it has stopped displaying as expected. URL: hidden link

Symptoms:
The English version of the site is not displaying correctly. At the bottom of the page, it says 'There has been a critical error on this website.'

Questions:
What is causing the English version of the site to display incorrectly?
How can I resolve the critical error on the English page?

November 17, 2024 at 8:01 am #16411424

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

I will try to answer the question before assigning the ticket to one of my colleagues.

Would you please follow the steps below?

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Update WPML and its addons there. (WPML Multilingual CMS to version 4.6.14 and WPML String Translation to 3.2.15)

For more information:
https://wpml.org/faq/install-wpml/#automated-updates

Finally, please make sure your WordPress installation uses more PHP memory limit.

The minimum requirement is 128M but I suggest that you increase it to 512M: https://wpml.org/home/minimum-requirements/

You can add this by adding the code below to "wp-config.php" file of your WordPress installation root folder:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '512M');
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

Please add the code above the line below:

/* That's all, stop editing! Happy blogging. */

November 23, 2024 at 6:14 am #16435576

aloysE

Apologies for the slow reply.
- There is a daily backup taken of the site.
- There are no new updates for WPML
- I have increased the memory limit as requested.

Thank you for your assistance!

November 25, 2024 at 9:07 am #16438417

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There!
I hope you're doing well. Sorry for the delay in responding due to the weekend.

I have checked the page and the Fatal error is still present. Could you please enable the WP Debug Log on your site so we can gather more details about the source of the error? Please refer to the guide below to understand how to enable the debug log.

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

If you notice more details about the error after enabling the debug log, please share that in the next response. I will check and suggest what to do next.

Additionally, could you please check what happens when all plugins are disabled except for WPML and its add-ons? If the issue is resolved, start activating the plugins one by one. After each activation, refresh the page and check if the error reappears. This will help us identify the specific plugin causing the issue.

Please try and let me know how it goes. I'll be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

November 26, 2024 at 8:44 pm #16446941

aloysE

Thanks for this.

I have enabled the WP Debug Log and checked the error reports. I fixed the error on line 92 of header.php but that didn't seem to help.

I also tried deactivating the plugins as you suggested and I found one that was causing an issue - WP Super Cache. When it's deactivated, the page is looking a lot closer to how it should look, although there are still issues: for example, the black login bar is not displaying, nor the site footer.

Any further suggestions would be greatly appreciated, thank you!

November 27, 2024 at 10:33 am #16448622

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There!
Thank you for trying out the suggestions. Glad that you've found what causing the issue!

I checked and can see that the fatal error is no longer appearing on the English version. Since deactivating the WP Super Cache resolves the issue, it's likely that a specific feature within the plugin was causing a conflict, which prevented the layout from displaying correctly and triggered the fatal error.

As you mentioned that the black login bar and footer are not loading, I checked but didn’t find the black login bar you're referring to, even in the default language. However, I did notice that the text slider below the newsletter form and the footer are missing in the English version.

Could you please share how those elements are added to the page? If you could provide a screenshot or a video of the process, it would greatly help in understanding the issue and suggesting a solution.

Looking forward to your response and I'm always here to help!

Best regards,
Prosenjit

November 27, 2024 at 10:19 pm #16451824

aloysE

Thanks for getting back to me.

The black login bar I mentioned is the standard WP black bar that goes across the top of the page when a user is logged in. This is not displaying on the English version, but it is on the French version.

The other things you noticed were missing (basically everything below the newsletter signup) are things that are coded into the footer.php file. Is there a way I can send you the content of that? I'm not sure what there could be causing the issue, but it doesn't look like the PHP code is working. I suspect there is something more fundamental going on, especially with the WordPress bar not loading.

November 28, 2024 at 5:33 am #16452294

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for the update.

If the option shown in this hidden link">screenshot is enabled under "Users > Profile," the toolbar should appear in other languages.

However, since the theme is custom-coded, there could be functions in the code that prevent the toolbar from appearing in other languages. You may need to review the code, particularly where the header functions are defined, and ensure that no functions are used that could interfere with the toolbar's visibility in other languages.

Regarding the footer, if it's being loaded directly from the theme's footer file, it's important to ensure that translation support is properly integrated into the footer template. A useful documentation to help ensure this is included below.

- https://wpml.org/documentation/support/translating-the-theme-you-created/

I hope once the translation support is added and the Footer contents are translated, the footer will also appear correctly in the frontend.

I would also like to inform you that providing support for custom coding or issues arising from custom code is beyond the scope of our support. However, if you can identify the specific code causing the issue and share a screenshot of it, we may be able to offer suggestions that could help resolve the problem. For direct coding support, you might consider hiring a professional developer who specializes in customizing WPML or integrating WPML support. You can find one here: https://wpml.org/contractors/

I hope you can understand. Feel free to let me know if you have any questions or need clarification. I'll be happy to help.

Best regards,
Prosenjit

The topic ‘[Closed] One language version not working correctly’ is closed to new replies.