Forum Replies Created
-
AuthorPosts
-
Hi!
Thank you for the help, we will take a look at it!
Hi Mike
I understand video is not supposed to display on mobile devices, but i do work on Iphone.
But its fine, as long as it shows the fallback image.
Thank you.
Yeah my bad i have added it in the private Content
Hi
Sure i have added the login details.
Hi
But the video are loading on Iphones, we have testet that but it is on Samsung/Google phones it is not loading the video.
And it is not the fallback image that are showing on Samsung, it is the video but as an image.The background image that are chosen for the color section are a different image, and it is not showing.
Hi
There are a background image and it show the video as a placeholder image on Samsung and Google phone.
So it load the video but are not playing, it just look like an image.So are there something that are blocking it for samsung and Google phone?
Hi
It is loading on desktop and Iphone but not on Google and Samsung phones, that is the issues.
Hi
I have uploaded it to Vimeo and now the video just stand still on a the phone
Hi again,
I still want an answer to my comment above but we have a developer to look more into this and he have following questions:
- Can we change the automatically generated CSS files to have the correct MIME type.
- Alternatively, can we make an exception for strict MIME checking for CSS files.
- What role does the cache play? Does it work e.g. with a different cache.
- Can (worst case) do without strict mime type check.
I hope that these questions make sense.
- This reply was modified 2 months, 3 weeks ago by mvi.
Hi,
My mistake this one had Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression enabled.
All the other sites do not.Okay so this setup should fix the problem without the script in the functions.php or do we also need that?
Hi,
I have shared our settings, can you take look at it and see if this is how you suggest it should look like.
Hi,
Delete Old CSS And JS Files are not on, should it be on?
And how do we know if it delete these files?Hello,
I have our host to disable Cache on two of the sites and i will keep an eye on them.
The theme cache are disabled on all our sites.Could the new theme update have any fixes to it?
Would i harm if i deleted the folder were these dynamic css file are stored?
Alright, but do you have any other suggestions to fix this?
We have tried everything and the issue still occurs.Hi,
Any update on this or other solutions?
We had quite a few other sites that had the same issue.Hi Mike,
As mention the issue happens randomly so you need to monitor the site, because we can recreate the issue.
What post css? We have our child theme for extra styling but the dynamic css are from the parent theme.
If the filter are placed correctly, it do not work because the site still have had the issue.
Hi,
I have created a login for you.
This site have had the issue 3 timesHi Mike,
As i mentioned before I have tried the function on other sites and the issue are still happening.
I posted a site in the private section that have had the issue 3 times and 2/3 times were after i added it.
The site x in the previous comment were just a other site we found and our host could test on it while the issue were there.
Hi,
So i have talked with our host again and regarding to the “Nosniff” thing they say this:
“We don’t use plesk nor apache, so no htaccess. We do use nginx and that ‘nosniff’ header is, I’m afraid, unalterable.”The function that you mention do not work, i have tried insert it on some pages and the issue still occurs and even if i changed the performance settings:
1. Unique Timestamp Of Merged Files And WP Object Cache Bug -> Fix WP bug, disable unique timestamps
2. Remove Query String From Static Resources -> Remove query stringsWe can see in the console that the issue always are this URL: “/wp-content/uploads/dynamic_avia/avia_posts_css/post-555.css?ver=ver-####”
#### are a different number each time.And we can see that AVIA post are some from /themes/enfold/ so it is a theme issue and i need you to look further into this because our solution do not work.
They did also say this
“We (our host and us) found an issue on site X at this time.
Kinsta tech jump on the site – he found the error on the console:
“MIME type error” and clicked on the CSS link in that error – which showed a 404 page (which explains the MIME type as the page is not CSS).
He then jumped onto the server where the actual file in question was not found
“Screenshot 1”
During investigations the cache was invalidated (expired) and the site ‘fixed itself’ and was working without intervention – the tech at Kinsta then checked and the file was there again.
“Screenshot 2”
“stat screenshot”Hello,
So i talked with our hosting provider and they response to your disable X-Content-Type-Options “nosniff” are this:
“Disabling this header would expose your site to potential security risks by allowing browsers to guess the MIME type of files, which can lead to unintended behavior and vulnerabilities such as XSS attacks.And I’m afraid we will not disable it from the server end for security purposes.”
They do also say this after a dialogue:
“The theme developers should be working with you on solving this and checking compatibility with other plugins”“ it’s a good idea to check further with the theme devs and tell them besides disabling that header we are happy to help with other tests or check logs if they need us to”
So are this something you can look into?
Hi Mike,
Thank you for getting back to me. It get fixed when the cache have been cleared so that maybe why you can see the error on the live website, thats why i add the screenshots of it and the error.
But i can say that using the avf_post_css_create_file snippet do not fix it, because i have tried test it on some sites and they get the error and i tried on some other sites use remove query string and tiemstamps and they do also get this error.
So i need a another solution to this.
Hi,
So i now tried with both solutions and i still get sites that are missing all the styling, what can we now do?
I have shared website and screenshot of what i see.Hi,
I will call it an issue since this happens randomly on our pages.
So we do not make any changes it just happens out of the blue and yes it get fixed when we clear the cache and we have set our server up up to clear cache every hour but if a client get into the website in that hour where it haven’t be cleared and see this they will ask questions.Normally we manually clear cache when we make changes, so i agree to clear the cache if changes have been made.
I will try test to remove Query string from some of our websites and try some others which the function you wrote may 2.
I will get back to you if nothing works :-)
Hi Rikard,
I’m not sure what you are writing about here.
1. The script you mention i can add to the functions.php, how will that help that the websites losing the styling?
2. The image i posted, which one would you suggest to use if i wan’t it not to add unique timestamps, and it is because of that the styling are missing?
3. What are this “Remove Query String From Static Resources option”?
Why should i do that, and should i combined to disable it which the other things above?I can figure out what solution should fix the issue.
Hi,
Which one of the settings should i choose (see link in privat ssection) and should i also add the script that you posted or would i be enough to disable the timestamps?
Hi,
The problem is the issue get fixed if the cache are been cleared.
I have talked with our host that says this:
what happens is that the Enfold theme/plugin generates a CSS file, the page cache is then created during a visit and this cache contains a link to the CSS file.The theme then randomly changes either the path or the name of the CSS file but the cache isn’t cleared so the site shows broken.
If you check one of those files you’ll see that they no longer exist:https[:]//webiste-name[.]com/wp-content/uploads/dynamic_avia/avia_posts_css/post-14[.]css?ver=ver-1711102485
So you need to check in with theme support or developer for an option that disables the dynamic file creation 🙏 This is not something that can be done on our side, as it is an issue with the theme itself 🙏
Hi,
So we are now seen this issue again. I post some of the websites that have the issue in the private content.
Can you take a look at them?Hi,
Alright thank you for the examples, i will try take a look at it :-)
Hello,
I have looked at the Content slider but it wont work unless at lot of CSS to align content and images next to each others .
Hi,
Yeah i see that it is working now.
It is probably because the caching have been cleared. It do that after some time.I can send a new website when we spot it and i will do what you ask me in above steps.
Best regards,
Morten -
AuthorPosts