Background of the issue:
I am trying to access the shipping settings page on my WooCommerce site. I have the latest updates running. Here is the link to the page where the issue can be seen: hidden link
Symptoms:
I encountered the following errors: 'Warning: Cannot modify header information - headers already sent by (output started at /www/wp-content/plugins/sitepress-multilingual-cms/classes/templating/class-wpml-templates-factory.php:59) in /www/wp-includes/functions.php on line 7108' and 'Warning: Cannot modify header information - headers already sent by (output started at /www/wp-content/plugins/sitepress-multilingual-cms/classes/templating/class-wpml-templates-factory.php:59) in /www/wp-admin/admin-header.php on line 9'. All characters become strange on the shipping settings page.
Questions:
How can I resolve the 'Cannot modify header information - headers already sent' error on the shipping settings page?
Why do all characters become strange on the shipping settings page?
2. Go to WPML -> Support -> Troubleshooting (link)
3. Once on the troubleshooting screen, press the following buttons and check if it helps. Press each button at a time and wait for the process to complete.
- 'Clear language information and repopulate languages' button (if it is showing)
- 'Clear the cache in WPML'
- 'Remove ghost entries from the translation tables'
- 'Fix element_type collation'
- 'Fix WPML tables collation'
- 'Set language information'
- 'Reset languages' Press this button only if you didn't add a custom language!
- 'Cleanup and optimize string tables'
- 'Clear invalid strings'
*** Please backup your database before using this.***
B.
If the above does solve the problem, we suspect a collision with the theme or another plugin might cause it. If possible, get your site into a minimum environment by switching to a default WordPress theme like TwentyTwenty-Four and having no plugins activated except WPML.
First, you must check if the problem persists when just the theme is switched to TwentyTwenty-Four (for example). If it persists, deactivate all plugins except WPML and its add-ons and WooCommerce without any extensions. Then, please check if the problem persists. If it does not persist, start by activating the plugins individually and checking when the issue comes back, 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. ***
Thanks,
Itamar.
The topic ‘[Closed] Warning: Cannot modify header information – headers already sent error on shipping setting page’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.