Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts are not loaded when not connected to internet #12772

Closed
alireza2005 opened this issue Mar 2, 2019 · 27 comments
Closed

Fonts are not loaded when not connected to internet #12772

alireza2005 opened this issue Mar 2, 2019 · 27 comments
Assignees
Labels
1.7.4.4 Affects versions 1.7.5.1 Affects versions 1.7.6.0 Affects versions BO Category: Back Office Bug Type: Bug Fixed Resolution: issue closed because fixed Front-end Category: Front end Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification PR available Solution: issue is being addressed
Milestone

Comments

@alireza2005
Copy link

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

@rblaurin
Copy link
Contributor

rblaurin commented Mar 2, 2019

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

@alireza2005
Copy link
Author

Hi
where is javascript console log

@rblaurin
Copy link
Contributor

rblaurin commented Mar 2, 2019

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

@alireza2005
Copy link
Author

errors

@rblaurin
Copy link
Contributor

rblaurin commented Mar 2, 2019

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

@alireza2005
Copy link
Author

errors-network

@rblaurin
Copy link
Contributor

rblaurin commented Mar 2, 2019

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

@alireza2005
Copy link
Author

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

@rblaurin
Copy link
Contributor

rblaurin commented Mar 2, 2019

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.

@alireza2005
Copy link
Author

Hi
Thank you very much for your help
good bye

@khouloudbelguith
Copy link
Contributor

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 khouloudbelguith added BO Category: Back Office NMI Status: issue needs more information 1.7.5.1 Affects versions labels Mar 4, 2019
@rblaurin
Copy link
Contributor

rblaurin commented Mar 4, 2019

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

@khouloudbelguith
Copy link
Contributor

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!

@khouloudbelguith khouloudbelguith added Bug Type: Bug Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification TBR Status: issue to be reproduced 1.7.4.4 Affects versions and removed NMI Status: issue needs more information labels Mar 4, 2019
@alireza2005
Copy link
Author

alireza2005 commented Mar 4, 2019

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

@marionf
Copy link
Contributor

marionf commented Mar 5, 2019

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

@marionf marionf added Needs Specs Status: issue needs to be specified Waiting for dev Status: action required, waiting for tech feedback and removed TBR Status: issue to be reproduced labels Mar 5, 2019
@marionf marionf removed their assignment Mar 5, 2019
@Amulliez
Copy link

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 !

@khouloudbelguith
Copy link
Contributor

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.

@Amulliez
Copy link

Hi @khouloudbelguith

This issue is solved, a connection issue was. present

Thanks you !.

@khouloudbelguith
Copy link
Contributor

@Amulliez, thanks!

@marionf marionf added the 1.7.6.0 Affects versions label Jun 10, 2019
@eternoendless eternoendless changed the title i have problem in back office of prestashop 1.7.5.1 Fonts are not loaded when not connected to internet Oct 30, 2019
@ttoine
Copy link
Contributor

ttoine commented Jan 21, 2020

relative to #10456

@NeOMakinG NeOMakinG added the PR available Solution: issue is being addressed label Oct 20, 2020
@PierreRambaud
Copy link
Contributor

Should be fixed. PIng @NeOMakinG

@PierreRambaud PierreRambaud removed the Waiting for dev Status: action required, waiting for tech feedback label Nov 18, 2020
@NeOMakinG
Copy link

Not yet because scss var $local-font: true; is missing inside the core (will be fixed when #18396 will be finished)

@hibatallahAouadni
Copy link
Contributor

Ping @PrestaShop/prestashop-core-developers could you pelase specify the status of this issue 🙏
Thanks in advance.

@hibatallahAouadni hibatallahAouadni added the Waiting for dev Status: action required, waiting for tech feedback label Mar 6, 2021
@NeOMakinG
Copy link

#18396 is not merged yet, so it's in progress!

@PierreRambaud
Copy link
Contributor

It has been merged now :)

@NeOMakinG
Copy link

It should be fixed then, when rebuilding assets

@hibatallahAouadni
Copy link
Contributor

Fixed by #18396

@hibatallahAouadni hibatallahAouadni added Fixed Resolution: issue closed because fixed Front-end Category: Front end and removed Needs Specs Status: issue needs to be specified Waiting for dev Status: action required, waiting for tech feedback labels Mar 8, 2021
@hibatallahAouadni hibatallahAouadni added this to the 1.7.8.0 milestone Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.4.4 Affects versions 1.7.5.1 Affects versions 1.7.6.0 Affects versions BO Category: Back Office Bug Type: Bug Fixed Resolution: issue closed because fixed Front-end Category: Front end Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification PR available Solution: issue is being addressed
Projects
None yet
Development

No branches or pull requests

9 participants