Find Answers and Get Support › Forums › Stego – Food Truck & Restaurant Theme › Installation & Updates › Theme Installation and Updates › pluggable.php – Warning: Cannot modify header information
- This topic has 5 replies, 2 voices, and was last updated 2 years, 10 months ago by Manathan.
-
AuthorPosts
-
NeoParticipant@neocortex
- 5 Topics
- 10 Posts
Dear team,
right after activation of the Stego theme, the following error message appears:
”
https://staging.papa-napoli.de/wp-admin/themes.php?page=merlin
Warning: Cannot modify header information – headers already sent by (output started at /homepages/10/d719744333/htdocs/staging/wp-admin/includes/plugin.php:1827) in /homepages/10/d719744333/htdocs/staging/wp-includes/pluggable.php on line 1340Warning: Cannot modify header information – headers already sent by (output started at /homepages/10/d719744333/htdocs/staging/wp-admin/includes/plugin.php:1827) in /homepages/10/d719744333/htdocs/staging/wp-includes/pluggable.php on line 1343
”Therefore I cannot start the setup for installing the theme fully and Demo material.
This is the content of the php file at the line:
1327 /**
* Filters the X-Redirect-By header.
*
* Allows applications to identify themselves when they’re doing a redirect.
*
* @since 5.1.0
*
* @param string $x_redirect_by The application doing the redirect.
* @param int $status Status code to use.
* @param string $location The path to redirect to.
*/
$x_redirect_by = apply_filters( ‘x_redirect_by’, $x_redirect_by, $status, $location );
if ( is_string( $x_redirect_by ) ) {
1340 header( “X-Redirect-By: $x_redirect_by” );
}1343 header( “Location: $location”, true, $status );
return true;
}
endif;WordPress version 5.8.1 is installed.
I have deactivated all plugins besides UpdraftPlus and reinstalled the Theme, same result.
Please help.
With kind regards
October 14, 2021 at 23:43 #35945@themodactyl- 0 Topics
- 6587 Posts
Hi Neo,
Thank you for buying our theme. We hope it will meet all your expectations! 🙂
No worries. These are PHP warnings, not errors. Unlike errors, warnings won’t break your website. They’re just messages aimed at developers to improve their code. To hide this message, I suggest that you activate error logging on your website. Please keep WP_DEBUG to true and just paste the following code lines in your wp-config.php file, just before the line that says ‘That’s all, stop editing! Happy blogging.’:
// Enable WP_DEBUG mode 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 );
More on this in the following topic: Debugging in WordPress
You will still be able to consult the warnings and errors triggered by your website but these won’t appear on your pages anymore.
Then, we really suggest you to reset your WordPress database using WP Reset (https://wordpress.org/plugins/wp-reset/) and start fresh with our setup wizard. You can easily install the theme by relaunching the setup wizard, as it will programmatically do every steps for you.
Don’t hesitate to come back to us if you’re still facing this issue during the theme setup.
Regards,
October 15, 2021 at 13:15 #35970NeoParticipant@neocortex- 5 Topics
- 10 Posts
Hello Manathan,
thanks for your reply. The warning was not showing on the website itself, but after pressing on “activate” right after installing the theme. After adding your lines of code to the wp-config.php, those lines were showing up on the website as well and I could not log in anymore.
I have reset the website, when installing the theme and pressing “activate” the same issue arises, where this warning is showing up but the setup process of the theme is not starting. When going to themes afterwards, the theme is already activated so that I cannot start the setup process.
Thanks in advance.
Regards,
NeoOctober 17, 2021 at 15:35 #36020@themodactyl- 0 Topics
- 6587 Posts
Hi Neo,
Thank you for your feedback.
Please be aware that you can start the theme setup anytime by going to Dashboard > Appearance > Theme setup.
Can you please make sure that the lines I send you in my previous reply are not already in your wp-config.php file?
// Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );
We’re waiting for your feedback.
Cheers,
October 18, 2021 at 14:00 #36031@themodactyl- 0 Topics
- 6587 Posts
Hi Neo,
I’m glad to read this issue has been solved. 🙂
If you’re happy with our theme, feel free to review our theme on our Themeforest page: Stego – Food Truck & Restaurant Theme.
It’s very appreciated and it helps us making our products more known to new potential customers, which allow us more time to improve the quality over time and develop new features. It’s a win-win !
And by doing this, you will be making a great contribution to our community! #SharingIsCaring 💪🏻
Thank you!
October 20, 2021 at 10:58 #36095 -
AuthorPosts
The topic ‘pluggable.php – Warning: Cannot modify header information’ is closed to new replies.