Prestashop: Fonts are not loaded when not connected to internet

Created on 2 Mar 2019  路  22Comments  路  Source: PrestaShop/PrestaShop

hello.

I install prestashop 1.7.5.1 (the final version) in local server (in wamp server - Apache 2.4.37 - PHP 7.2.14 - MySQL 5.7.24). My front office is ok, but most pages in my back office have problem ( for example picture below )(in this case My computer is not connected to the Internet).
product problems

but when i connect my computer to the internet my back office all is ok (for example picture below).
produck okey

as if jquery or css not load Properly in my back office (when My computer is not connected to the Internet).

please help me,very thanks.

PrestaShop version: 1.7.5.1
wamp server version: 3.1.7 64bit
PHP version: 7.2.14
MySQL version: 5.7.24

1.7.4.4 1.7.5.1 1.7.6.0 BO Bug Minor PR available TBS

All 22 comments

Hi
It seems your browser is not able to access the material icons. Is there something in javascript console log?

Hi
where is javascript console log

If you are using Google Chrome, just press F12 and click the Console tab

errors

Can you send also a full print of the network tab?

errors-network

Try to clear cache and cookies, go to command prompt and enter the commands listed below, one by one:
ipconfig /flushdns
ipconfig /renew

Hi
ipconfig donot solve my problem
when my computer is connected to internet there is no problem
in offline mode as if google font and btn (botton) classes have loading problem

Ok, sorry, I misunderstood your problem. You are not connected.
I am afraid this is the default behavior of Prestashop, you must be connected because it uses Google Fonts. I think these fonts could be stored locally to avoid this behavior. Maybe you could download them and modify the paths in admin/themes/new-theme/public/theme.css file.

Hi
Thank you very much for your help
good bye

Hi @alireza2005,

I did not manage to reproduce the issue with PrestaShop 1.7.5.1, I tried with private navigation & no connection.
I attached a video record.
https://drive.google.com/file/d/1IUKMW9_P8WKyxK5fkXwVwwBLgSdUe1z3/view
I think you have a conflis in your address ip.
Thanks to check the issue with your host & feedback.
Thanks!

@khouloudbelguith, I think you have to try to navigate between BO pages. I managed to reproduce It this way.

Hi @rblaurin,

This issue occurs only when I'm offline & in the Symfony migrated page.
image
Because those links are not loaded
https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,700&subset=latin-ext
https://fonts.googleapis.com/icon?family=Material+Icons

This issue occurs with PrestaShop 1.7.5.1 & PS1.7.4.4.
@marionf, what do you think?
Is it a bug or normal behavior?
Thanks!

Hi
Could not have these files inside PrestaShop to be used in offline mode in local server?

No idea, let's ask to @PrestaShop/prestashop-core-developers if we can do something to avoid this probem

Hi @khouloudbelguith

I have the same problem since 2 days in front office and back office on Prestashop 1.7.5.0.
How can I fix this problem ?

Thanks you !

Hi @Amulliez, this issue occurs only when there is no connection.
If your connection is ok, so, you have a different issue, it could be in your address ip.
You need to check the issue with your host the issue.

Hi @khouloudbelguith

This issue is solved, a connection issue was. present

Thanks you !.

@Amulliez, thanks!

relative to #10456

Should be fixed. PIng @NeOMakinG

Not yet because scss var $local-font: true; is missing inside the core (will be fixed when https://github.com/PrestaShop/PrestaShop/pull/18396 will be finished)

Was this page helpful?
0 / 5 - 0 ratings