old path in migrated site
-
I just migrated a site that uses Kirki plugin.
The url hasn’t changed, just the hosting provider.
Everything works fine except a couple of fonts.
The browser request to the fonts bears this path
https://www.example.com/home/h6kj08g4/public_html/myWordpressInstallationFolder/wp-content/fonts/mulish/1Ptyg83HX_SGhgqO0yLcmjzUAuWexZNR8aevHZ47LTd9ww.woffNote that
home/h6kj08g4/public_html/
was the absolute file system path on the OLD hosting provider.Therefore I searched the whlose database and found many such paths in the wp_option table:
option_name kirki_downloaded_font_files
option_value https://fonts.gstatic.com/s/questrial/v9/QdVUSTchPBm7nuUeVf70viFjuW44JQ.woff “/home/h6kj08g4/public_html/wp-content/fonts/questrial/QdVUSTchPBm7nuUeVf70viFjuW44JQ.woff”I tried to go into the Typography section of the customizer, change something and save, but the paths and the problem remained.
I searched and replaced (with the proper tool) the old path for the new path but it didn’t work: the urls came out like
“https://www.example.com/home/var/www/vhosts/example.com/httpdocs/wp-content/fonts/mulish/1Ptyg83HX_SGhgqO0yLcmjzUAuWexZNR8aevHZ47LTd9ww.woff”
which was not ok.
I then stripped all the root part of the path, leaving just
“wp-content/fonts/mulish/1Ptyg83HX_SGhgqO0yLcmjzUAuWexZNR8aevHZ47LTd9ww.woff”
and it worked.I went checking to the old installation of the site and found another quirk:
some paths were just like
https://www.example.com/home/h6kj08g4/public_html/myWordpressInstallationFolder/wp-content/fonts/mulish/1Ptyg83HX_SGhgqO0yLcmjzUAuWexZNR8aevHZ47LTd9ww.woff
and some like
https://www.example.com/home/h6kj08g4/public_html/wp-content/fonts/mulish/1Ptyg83HX_SGhgqO0yLcmjzUAuWexZNR8aevHZ47LTd9ww.woff
which is more correct I think since
“myWordpressInstallationFolder”
should be invisible to any browser since it has been taken care of by .htaccess rewrite rules.Can you explain what happened?
The physical path to the wp-content shouldn’t be saved in the db I think.
Still the old site _was_ working.Thank you.
- The topic ‘old path in migrated site’ is closed to new replies.