Hi Chris,
you’re definitely right for the font https://forum.tagdiv.com/topic/wp-booster-error-with-custom-fonts/ đ
Regards
Hi,
sorry for the delay to answer.
There is no http hardcoded link into the database. Our Apache virtualhost is configured to force https.
WP_HOME and WP_URL are defined with https.
The only problem comes from the theme functions and plugins which in that case generate image html code with http protocol.
For example, on that page: https://www.aerospatium.info/ses-9-sera-lance-le-24-fevrier/ when you click on “PLUS DE L’AUTEUR” at the bottom, Ajax request is:
POST URL:
server answer:
{"td_data":"<div class=\"td-related-row\"><div class=\"td-related-span4\"> <div class=\"td_module_related_posts
td-animation-stack td_mod_related_posts\"> <div class=\"td-module-image\"> <div class=\"td-module-thumb
\"><a href=\"https:\/\/www.aerospatium.info\/linde-lancera-lorbiteur-martien-emirats\/\" rel=\"bookmark
\" title=\"L’Inde lancera l’orbiteur martien des \u00c9mirats\"><img width=\"218\" height
=\"150\" class=\"entry-thumb\" src=\"http:\/\/www.aerospatium.info\/wp-content\/uploads\/2016\/02\/Satalite_Double0000-218x150
.jpg\" alt=\"\" title=\"L’Inde lancera l’orbiteur martien des \u00c9mirats\"\/><\/a><\/div
> <\/div> <div class=\"item-details\"> <h3 class=\"entry-title td-module-title\"><a href=\"https:\/\
/www.aerospatium.info\/linde-lancera-lorbiteur-martien-emirats\/\" rel=\"bookmark\" title=\"L’Inde
lancera l’orbiteur martien des \u00c9mirats\">L’Inde lancera l’orbiteur martien des
\u00c9mirats<\/a><\/h3> <\/div> <\/div> <\/div> <!-- .\/td-related-span4 --><div class=\"td-related-span4
\"> <div class=\"td_module_related_posts td-animation-stack td_mod_related_posts\"> <div class=\"td-module-image
\"> <div class=\"td-module-thumb\"><a href=\"https:\/\/www.aerospatium.info\/ula-lance-un-satellite-radar-du-nro
\/\" rel=\"bookmark\" title=\"ULA lance un satellite radar du NRO\"><img width=\"218\" height=\"150\"
class=\"entry-thumb\" src=\"http:\/\/www.aerospatium.info\/wp-content\/uploads\/2016\/02\/div_nrol45_l1210201614726PM63-218x150
.jpg\" alt=\"\" title=\"ULA lance un satellite radar du NRO\"\/><\/a><\/div> <\/div> <div class=\"item-details
\"> <h3 class=\"entry-title td-module-title\"><a href=\"https:\/\/www.aerospatium.info\/ula-lance-un-satellite-radar-du-nro
\/\" rel=\"bookmark\" title=\"ULA lance un satellite radar du NRO\">ULA lance un satellite radar du NRO
<\/a><\/h3> <\/div> <\/div> <\/div> <!-- .\/td-related-span4 --><div class=\"td-related-span4\"> <div
class=\"td_module_related_posts td-animation-stack td_mod_related_posts\"> <div class=\"td-module-image
\"> <div class=\"td-module-thumb\"><a href=\"https:\/\/www.aerospatium.info\/viasat-revise-avenir-arianespace-boeing
\/\" rel=\"bookmark\" title=\"Viasat r\u00e9vise son avenir avec Arianespace et Boeing\"><img width=
\"218\" height=\"150\" class=\"entry-thumb\" src=\"http:\/\/www.aerospatium.info\/wp-content\/uploads
\/2016\/02\/01pr_01507_hirez-e1455107389976-218x150.jpg\" alt=\"\" title=\"Viasat r\u00e9vise son avenir
avec Arianespace et Boeing\"\/><\/a><\/div> <\/div> <div class=\"item-details\"> <h3 class=\"entry-title
td-module-title\"><a href=\"https:\/\/www.aerospatium.info\/viasat-revise-avenir-arianespace-boeing
\/\" rel=\"bookmark\" title=\"Viasat r\u00e9vise son avenir avec Arianespace et Boeing\">Viasat r\u00e9vise
son avenir avec Arianespace et Boeing<\/a><\/h3> <\/div> <\/div> <\/div> <!-- .\/td-related-span4 --
><\/div><!--.\/row-fluid--><div class=\"td-related-row\"><div class=\"td-related-span4\"> <div class
=\"td_module_related_posts td-animation-stack td_mod_related_posts\"> <div class=\"td-module-image\"
> <div class=\"td-module-thumb\"><a href=\"https:\/\/www.aerospatium.info\/la-russie-lance\/\" rel=\"bookmark
\" title=\"La Russie reprend les lancements Glonass\"><img width=\"218\" height=\"150\" class=\"entry-thumb
\" src=\"http:\/\/www.aerospatium.info\/wp-content\/uploads\/2016\/02\/DSC_6666-218x150.jpg\" alt=\"
\" title=\"La Russie reprend les lancements Glonass\"\/><\/a><\/div> <\/div> <div class=\"item-details
\"> <h3 class=\"entry-title td-module-title\"><a href=\"https:\/\/www.aerospatium.info\/la-russie-lance
\/\" rel=\"bookmark\" title=\"La Russie reprend les lancements Glonass\">La Russie reprend les lancements
Glonass<\/a><\/h3> <\/div> <\/div> <\/div> <!-- .\/td-related-span4 --><div class=\"td-related-span4
\"> <div class=\"td_module_related_posts td-animation-stack td_mod_related_posts\"> <div class=\"td-module-image
\"> <div class=\"td-module-thumb\"><a href=\"https:\/\/www.aerospatium.info\/coree-nord-demontre-capacite-orbitale-balistique
\/\" rel=\"bookmark\" title=\"La Cor\u00e9e du Nord d\u00e9montre sa capacit\u00e9 orbitale (et balistique
)\"><img width=\"218\" height=\"150\" class=\"entry-thumb\" src=\"http:\/\/www.aerospatium.info\/wp-content
\/uploads\/2016\/02\/Decollage-KWS4-218x150.jpg\" alt=\"\" title=\"La Cor\u00e9e du Nord d\u00e9montre
sa capacit\u00e9 orbitale (et balistique)\"\/><\/a><\/div> <\/div> <div class=\"item-details\"> <h3
class=\"entry-title td-module-title\"><a href=\"https:\/\/www.aerospatium.info\/coree-nord-demontre-capacite-orbitale-balistique
\/\" rel=\"bookmark\" title=\"La Cor\u00e9e du Nord d\u00e9montre sa capacit\u00e9 orbitale (et balistique
)\">La Cor\u00e9e du Nord d\u00e9montre sa capacit\u00e9 orbitale (et balistique)<\/a><\/h3> <\/div>
<\/div> <\/div> <!-- .\/td-related-span4 --><div class=\"td-related-span4\"> <div class=\"td_module_related_posts
td-animation-stack td_mod_related_posts\"> <div class=\"td-module-image\"> <div class=\"td-module-thumb
\"><a href=\"https:\/\/www.aerospatium.info\/dernier-gps-2f-orbite\/\" rel=\"bookmark\" title=\"Le dernier
GPS-2F est sur orbite\"><img width=\"218\" height=\"150\" class=\"entry-thumb\" src=\"http:\/\/www.aerospatium
.info\/wp-content\/uploads\/2016\/02\/GPS-2F12-Lancement_ULA-218x150.jpg\" alt=\"\" title=\"Le dernier
GPS-2F est sur orbite\"\/><\/a><\/div> <\/div> <div class=\"item-details\"> <h3 class=\"entry-title
td-module-title\"><a href=\"https:\/\/www.aerospatium.info\/dernier-gps-2f-orbite\/\" rel=\"bookmark
\" title=\"Le dernier GPS-2F est sur orbite\">Le dernier GPS-2F est sur orbite<\/a><\/h3> <\/div> <\
/div> <\/div> <!-- .\/td-related-span4 --><\/div><!--.\/row-fluid-->","td_block_id":"td_uid_1_56c331ce886e2"
,"td_hide_prev":true,"td_hide_next":false}
as you can see, a href are https but img src are http.
Regards
-
This reply was modified 10 years by
gaby.
Hi,
we followed that kind of process to move the entire site to https.
If you check a random page like https://www.aerospatium.info/un-marche-en-plein-essor-mais-plein-dincertitudes/ you will see that:
– on page load, there is no http warning (every ressources are properly linked)
– if you click bottom on “Plus de l’auteur”, the articles thumb will be ajax loaded and include with src as http (and thus security warning)
Thanks a lot for your time.
To be more precise, the first tab “related posts” load images properly but the 2nd, ajax loaded (“more post from this author”) posts list has http issues (thumb images are source through http)
Hi,
we tried with absolute path too.
But as you can see on source, for example, on that page http://www.aerospatium.info/un-marche-en-plein-essor-mais-plein-dincertitudes/ the generated code still appears
<!-- Header style compiled by theme -->
<style>
@font-face {
font-family: "neosanspro";
src: local("neosanspro"), url("css/fonts/NeoSansPro.ttf") format("woff");
}
@font-face {
font-family: "neosanspro";
src: local("neosanspro"), url("css/fonts/NeoSansPro.ttf") format("woff");
}
@font-face {
font-family: "neosanspro";
src: local("neosanspro"), url("css/fonts/NeoSansPro.ttf") format("woff");
}
@font-face {
font-family: "neosanspro";
src: local("neosanspro"), url("css/fonts/NeoSansPro.ttf") format("woff");
}
whereas fonts are declared into child theme css as:
@font-face {
font-family: 'neosanspro';
src: url('/wp-content/themes/Newspaper-child/css/fonts/NeoSansPro.ttf');
font-weight: normal;
font-style: normal;
}
It’s like there are cache issue.
Thanks for your help
Thanks Alin for your answer but:
the fonts are correctly loaded after css stylesheet loaded. The only problem comes from wp-booster which wants to include inline style declaration into the template (that’s cool to avoid css blocking rendering) but in the wrong way.
The wp-booster generated code refers to relative path to fonts (css/fonts/..) whereas the code snippet is generated on every pages (on page1, browser will try to load url/page1/css/fonts/font.ttf and on page2 url/page2/css/fonts/font.ttf). That’s insane.
Precisely it’s td_css_buffer.php::on_wp_header_render_header_css function that includes fonts declaration.
How can we avoid fonts to be caught by this “add_to_header” optimization?
