redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Warning message when using reset buttons

Open Goldenworks opened this issue 12 years ago • 3 comments

When I use the "reset section / reset all" option I receive the following warnings:

Warning: Cannot modify header information - headers already sent by (output started at C:\Server\Apache2\htdocs\wordpress_test\wp-content\themes\clean\framework\ReduxCore\framework.php:1409) in C:\Server\Apache2\htdocs\wordpress_test\wp-includes\option.php on line 563

Warning: Cannot modify header information - headers already sent by (output started at C:\Server\Apache2\htdocs\wordpress_test\wp-content\themes\clean\framework\ReduxCore\framework.php:1409) in C:\Server\Apache2\htdocs\wordpress_test\wp-includes\option.php on line 564

I am using v3.1.8.18.

Goldenworks avatar Mar 13 '14 22:03 Goldenworks

What exactly is the code for lines 563 and 564 for options.php?

kprovance avatar Mar 13 '14 22:03 kprovance

The warning points to a wordpress core file, option.php. The 2 lines in question are:

setcookie( 'wp-settings-' . $user_id, $settings, time() + YEAR_IN_SECONDS, SITECOOKIEPATH ); setcookie( 'wp-settings-time-' . $user_id, time(), time() + YEAR_IN_SECONDS, SITECOOKIEPATH );

I am using wordpress 3.8.1.

Goldenworks avatar Mar 14 '14 11:03 Goldenworks

I hate to be the bearer of bad news, but that looks like more of a 'your code' issue than a Redux issue. Since the framework.php is loaded at the beginning of the project (as it should, for settings and retrieving option info), any code that follows that wants to modify header info needs to not do so. What the warning is saying to me is this "Whatever you are attempting to do, has already been done by framework.php."

kprovance avatar Mar 14 '14 13:03 kprovance