February 4, 2015 at 7:52 am #4346
I have downloaded the latest Thematic 2.0 from Github and installed it on a site I am developing with the latest WP release and the WPML multilingual plugin. When I activated it I am getting several notices:
Notice: thematic_create_doctype is deprecated since version 2.0.0! Use childtheme_override_doctype instead. in /public_html/wp-includes/functions.php on line 3378
Notice: thematic_head_profile is deprecated since version 2.0.0! Use childtheme_override_head instead. in /public_html/wp-includes/functions.php on line 3378
Notice: thematic_create_contenttype is deprecated since version 2.0.0! Use childtheme_override_meta_charset instead. in /public_html/wp-includes/functions.php on line 3378
I have also tried disabling all plugins and the noticed remain.
Is this expected behaviour or does it suggest that something has gone wrong with my install?
PhilipFebruary 5, 2015 at 4:59 pm #4348
Have you ever had Thematic installed previously on this site (meaning there are old settings lurking in the database)? Or are you using these named functions in a child theme?
These deprecation notices indicate that the xhtml functions have been used. As the notices say, the xhtml have been deprecated in favor of html5.
New installs are html5 by default, but if we detect previous Thematic settings in the database then xhtml is used in order not to break the site and these deprecation notices are shown.
If this is a clean new install, I would love to get more details about your setup so I can find out if there is a bug somewhere. We have of course tested the theme and upgrade paths but it is impossible to test all permutations.
A child theme that upgrades and want to switch to html5 can add
add_theme_support( 'thematic_html5' );
in the functions.php file.
If you really really want to use xhtml, you can suppress these notices with
add_theme_support( 'thematic_legacy_quiet' );February 6, 2015 at 5:11 am #4349
Thanks very much for replying so quickly. Yes, you are right. I was inaccurate in saying it’s a clean install, as it did already have the earlier version of Thematic on it.
I have started to create a child theme but not done any work on it yet, so I am keen to roll back and have a ‘pure’ Thematic 2.0 theme.
Is this simply a matter of uninstalling the themes and putting Thematic 2.0 back?
PhilipFebruary 6, 2015 at 11:02 am #4350
Yes you can simply put 2.0 back and start from there. I’d put the theme support call for html5 in the child theme’s functions.php just to be safe.
Also, the loading of the stylesheet has changed in 2.0. You will need to enqueue the parent stylesheet from the child theme. See https://github.com/ThematicTheme/Thematic/wiki/Transition-from-Thematic-1.0.4-to-2.0#enqueue-the-parent-stylesheet
Happy coding!February 12, 2015 at 9:20 am #4353
Thanks for all your advice. In the end, simply removing the old Thematic theme didn’t work, so I opted to start again with a clean install.
I’m looking forward to creating a whole load more sites based on Thematic, this time with the brave new world of 2.0.
The topic ‘Clean install of Thematic 2.0 giving warning message’ is closed to new replies.