-
AuthorPosts
-
August 5, 2024 at 4:20 pm #1463851
Hello,
I encounter strange things in my Multisite website in two languages.One site is in English and the other in Dutch. The pages are identical except for language.
This all looks fine, but sometimes after a change some layouts are broken. Photo missing, font in wrong size, etc.
The Enfold Parent theme is not network active (tried to make it active but that did not solve the problem)
Each (language) site has a separate child themeWithout changing anything about the broken pages, I save the (child-theme) settings again and everything appears again on the broken pages.
But later this problem may arise again.I have tried different settings on the performance page but the problem keeps recurring.
Any idea what’s going on here?
Thanks in advance for a response.
Best,
MariusAugust 5, 2024 at 9:06 pm #1463872Hey Marius100,
Did you try to activate the option to delete old CSS and JS files under Enfold->Performance? If that doesn’t help then please post a link to where we can see the actual problem.
Best regards,
RikardAugust 5, 2024 at 10:07 pm #1463877This reply has been marked as private.August 6, 2024 at 5:02 am #1463898Hi,
Thank you for the update.
Looks like the post css file is not being generated for the other language. To fix this issue temporarily, please add this filter in the functions.php file:
function avf_mod_post_css_create_file( $create ){ return false; } add_filter( 'avf_post_css_create_file', 'avf_mod_post_css_create_file', 10, 1 );
Best regards,
IsmaelAugust 6, 2024 at 2:43 pm #1463954Hello,
thank you for your response.In the version as you saw it, the error appears to be on the second site (Dutch language).
I have now discovered that I can also reproduce the error in the main site (English).
When the error occurs on the second site (Dutch) and I only update the theme settings of the second site, the errors are gone but occur on the first site (English).If I then only update the theme settings of the first site (all without changing anything), the errors disappear but they appear again on the second site…..
Now I have modified the functions.php file from the second site (Dutch) with Ismael’s code, and it seems to remain stable.
But, if I update the theme options of the second site (with Ismael’s code) the problem occurs on the first site.
When I update now only the first site, the second site (with Ismael’s code) seems to remain stable.
I hope this is of some use to you.
Thanks.
Additionally:
I can look at comparisons on a test site and I noticed the following, when I compare the source text of the WRONG page with the same GOOD page I see a line difference.
The following code does not appear on the GOOD page:
<link rel='stylesheet' id='avia-single-post-3440-css' href='https://www.testsite.com/nl/wp-content/uploads/dynamic_avia/avia_posts_css/post-3440.css?ver=ver-1722946833' type='text/css' media='all' />
- This reply was modified 3 months, 2 weeks ago by Marius100.
August 7, 2024 at 5:41 am #1463996Hi,
Thank you for the info.
The filter above should disable the generation of the post css files and should affect both languages. You might be viewing cached versions of the pages. Please disable the cache plugin or ensure that you purge the cache after making any changes.
Best regards,
IsmaelAugust 7, 2024 at 12:58 pm #1464020Hello Ismael,
The filter above should disable the generation of the post css files and should affect both languages.
I don’t know if you noticed that I use a separate child theme for each language, so I also have two different functions.php files.
I initially only modified the file for the language with the errors. However, then the error occurs in the other language.
I have now also added the code to the other functions.php and now both sites remain stable.
Any idea what causes this?
Thanks
August 8, 2024 at 5:05 am #1464100 -
AuthorPosts
- You must be logged in to reply to this topic.