Yesterday I tried installing the Thematic theme, which seems very versatile and elegant. Yet I got errors on every page request, even for admin users.
One such error looks like this:
Notice: The called constructor method for WP_Widget in Thematic_Widget_Search is deprecated since version 4.3.0! Use __construct() instead. in /home/iecapxbq/public_html/wp-includes/functions.php on line 3900
Yet line 3900 in
functions.php is a catch-all for failed constructors. All 3 failed constructors are for
WP_Widget in Thematic_Widget_*. Yet I also get sometimes get 2 more detailed error messages. The first:
headers already sent by (output started at /home/iecapxbq/public_html/wp-includes/functions.php:3900) in /home/iecapxbq/public_html/wp-admin/includes/misc.php on line 1114
misc.php line 1114, I find the following code:
header( sprintf( 'Referrer-Policy: %s', $policy ) );
This doesn't look like a constructor, especially without a RHS when calling it. Visual Studio 2017. The second:
Warning: Cannot modify header information - headers already sent by (output started at /home/iecapxbq/public_html/wp-includes/functions.php:3900) in /home/iecapxbq/public_html/wp-includes/pluggable.php on line 1216
pluggable.php line 1216:
header("Location: $location", true, $status);
The same code as the other detailed error. Then I suspect the
header() function somehow, but this is still after deleting the whole Thematic folder.
If the fault is with
header() then can I make a child-theme that overrides the faulty
I'm using PHP 7 and WP 4.9.